grav-plugin-admin: Regression: Ajax error in ngnix
Hello, after update to 1.6.3 (and update to 1.3.5) i’ve got issues in the admin pannel : the site seems to work well allthough, exept featherlight wich wouldn’t work before update anyway. As i need a gallery, i also need to deal with this error for i’m sure it has no link between. Thanks!
`Fetch Failed:
can't convert undefined to object
value/<@http://lelogisencorse.ddns.net/user/plugins/admin/themes/grav/js/admin.min.js?1451599962:5:23728
o/<@http://lelogisencorse.ddns.net/user/plugins/admin/themes/grav/js/admin.min.js?1451599962:4:27913
Invalid AJAX response.`
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 42 (20 by maintainers)
Commits related to this issue
- Fix for nginx and `_url` issue [admin#1244](https://github.com/getgrav/grav-plugin-admin/issues/1244) — committed to getgrav/grav by rhukster 7 years ago
Ok, we’re going to re-release Grav now with this fix.
I’m able to reproduce the issue, trying to locate the issue now. Thanks for the detailed help!
They really should though, unless you publish that you follow a workflow where they are deliberately ignored. Is it a notification issue? (let this be a test!)
Ok, i’ve narrowed it down to Nginx, and specifically the
try_filespart of the configuration. My test site had simply:And this worked, however, the
webserver-configs/nginx.conffile (and possibly other places has been updated so it looks like this:When I change it to this, and restart nginx, it breaks with that ajax error. So i removed the
&$query_stringat the end, and it worked.So something related to the query_string in this nginx configuration and the changes/fixes we made in the URI class are breaking it… Not fixed yet, but narrowing things down.
@rhukster I can confirm that fixes the issue