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

TaxonomyList throwing error during template rendering

Started by Muut Archive 10 years ago · 1 replies · 624 views
10 years ago

I've installed the TaxonomyList plugin and copied the
taxonomylist.html.twig file into my theme's partials/taxonomylist.html.twig.

The taxomony on blog posts is defined as:

YAML
taxonomy:
    category:
        - Health
    author:
        - 'Elaine Rush'

The problem is that when I run the site in the browser, the error

TXT
An exception has been thrown during the rendering of a template ("Illegal offset type in isset or empty").

is thrown.

It singles out the line {% for tax,value in taxlist[taxonomy] %} as being the problem.

Am I doing something wrong?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2570 9 years ago
Archive · by Muut Archive, 9 years ago
2 1692 9 years ago
Archive · by Muut Archive, 9 years ago
2 4985 9 years ago
Archive · by Muut Archive, 9 years ago
1 3810 9 years ago
Archive · by Muut Archive, 9 years ago
3 1801 9 years ago