Can’t edit theme files without an error that clears the file
-
I have followed every Google link I’ve found so far and have not been able to solve this issue.
If I try to edit any theme file from any theme via the native editor on the WP dashboard, I get “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.” and the .php file gets emptied. Totally blank after that.
My current workaround is using the WP Editor plugin to edit theme files instead, but I’d love to get to the heart of the problem. It’s not an invalid code problem as it happens with every theme and every file even if I don’t actually change the contents at all.
My webhost couldn’t see anything on the hosting side that would be causing it. If I edit the files directly via cPanel or via the WP Edit plugin interface than everything is fine.
- The topic ‘Can’t edit theme files without an error that clears the file’ is closed to new replies.