How to fix Scrape key check failed saving php files from the Themes Editor?
-
I’m in the process of transferring a site to a new server. Everything works find except when I try to save a PHP file from the theme editor now I’m getting error “Scrape key check failed. Please try again” when saving the file.
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.
This is on WordPress 5.9.3.
I have disabled all the plugins, and the problem is still happening.
I have searched online and not much information can be found.
However, I have found a post that mentions editing the “file.php” file in the wp-admin/includes folder to fix the problem.
The post says to comment out theif ( $is_active && 'php' === $extension) {
on line 509, and replace it withif ( $is_active && 'php' === $extension && false) {
, and this solutions works, but I shouldn’t have to edit the anything on the wp-admin folder.
Is this a problem with workdpress current version, or is there a better solution?
- The topic ‘How to fix Scrape key check failed saving php files from the Themes Editor?’ is closed to new replies.