Support » Fixing WordPress » Getting Error – Unable to Update Theme Files in Editor Mode

  • Hi,

    When I try to update theme file I get 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.”

    It was not happening earlier. I contacted my host he said it is WordPress related problem.

    Let me know how to fix this?

    • This topic was modified 1 year, 11 months ago by Mandar Apte.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steve Stern


    Support Team Volunteer

    Please install the health check plugin and report back its findings:

    The troubleshooting page will let you see if a plugin is responsible for the loopback problem.

    @ Steve Stern….

    I activated Health Check Plugin, Here are my findings

    				### WordPress ###
    Version: 4.9.4
    Language: en_US
    Permalink structure: /%category%/%postname%/
    Is this site using HTTPS?: No
    Can anyone register on this site?: No
    Default comment status: open
    Is this a multisite?: Yes
    User Count: 1
    Site Count: 6
    Network Count: 1
    Communication with is reachable
    Create loopback requests: The loopback request to your site completed successfully.
    ### Active theme ###
    Name: Mandar Apte RWD
    Version: 11.1
    Author: Mandar Apte
    Author website:
    Parent theme: Not a child theme
    Supported theme features: automatic-feed-links, post-thumbnails, menus, post-formats, custom-background, html5, custom-header, infinite-scroll, widgets
    ### Other themes (6) ###
    Mandar Apte - Apps RWD (mandar-apte-apps-rwd-11-1): Version 11.1 by Mandar Apte
    Mandar Apte - Design Case Study RWD (mandar-apte-design-case-study-rwd-11-1): Version 11.1 by Mandar Apte
    Mandar Apte - Design Resource RWD (mandar-apte-design-resource-rwd-11-1): Version 11.1 by Mandar Apte
    Mandar Apte - Developer Resource RWD (mandar-apte-developer-resource-rwd-11-1): Version 11.1 by Mandar Apte
    Mandar Apte - Inspirations RWD (mandar-apte-inspirations-rwd-11-1): Version 11.1 by Mandar Apte
    Twenty Fifteen (twentyfifteen): Version 1.9 by the WordPress team
    ### Must Use Plugins (1) ###
    Health Check Disable Plugins: Version 1.3
    ### Active Plugins (9) ###
    Akismet Anti-Spam: Version 4.0.3 by Automattic
    Block Bad Queries (BBQ): Version 20171101 by Jeff Starr
    Download Monitor: Version 4.0.5 by Never5
    FD Feedburner Plugin: Version 1.48 by John Watson
    Google XML Sitemaps: Version 4.0.9 by Arne Brachhold
    Health Check: Version 1.0.0 by The community
    Jetpack by Version 5.8 by Automattic
    SEO Ultimate: Version by SEO Design Solutions
    SyntaxHighlighter Evolved: Version 3.2.1 by Alex Mills (Viper007Bond)
    ### Inactive Plugins (11) ###
    BuySellAds: Version by Derek Herman
    Cloudflare: Version 3.3.2 by John Wineman, Furkan Yilmaz, Junade Ali (Cloudflare Team)
    Google AdSense: Version 1.2.1 by Google
    Google Analytics for WordPress by MonsterInsights: Version 7.0.0 by MonsterInsights
    Hello Dolly: Version 1.6 by Matt Mullenweg
    iThemes Security: Version 6.9.0 by iThemes
    My Page Order: Version 4.3 by Andrew Charlton
    Quick Page/Post Redirect Plugin: Version 5.1.8 by anadnet
    WP-Optimize: Version 2.2.0 by David Anderson, Ruhani Rabin, Team Updraft
    WP Smush: Version 2.7.8 by WPMU DEV
    Yoast SEO: Version 6.3.1 by Team Yoast
    ### Media handling ###
    Active editor: WP_Image_Editor_GD
    Imagick Module Version: Imagick not available
    ImageMagick Version: Imagick not available
    GD Version: bundled (2.1.0 compatible)
    Ghostscript Version: 9.05
    ### Server ###
    Server architecture: Linux 4.9.36mtv22 x86_64
    PHP Version: 5.6.21 (Supports 64bit values)
    PHP SAPI: cgi-fcgi
    PHP max input variables: 1000
    PHP time limit: 120
    PHP memory limit: 256M
    Max input time: -1
    Upload max filesize: 99M
    PHP post max size: 99M
    cURL Version: 7.26.0 OpenSSL/1.0.1t
    SUHOSIN installed: No
    Is the Imagick library available: No
    ### Database ###
    Extension: mysqli
    Server version: 5.6.33-79.0
    Client version: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
    Database prefix: wp_
    ### WordPress constants ###
    ABSPATH: /nfs/c12/h03/mnt/220454/domains/
    WP_HOME: Undefined
    WP_SITEURL: Undefined
    WP_DEBUG: Disabled
    WP_DEBUG_LOG: Disabled
    SCRIPT_DEBUG: Disabled
    WP_CACHE: Disabled
    COMPRESS_CSS: Undefined
    WP_LOCAL_DEV: Undefined
    ### Filesystem permissions ###
    The main WordPress directory: Writable
    The wp-content directory: Writable
    The uploads directory: Writable
    The plugins directory: Writable
    The themes directory: Writable
    The Must Use Plugins directory: Writable
    Moderator Steve Stern


    Support Team Volunteer

    Hmmm… loopback is successful. Can you edit a non-active theme?

    Yes, I am able to successfully edit non active themes.

    But If I edit active theme file WordPress deletes all of it’s code & make it zero kb file.


    (@fierevere) team, ru_RU support & translation

    this may happen theoretically on some host (and filesystem with mount flags) combination with opcode cache.
    Please dont edit active theme files )

    Hello @mandarapte

    Please have look at the possible causes and solution for the fatal error. I have already stated at

    Thank You

    Moderator Jan Dembowski


    Forum Moderator and Brute Squad

    Side note to @mandarapte (and yes, I am using the notification system).

    Don’t ping users here just to bump your topic. I’ve removed your reply, that is considered abusive behavior.

    People, including moderators, volunteer here for free. When you ping that way you are spamming them. Don’t do that. It really is rude.

    Edit: This goes for everyone. I really may create a trac ticket to disable that notification for users. It is abused too much.

    • This reply was modified 1 year, 11 months ago by Jan Dembowski.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Getting Error – Unable to Update Theme Files in Editor Mode’ is closed to new replies.