Can’t edit PHP files with built-in editor
-
Recently I needed to make a quick update to a PHP file in my child theme – after a long break. I went in to the editor, made the change, hit the “Update File” button, and I got this strange 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.
If that was all, that would be all, but conveniently for me the edited file was wiped clean.
Thank God for back-ups.
After much reading on internet, searching for “session_start” in all my plugins and themes, running Health Checks countless times (yes, loopback always works), I still get that error.
I found a workaround – installed “Theme Editor” plugin and it saves my edits properly. Why can’t WordPress do the same?
Technically I have no problem now, but I am always striving to keep things lean and simple, and I would prefer to just use the built-in Editor. So, I’m hoping it can be fixed.
- The topic ‘Can’t edit PHP files with built-in editor’ is closed to new replies.