Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Taxonomy: array_walk() expects parameter 1

Started by Vincent Faidherbe 7 years ago · 0 replies · 492 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 blu3prince, 4 days ago
1 84 15 hours ago
Support · by complanar, 1 week ago
6 165 2 days ago
Support · by Rick Beebe, 1 week ago
2 124 4 days ago
Support · by alex, 5 days ago
2 107 4 days ago
Support · by Marcel, 2 weeks ago
1 157 5 days ago