Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Taxonomy: array_walk() expects parameter 1

Started by Vincent Faidherbe 7 years ago · 0 replies · 456 views
7 years ago

In a site I'm currently developing, I define the following kind of frontmatter:

title: ?Alos - Matrice
artwork: alos_matrice.jpg
taxonomy:
artist: [?Alos]
format: [LP, Digital]
category: [Doom, Electronic, Experimental]

I don't know starting which version the problem has appeared but it looks like one of the last updates has introduced a bug (?) related to taxonomy handling. The current version I'm using is 1.6.14.

=> If there's no space between a taxonomy type and its value(s) e.g.
taxonomy:
artist:[?Alos]

It causes the following error:
array_walk() expects parameter 1 to be array, string given (…\system\src\Grav\Common\Page\Page.php 2308)

Is it normal behaviour? I didn't had this problem before updating Grav.

Suggested topics

Topic Participants Replies Views Activity
Support · by Paul Hodges, 4 weeks ago
19 490 6 days ago
Support · by Lauw, 1 week ago
2 107 1 week ago
Support · by Anna, 3 weeks ago
4 431 1 week ago
Support · by gtx, 4 weeks ago
4 380 3 weeks ago
Support · by Anna, 1 month ago
9 487 4 weeks ago