Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Possible bug with SimpleSearch/Admin

Started by Muut Archive 11 years ago · 3 replies · 287 views
11 years ago

I don't know if this is a bug or just some humble fumble from me but I get this error when using SimpleSearch:
An exception has been thrown during the rendering of a template ("Invalid argument supplied for foreach()") in "simplesearch_results.html.twig" at line 12.
`Open: /srv/data/web/vhosts/domain.tld/htdocs/vendor/twig/twig/lib/Twig/Templ ate.php

PHP
                if (false === $e->getTemplateLine()) {
                    $e->setTemplateLine(-1);
                    $e->guess();
                }
                throw $e;
            } catch (Exception $e) {
                throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getTemplateName(), $e);
            }
        } elseif (false !== $parent = $this->getParent($context)) {`

But if I specify one language (en-US, fr-FR...) in the Admin:

Settings > Language > Supported (fir st field)

it triggers the error. Leaving/Return it blank is ok.
So: SimpleSearch bug? Admin bug? or just plain n00b mess?

11 years ago

To make the above clearer : error occurs only with language setting not left blank

*But ONLY if I specify one language (en-US, fr-FR…) in the Admin:

Settings > Language > Supported (first field)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1334 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2938 9 years ago
Archive · by Muut Archive, 9 years ago
3 1111 9 years ago