Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when disabling translations #87

Closed
l3d00m opened this issue Dec 15, 2016 · 5 comments
Closed

Exception when disabling translations #87

l3d00m opened this issue Dec 15, 2016 · 5 comments

Comments

@l3d00m
Copy link

l3d00m commented Dec 15, 2016

If I set "Translations Enabled" to "No" and try to search for something, grav throws an exception. Similiar stacktrace and problem as #13:

An exception has been thrown during the rendering of a template ("Invalid argument supplied for foreach()") in "simplesearch_results.html.twig" at line 15.

Using search version v1.9.3 and newest grav (v1.1.9)

@flaviocopes
Copy link
Contributor

Can't replicate, I get the untranslated screen:

screen shot 2016-12-19 at 10 46 22

What theme are you using, and can you paste your user/config/plugins/simplesearch.yaml file?

@l3d00m
Copy link
Author

l3d00m commented Dec 19, 2016

I just tried it using a fresh grav install. I installed the search plugin, changed no settings in the plugin options and installed the pinpress theme. Disabling the "Translations Enabled" leads to an error:

error

@flaviocopes
Copy link
Contributor

Replicated on a fresh site too

@flaviocopes
Copy link
Contributor

Was a Grav issue, now fixed in develop getgrav/grav@442249c

@l3d00m
Copy link
Author

l3d00m commented Dec 20, 2016

Thank you. Grav is the easiest and best CMS I ever used, the fast support makes it even better :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants