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 →

TaxonomyList throwing error during template rendering

Started by Muut Archive 10 years ago · 1 replies · 703 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 Muut Archive, 10 years ago
1 673 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago