How to fix Scrape key check failed error saving php files in a WordPress droplet

When creating a WordPress droplet from the marketplace ( It’s not possible to save a PHP file from the “Theme Editor” in WordPress as it returns “Scrape key check failed. Please try again.” when clicking the Save button. I didn’t install or did anything to the droplet. I created a droplet, logged into WordPress, I went to the Theme Editor tried to save one of the PHP files of the theme and then I get the error. This happens with all themes and it’s not a problem with a plugin because the site doesn’t have anything. I know it’s not recommended to edit files from the Theme Editor, but the point is that it is supposed to work. Also, saving changes to the sytle.css, for example, works.

How to fix this problem? Or please fix the droplet.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @mhweb,

That’s really weird! This issue shouldn’t be happening to a brand new WordPress website.

Usually, this issue is related to a Plugin(the most common is SG Optimizer plugin) or some Cache (the most common is objected cache) other people report it’s from Wordfence Security. I know you said there are no plugins I’m just stating the usual issues with the reported error.

As a last resort since it’s a new droplet, you can try to re-install WordPress to see if you’ll still experience the issue.