1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Editor not allowing to submit custom code in WordPress

Discussion in 'WordPress' started by kellyrose, Feb 12, 2018.

  1. #1
    Why editor is not allowing to enter my custom php code after 4.9 version update in WordPress?

    And showing this error message:
    "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.”"
    SEMrush
     
    kellyrose, Feb 12, 2018 IP
    SEMrush
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,635
    Likes Received:
    394
    Best Answers:
    21
    Trophy Points:
    295
    #2
    I don't think you can arbitrarily slap php into the editor in the first place but you can give this a whirl. It appears to still work...

    https://wordpress.org/plugins/insert-php/

    hope that helps,
    Nigel
     
    Nigel Lew, Feb 12, 2018 IP
  3. kellyrose

    kellyrose Active Member

    Messages:
    101
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    50
    #3
    Thanks for the plugin suggestions.
    Let me try once and update the status here.
     
    kellyrose, Feb 14, 2018 IP
  4. Kaiti

    Kaiti Active Member

    Messages:
    85
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    53
    #4
    Deactivate all plugins and activated one by one, see which plugins creates problems.
     
    Kaiti, Feb 15, 2018 IP
  5. Tanmoy Kundu

    Tanmoy Kundu Member

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #5
    Not sure whether you were able fix the issue. But you can try doing the following:
    Into wp-config.php file search for DISALLOW_FILE_EDIT and you should see a function exactly like this define( 'DISALLOW_FILE_EDIT', true ); just change the status to false from true and if you don't find this function then add this function define( 'DISALLOW_FILE_EDIT', false );
    and Save
     
    Tanmoy Kundu, Mar 30, 2018 IP