Support » Fixing WordPress » Can’t edit main theme php files after upgrading to 4.9

  • Rizonesoft

    (@petrichorpost)



    I am unable to edit main theme (php) files using the build in WordPress editor after upgrading to version 4.9. I get the following error:

    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.

    I have cleared my browser cache, cleared my website cache, de-activated all plugins and reinstalled main theme.

    Furthermore; I am able to edit php files in other themes without issues. I have also checked my permissions and ownership of all files. Everything seems perfect.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 121 through 124 (of 124 total)
  • Same thing happened to me when I upgraded to WordPress 4.9. Attempts to save php files eventually results in the error shown below.

    “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.”

    Plugin that appears to be causing the conflict in my case is WP eCommerce. Not sure why it would. As a workaround, installing another editor, like WP Editor (which is untested with the current version of WordPress) resolves the problem and allows one to edit php files.

    Exact Same error for me as well while trying to update a theme file after upgrading to 4.9

    “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.”

    • This reply was modified 11 months, 3 weeks ago by  kaleelahamed.

    Same problem and messages since 4.9 update but saw another thread. Installed plug-in ‘Theme Editor’ and was then able to update live(!) twentyeleven .php’s (footer and showcase).

    Moderator Marius L. J.

    (@clorith)

    I’m sorry, but we’re sliding into “me too”-like replies, without actually reading the thread which contains MANY steps we would like to be taken in an effort to help pinpoint your problems.

    As we’re about to hit double digit page numbers, this thread really has outlived its purpose, we’ve knocked the problem down to two potential causes;

    – Theme or plugin conflict
    – Host setup

    If, once you’ve tried the Troubleshooter options in the Health Checker plugin, you are still experiencing issues, each one of you can make a new topic.
    I can’t stress this enough, each one makes their own topic, we are fairly confident it is not a WordPress core issue, and as such your issues are likely not the same, and you should keep things to your own threads.

Viewing 4 replies - 121 through 124 (of 124 total)
  • The topic ‘Can’t edit main theme php files after upgrading to 4.9’ is closed to new replies.