最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Tinymce broken after update

programmeradmin1浏览0评论

I've found other posts related to this, but none had a answer to my issue.

After updating to WP 3.4 my visual editor is broken.

Firebug reports this error

Failed to load: .js

wp-tin...9-20805 (linha 1)

I've tried setting the theme to a default theme and it WORKS.

So, is there any way I can determine what's causing this in order to fix it?

I've found other posts related to this, but none had a answer to my issue.

After updating to WP 3.4 my visual editor is broken.

Firebug reports this error

Failed to load: http://xxxxxx/wp-includes/js/tinymce/langs/pt.js

wp-tin...9-20805 (linha 1)

I've tried setting the theme to a default theme and it WORKS.

So, is there any way I can determine what's causing this in order to fix it?

Share Improve this question asked Jun 15, 2012 at 15:24 SouljackerSouljacker 2012 silver badges8 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 1

There shouldn't be a pt.js file in that directory. There wasn't in 3.3.2 nor in 3.4. There's several possible issues that could be taking place, but my guess is that your WordPress install has been compromised and your theme files are corrupted. They are then trying to access that js file which is no longer there and it's no longer there because it's within the WordPress core which gets erased during an update.

Download your theme file and do a search for pt.js. Also do a search for eval(base64_decode and see if anything comes up.

I've noticed the error recently and came up with a quick fix to it. A simple plugin that basically copies locale files into the includes directory. Very preliminary but has done the trick for me so far.

Load languages from here and copy them into the plugin's langs directory. I've included French (fr_FR.js) by default as this is what I needed, but feel free to use it as you see fit.

Word of advice, though, once this plugin has run, I suggest you disable it as it will continuously check for the existence of those locales for no particular reason; just a little performance tip.

EDIT I am aware this is a less-than-ideal method, but as I mentionned, did the trick for me until the next update, at which point, if the problem returns, I will simply enable and disable the plugin again.

I resolve this problem when I create a blank pt.js file into wp-includes/js/tinymce/langs/pt.js and another one into wp-includes/js/tinymce/themes/advanced/langs/pt.js

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论