WordPress编辑器未更新文件:无法与网站通讯以检查致命错误 [英] WordPress Editor not updating files: Unable to communicate back with site to check for fatal errors

查看:326
本文介绍了WordPress编辑器未更新文件:无法与网站通讯以检查致命错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,开发人员和问题解决者.我在更新WordPress网站中的header.php文件时遇到了问题.

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

首先,我尝试通过C-Panel-> File Manager手动更新文件.该代码似乎保留在文件中,但是当您以隐身模式和其他Web浏览器查看页面源代码时,该代码不会呈现.

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.

这不是服务器问题,我已经联系了服务器支持团队,并且MySQL没有报告任何错误日志.

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

从我在Google上进行的一些搜索可以发现,似乎没有很多解决方案.

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

完全错误

由于无法与站点进行通信以检查致命错误,因此恢复了PHP更改.您将需要通过其他方式(例如,使用SFTP)上传PHP文件更改.

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.

推荐答案

现在,从技术上讲,这不能解决当前问题.但是我刚刚添加了一个名为插入页眉和页脚的WordPress插件,并且我添加了标头脚本,它成功运行.

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.

这篇关于WordPress编辑器未更新文件:无法与网站通讯以检查致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆