getgrav / grav-skeleton-rtfm-site

Grav RTFM Skeleton
https://getgrav.org
MIT License
80 stars 97 forks source link

Search broken #8

Open hifall opened 7 years ago

hifall commented 7 years ago

Searching from the left sidebar from the RTFM skeleton (downloaded from: https://getgrav.org/downloads/skeletons) doesn't work.

Repro: 1 perform a clean install of the skeleton on the server; 2 enter some text in the search box on the left sidebar, and hit Enter; 3 the contents on the page never change (to show the expected search results).

hifall commented 7 years ago

More info: the Chrome console shows "https://subdomain.domain.com/grav/search.json/query:keyword 500 (Internal Server Error)".

So it seems that it fails when it tries to fetch search.json under grav root.

flaviocopes commented 7 years ago

Works fine for me. Are you using Windows? Also check the PHP error log for more info on the error

hifall commented 7 years ago

I was using macOS 10.12, Chrome 57.0.2987.133, Ubuntu0.16.04.4, PHP 7.0, Apache 2.4.18, and the latest version of RTFM skeleton.

hifall commented 7 years ago

Could you please tell me how to check the PHP error log?

Trying to tail -f /var/log/apache2/error.log did not find anything related.

flaviocopes commented 7 years ago

The location of the PHP error log file is specified in your PHP.ini. You can lookup "error_log" in the Admin configuration by going to yoursite.com/admin/config/info