Reputation: 11
Whenever I update a post, I get a "Connection lost. Saving has been disabled until you’re reconnected.” that laters turns into a 404 error message. I never get the error msg when I create a new one. I have tried a couple of things, like checked all of my plugins, updated the permalinks, looked at the code, but cannot find anything.
I have around 20 000 views a week, and I have one CPU core. Should I get one more CPU core?
All help is appriciated!
Upvotes: 1
Views: 95
Reputation: 11
The most common reason for this is your mod_Security setup. You haven't provided any information on your hosting setup. Here's some general guidelines that may only help in a dedicated or VPS environment. If you're on a shared server running cPanel, you may have the ability to only turn mod_security on/off via cPanel which isn't advisable (though it should solve the problem). On a dedicated or VPS box, you should have the ability to tweak your mod_security rules and resolve the problem:
Locate whitelist.conf, might be in /usr/local/apache/conf/modsec2/whitelist.conf.
Add the following rules to the file:
<LocationMatch “/wp-admin/post.php”>
SecRuleRemoveById 300015 300016 300017
</LocationMatch>
<LocationMatch “/wp-admin/admin-ajax.php”>
SecRuleRemoveById 300015 300016 300017
</LocationMatch>
<LocationMatch “/wp-admin/page.php”>
SecRuleRemoveById 300015 300016 300017
</LocationMatch>
Save the file
Restart Apache
Upvotes: 1