Not possible to edit themes from admin

This topic contains 6 replies, has 4 voices, and was last updated by  Alex Rollin 7 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #413604

    Ulrike
    Buyer
    Post count: 12

    Hi,

    since (i think) upgrade WP to 4.9 and later, its not possible anymore to edit theme files directly from the admin panel – so like the index.php.
    If you try to save it, WP is doing the check if everything is fine, but seems to have a problem – whatever this is.
    The last message is:
    “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 disabled all plugins and use default wp theme + wpgeodirectory and this issue occurs.

    I also found this thread here:
    https://wordpress.org/support/topic/cant-edit-main-theme-php-files-after-upgrading-to-4-9/

    So my question is if anyone is aware of the problem?

    #413623

    Kor
    Moderator
    Post count: 16516

    Hi Ulrike,

    Thanks for reaching us. Unfortunately, this isn’t something that is related to GD. Please contact WP support directly here https://wordpress.org/support/

    Thanks!

    #413629

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Ulrike,

    This is a new “feature” in WP, it seems to be conflicting if we start a session.
    This has been fixed and will be in GDv2, for now u can edit
    geodirectory/functions/geodir-class-session.php at the bottom of the file
    find:

    
    
    public function maybe_start_session() {
    		if ( !session_id() && !headers_sent()) { 
    			session_start();
    		}
    	}

    Replace with:

    
    
    public function maybe_start_session() {
    		if ( !session_id() && !headers_sent() && !isset($_POST['newcontent'])) { 
    			session_start();
    		}
    	}

    Thanks,

    Stiofan

    #413701

    Ulrike
    Buyer
    Post count: 12

    Hi,
    i have changed the code, but nothing changed here. Its still not possible to edit a file.

    #413799

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    please use FTP or SFTP to edit the file.

    #413847

    Ulrike
    Buyer
    Post count: 12

    hm, of course i can do this. Just thought that there is a workarround or solution for this issue.

    #413850

    Alex Rollin
    Moderator
    Post count: 27815

    We are aware of the issue, but it is primarily a WordPress issue related to 4.9 release:

    https://wordpress.org/news/2017/11/tipton/

    See specifically the section about Coding Enhancements. It’s a new feature! But… etc etc

    It effects everybody, and it looks like there are still bugs to work out.

    When it is all sorted the next GD release will take it into account.

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount