Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Taxonomy: array_walk() expects parameter 1

Started by Vincent Faidherbe 7 years ago · 0 replies · 539 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 webmasterodp, 7 days ago
4 145 6 days ago
Support · by nwhitfield, 1 week ago
2 125 1 week ago
Support · by stell, 3 weeks ago
5 364 2 weeks ago
Support · by gravinator, 1 month ago
5 556 2 weeks ago
Support · by Gravver, 3 weeks ago
6 344 3 weeks ago