Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Taxonomy: array_walk() expects parameter 1

Started by Vincent Faidherbe 7 years ago · 0 replies · 641 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 TomW, 2 weeks ago
8 228 11 hours ago
Support · by alex, 2 months ago
8 667 1 day ago
Support · by Supple, 5 days ago
1 98 2 days ago
Support · by TomW, 1 week ago
3 160 3 days ago
Support · by TomW, 6 days ago
2 106 6 days ago