getgrav / grav-plugin-simplesearch

Grav SimpleSearch Plugin
https://getgrav.org
MIT License
44 stars 55 forks source link

No page when filter is empty. #110

Closed bartwitt closed 7 years ago

bartwitt commented 7 years ago

Hello.

I hope there is nothing stupid I'm missing...

The problem is I want to have the full site searched, but when I leave filters empty (as described in the docs), I get a 500 error.

image image

When I completely remove the filter option from the config (which makes it use the default), it works but there are no results since I don't have category: blog on every page.

I can't see any errors in the php log. image

Hope someone can help! Thanks.

flaviocopes commented 7 years ago

Should work fine. Also try filters: null. A 500 error could mean anything, look in your PHP error log to check what it says, or turn on the display errors feature in the System configuration.

bartwitt commented 7 years ago

filters: null instead of filters: fixed it for me indeed. Pretty sure leaving it blank is what causes the error.

Thanks! Usually work with js, not php, so these things are bit tricky then ;)