When creating a WordPress droplet from the marketplace (https://marketplace.digitalocean.com/apps/wordpress). 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.
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!
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.
My problem is got solved when i delete file object-cache.php inside /wp-content folder. The problem arise when i installed wp-redis on digitalocean Ubuntu 22.04 droplet. (I am using NGINX, PHP8.1-FPM, Mariadb 10.10.2.
I don’t know why the problem arise, because i migrated my /html whole directory and database on new server to create staging environment. First everything is fine but when i enable wp-redis plugin in WordPress and enable object cache the error arise “Scrape key check failed”.
Note: The file object-cache is already present in my /wp-content folder as i say i migrated, means in previous server i already have enabled redis and there was no issue.
To fix the problem i tried.
**
SO TO FIX PROBLEM JUST DELETE ANY CACHE FILE LIKE OBJECT-CACHE.PHP OR ADVANCED-CACHE.PHP
**
After migration regenerate them (Do not use previous file, if using wp-rocket it will regenerate automatically, if using NGINX and redis, reinstall wp-redis on server and enable wp-redis plugin it will regenerate the file) and problem will not occur any further.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.