• I have been unable to use the theme editor for editing PHP files because it keeps reverting my changes due to the sandbox feature. I know that this happens only when certain plugins are active, but since it’s more than one plugin creating the conflict, I want to know how I can disable this feature (I can live without it because I’m working on a test site).

    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.

    Any assistance will be much appreciated!
    I did do the Site health check, it gives the following errors:

    The REST API request failed due to an error.
    Error: [] cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

    The loopback request to your site failed, this means features relying on them are not currently working as expected.
    Error encountered: (0) cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

Viewing 1 replies (of 1 total)
  • Dion

    (@diondesigns)

    Add the following line to your wp-config.php file, above where it says “That’s all, stop editing”.

    define('WP_SANDBOX_SCRAPING', false);

Viewing 1 replies (of 1 total)
  • The topic ‘Issue with editing PHP files in theme editor’ is closed to new replies.