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 · 381 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 Duc , 7 hours ago
1 33 7 hours ago
Support · by Thomas, 1 week ago
3 104 16 hours ago
Support · by Anna, 4 days ago
2 101 2 days ago
Support · by Justin Young, 2 days ago
1 67 2 days ago
Support · by Duc , 1 week ago
2 104 6 days ago