JSON problem that resists!

Hello there !
I am facing a problem with one of the website I created… I hope you will have some ideas to help me and resolve the problem.

The website was finished in march and I was supposed to administer it until the end of the year. But my client’s daughter decided to take over and administer the site by herself.

I did not agree first because if she made a mistake, I didn’t want to be held responsible. She assured me that she had all the skills and that she relieved me of all responsibility. But as soon as she started to touch it, problems started ! She changed something in the header and saved the modification, it worked perfectly. But from there it was impossible to save the following modifications. We have the same error message : failed to save. La réponse n’est pas une réponse JSON valide.

The site is on Wordpress et builded with Cornerstone.

I do not know what exactly she touched but I tried many things to resolve the problem, without success :

  • Changing theme for a WP one
  • Checking permanent links
  • Checking URLS in general settings
  • Checking .htaccess file
  • Reinstall WP
  • Regenerate the database
  • Check the wp-config.php file
  • Disable plugins

My host’s support tells me there is no issue from their side.
Does anyone have any idea what happened and how to fix it ?

Thank you :pray:t2:

Hi @michael,

Sorry to hear that you are facing such a problem. It seems that mod_security is enabled on your site, and that causes the issue you are having. It does not let you call the Cornerstone endpoint to save the page or post.
I would suggest you contact your hosting service provider to temporarily disable the ModSecurity for you and make the Cornerstone endpoints whitelisted. Please go through the following article which may help you on this.


https://www.interserver.net/tips/kb/how-to-disable-mod_security-and-why-it-is-not-recommended/

Thanks

Hi,
Thank you for answering.
What I do not understand is that the site worked perfectly before… I will check the articles you sent. Thank you again.

@tristup
I disabled the ModSecurity but I still have the same error message…

Any idea of what I can do now ?

Hi @michael,

Disabling the Mod Security will not work, you need to whitelist the Cornerstone endpoints too.

Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.