My sites built on Unite are now failing when you go to save any php changes from the appearance editor. This seems to have happened since upgrading to WP 4.9 which introduced some built in error checking when you save.
When I go to save my changes it hangs for ages and then I get this 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.”
I have investigated this quite a bit and many people are saying it was a plugin causing the error for them. However, I have tried switching off all my plugins but this doesn’t help, instead I get the following error which points to Unite being the culprit…
“Your PHP code changes were rolled back due to an error on line 409 of file wp-content/themes/unite/inc/extras.php. Please fix and try saving again.”
Any ideas would be gratefully received.