我的 WordPress“编辑帖子”页面中的 TinyMCE 编辑器似乎坏了。Chrome 控制台显示:
Resource interpreted as Script but transferred with MIME type text/html: "http://mysite.com/wp-includes/js/tinymce/langs/wp-langs-en.js?ver=349-20805". post.php:62
Resource interpreted as Script but transferred with MIME type text/html: "http://mysite.com/wp-includes/js/tinymce/tiny_mce.js?ver=349-20805". post.php:62
Uncaught SyntaxError: Unexpected token < tiny_mce.js:1
Uncaught ReferenceError: tinyMCE is not defined wp-langs-en.js:1
Uncaught ReferenceError: tinymce is not defined post.php:1180
如果我在 Chrome 开发人员工具中检查 tinymce.js,我会看到以下响应标头:
Cache-Control:public, must-revalidate, proxy-revalidate
Connection:close
Content-Type:text/html
Date:Sat, 16 Jun 2012 01:40:42 GMT
Pragma:public
Server:Apache
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-Powered-By:PHP/5.2.17, W3 Total Cache/0.9.2.4
而这个回应:
<br />
<b>Parse error</b>: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in <b>/home/mysite/public_html/wp-includes/js/tinymce/tiny_mce.js</b> on line <b>1</b><br />
正在正确检索和执行各种其他 .js 文件。关闭 W3TC 没有任何区别。Firefox 也存在问题。这个问题似乎突然出现了。我不知道我改变了什么,甚至没有更新或安装/卸载插件。
提前致谢。