WordPress Editor not updating files: Unable to communicate back with site to check for fatal errors

Hello fellow developers and problem-solvers. I’ve run into an issue with updating the header.php file in a WordPress website.

Firstly, I tried updating the file manually through C-Panel -> File Manager. The code appears to stay in the file, but when you view the page source in incognito mode and different web browsers the code doesn’t render.

It’s not a server problem, I already contacted the server support team and there aren’t any error logs being reported by MySQL.

There doesn’t appear to be many solutions for this from what I can find from doing some searches on Google.

Full Error

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 help at all would be greatly appreciated.

Answer

Now, this technically didn’t fix the issue at hand. But I just added a WordPress plugin called Insert Headers and Footers and I added the header script and it worked successfully.