Title: Error: Saving failed: AJAX call failed
Last modified: December 28, 2018

---

# Error: Saving failed: AJAX call failed

 *  Resolved [ibtour](https://wordpress.org/support/users/ibtour/)
 * (@ibtour)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/)
 * 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 (ghasemi.f.n@gmail.com)
 *  Thanks in advance!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-saving-failed-ajax-call-failed-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-9993644)
 * 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,
    Tobias
 *  [andynz](https://wordpress.org/support/users/andynz/)
 * (@andynz)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-10017471)
 * I 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
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-10017612)
 * 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,
    Tobias
 *  [elisabethvm](https://wordpress.org/support/users/elisabethvm/)
 * (@elisabethvm)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-10371594)
 * Hi,
 * 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/](http://retraitesportivebreuillet.org/les-activites/voyages-et-sejours/)
 * Thanks in advance
 * Elisabeth
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-10371803)
 * 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,
    Tobias
 *  [elisabethvm](https://wordpress.org/support/users/elisabethvm/)
 * (@elisabethvm)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-10372308)
 * Hi Tobias,
 * I contacted my web host company as you advised me.
    They told me to deactivate
   a security tool. It works now. Thanks a lot
 * Elisabeth
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-10373600)
 * Hi Elisabeth,
 * awesome! That’s great news. Good to hear that everything is working again now!
 * Best wishes,
    Tobias
 *  [elisabethvm](https://wordpress.org/support/users/elisabethvm/)
 * (@elisabethvm)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-10374475)
 * Hi Tobias,
 * The security tool is mod_security.
 * Regards
 * Elisabeth
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-10377548)
 * Hi Elisabeth,
 * yes, that’s the one! 🙂
 * Best wishes,
    Tobias
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-10937030)
 * Hi,
 * this is not about the All In One WP Security plugin, but most likely caused by
   the firewall or `mod_security` on your server. Your web host company needs to
   help with this.
 * Regards,
    Tobias
 *  [pandusa](https://wordpress.org/support/users/pandusa/)
 * (@pandusa)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-11025615)
 * Hi 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
 *  [pandusa](https://wordpress.org/support/users/pandusa/)
 * (@pandusa)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-11025624)
 * 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
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-11025811)
 * 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,
    Tobias
 *  [pandusa](https://wordpress.org/support/users/pandusa/)
 * (@pandusa)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/#post-11026693)
 * Hi 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
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/page/2/#post-11027337)
 * Hi,
 * yes, it’s better to fix this in the long term.
 * Regards,
    Tobias

Viewing 15 replies - 1 through 15 (of 15 total)

 The topic ‘Error: Saving failed: AJAX call failed’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 15 replies
 * 5 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/error-saving-failed-ajax-call-failed-2/page/2/#post-11027337)
 * Status: resolved