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.”"
     
    kellyrose, Feb 12, 2018 IP
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    405
    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:
    103
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    85
    #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:
    123
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    68
    #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
  6. Harshal shah

    Harshal shah Active Member

    Messages:
    126
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    65
    #6
    You need to use some of plugin to use PHP code in an editor or need to be good at filters and hooks to modify the actual functionality of Editor.
    By default, WordPress Editor will not allow to execute Server Side Scripting by putting in to Editor. To overcome this, you need to filter the editor content.
     
    Harshal shah, Oct 15, 2018 IP
  7. tahir9110

    tahir9110 Member

    Messages:
    33
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #7
    what kind of you wanna post?
     
    tahir9110, Oct 25, 2018 IP
  8. Spoiltdiva

    Spoiltdiva Acclaimed Member

    Messages:
    7,732
    Likes Received:
    2,889
    Best Answers:
    53
    Trophy Points:
    520
    #8
    ^^^For the love of God, someone needs to award the above with *Best Answer*.:rolleyes:
     
    Spoiltdiva, Oct 25, 2018 IP