Error: Saving failed: AJAX call failed
-
Hello,
Everytime I try to save one of our tables this error pops up:
Saving failed: AJAX call failed: parsererror – SyntaxError: Unexpected token < in JSON at position 0. Try again while holding down the “Shift” key.
I hope I can find help via email ([email protected])
Thanks in advance!
The page I need help with: [log in to see the link]
-
Hi,
thanks for your post, and sorry for the trouble.
This indicates that your server might be configured wrongly. It’s not returning a proper JSON response, but an error message. Can you maybe try finding out more from the error log files (that your webhost company’s support team should be able to give you)?
Regards,
TobiasI had a similar problem a while ago. I discovered that it only happened on a particular table if the last cell in the last row of the table is empty.
However, I cannot repeat this condition so perhaps something else has changed in the meantime.
Andy
Hi Andy,
yes, this is one of those weird cases where the server firewall was configured to strictly… It recognized the empty cell and thought it had to deal with an attack. In a more recent version, that check was fixed, as it seems.
Regards,
TobiasHi,
I have the same problem. I add a line to a table which has 4 rows.
In this line, I have a media in the first cell and I wanted to combine the three last cells with #colspan”. It doesn’t work and I have the message “AJAX call failed: error – Not Found. Try again while holding down the “Shift” key.”
If I cut the #colspan# in the cells 2 and 3, it’s Ok but I have to put something in the last cell.
But even though there is something in this last cell, it doesn’t work if I use #colspan” in the two previous cells.
The link is http://retraitesportivebreuillet.org/les-activites/voyages-et-sejours/Thanks in advance
Elisabeth
Hi Elisabeth,
this has the same cause as above. Some server security software is configured too strictly. You will have to ask your web host company to fix this, with the information that they get from their error log files.
Regards,
TobiasHi Tobias,
I contacted my web host company as you advised me.
They told me to deactivate a security tool. It works now.
Thanks a lotElisabeth
Hi Elisabeth,
awesome! That’s great news. Good to hear that everything is working again now!
Best wishes,
TobiasHi Tobias,
The security tool is mod_security.
Regards
Elisabeth
Hi Elisabeth,
yes, that’s the one! 🙂
Best wishes,
TobiasHi,
this is not about the All In One WP Security plugin, but most likely caused by the firewall or
mod_securityon your server. Your web host company needs to help with this.Regards,
TobiasHi Tobias,
I have a similar problem, I hope it doesn’t bore you, but the error message is a bit different. In WP it says “Saving failed: AJAX call failed: error – Bad Request. Try again while holding down the “Shift” key.”
And I checked our server error log. It says ” mod_fcgid: stderr: PHP Warning: Unknown: POST data can’t be buffered; all data discarded in Unknown on line 0, referer: …/wp-admin/admin.php?page=tablepress&action=edit&table_id=8 ”
We use Dreamhost. Does it mean I have to contact them and ask about mod_security, too?
Thanks and kind regards
Hi again,
I should probably add that this problem occurs only sometimes but not all the time. I don’t know what triggers it.
Last week I couldn’t update a table for a couple of hours, and later I could do it.Today, 4 hours ago I succesfully updated the table and now the last hour or so it doesn’t work.
Kind regards
Hi,
yes, this “Bad request” part of the error message plus the error that you got from the error log file indicates that this is a server configuration issue. You should check if you are using the latest version of PHP and then investigate the relevant PHP settings that could cause this error from the log file. Most likely, you’ll then need Dreamhost’s help to change the setting in the PHP configuration. In this case, it should not be related to mod_security though.
Regards,
TobiasHi Tobias,
thanks for the fast reply. I will check with them and let you know.
At the moment it is working again and I’m able to edit the tables and save my changes. But better to check in case it happens again.Kind regards
Hi,
yes, it’s better to fix this in the long term.
Regards,
Tobias
The topic ‘Error: Saving failed: AJAX call failed’ is closed to new replies.