-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Regression: Ajax error in ngnix #1244
Comments
I cannot put media on pages no more via the admin pannel : as soon as i save, they disapear after refresh. It works well by putting images in directory, but non of them appears on admin page. They are on the site I cannot logout anymore |
Can you guys please provide some details regarding your webserver and php version? |
Yes me too, brand new site and I stupidly updated it to 1.3.5 now all sorts of Ajax errors. Also cannot even logout of Admin keeps giving "Invalid Security Token". Hope it can be fixed soon. Server nginx version: nginx/1.12.1 PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS ) Other sites still running 1.3.4 of Grav all working 100% Clicking on ANY of the menu items on the left gives Ajax Error |
BTW, can you guys help me out by first backing-up/copying your If that sorts it, we can narrow things down. We did some refactoring on this class and I think it's what's leading to your issues. |
@rhukster I can confirm that fixes the issue |
Still would be helpful to know your environment information because I can't replicate this on my local test installs. |
@rhukster another issue to add here. Simple markdown is not working either.
Renders as: and using custom.css in antimatter which only contains one line in it If I do |
@rhukster exactly what do you need to know from my environment? I am happy to provide anything you need. |
That's IMG/markdown things is actually nothing related to this, that's a problem with markdown extra? That is not regular markdown because you cannot put markdown inside HTML tags with regular markdown. The better way to fix that is with:
|
To start with |
Thanks @rhukster but that previously worked perfectly on 1.3.4 (still does) ie. adding the class at the end like that. I provided that info earlier up Nginx 1.12.1 PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS ) nginx.conf
|
The |
Can you guys who are having this problem, inspect the XHR requests for the Ajax calls? In chrome, this in web developer tools -> network -> xhr Then reload the page and inspect the Request URL and the response |
Actually if any of you could PM me directly on slack with login details to your site, that would help a lot and be much appreciated. |
@mitchellkrogza can you also include your php nginx configuration? specifically the PHP bit, like:
|
Here you go:
|
I'm able to reproduce the issue, trying to locate the issue now. Thanks for the detailed help! |
No problem whatsoever. |
Don't know if it's still usefull but i'm on |
Nope, it wasn't that. Can you please come to grav chat? I need your help to figure this out. |
I'm setting up a raspberry pi / nginx setup to see if i can replicate it too. @slyholborn what does your nginx.conf look like? |
I post it as soon as i can acces the server. I'm at work without my ssh keys... |
Ok, i've narrowed it down to Nginx, and specifically the
And this worked, however, the
When I change it to this, and restart nginx, it breaks with that ajax error. So i removed the 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. |
Yeah, do not remove the query_string part! It's really needed :) |
Yah this is not the solution, but it is narrowing things down for us.. just giving you guys a running commentary. If you can test that removing it 'does' fix your ajax issues, then we are solving the same problem you are having... that's all.. |
Info from my system (Mac OS X El Capitan 10.11.6) below. If more details can help, please ask.
|
Yup, we have a fix.. a workaround for this |
Ok, we're going to re-release Grav now with this fix. |
Great! |
Thanks @rhukster and team for a quick fix. Updated this morning 1.3.6 and all is working again 👍 |
All works fin here too! Thanks!! |
Anyone stuck at 1.3.5 and unable to update it to 1.3.6 simply do the following
Then reload Admin and you will be able to update it. |
I have the exact same issue as @mitchellkrogza, I'm working on local with the built-in PHP server, the
And I have the latest Grav version |
Read the info above. The issue is probably the same as the original poster, you need to change your |
I'm experiencing this using my Built-in PHP Webserver, Grav:
How do you adjust the |
@colinwilson can you please open a new ticket. This is a similar but different error that must be related to the system/router.php |
hum; Interesting... I'm not sure if it's because I'm using freebsd 11.1-RELEASE-p8 with nginx/1.12.2 and PHP 7.1.15 but for me it's the inverse : as this
it's work fine (without error) |
I get all the errors possible with latest grav ( No errors in console, no errors in nginx error log. |
@velsa Please create a new issue from this as nobody looks at closed issues. :) |
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!) |
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!
The text was updated successfully, but these errors were encountered: