WordPress JS errors in Post section after upgrade to 3.5.1

谁都会走 提交于 2019-12-11 03:17:46

问题


After upgrading to WordPress Version 3.5.1, I am getting a few JS errors and hence not able to use some basic WP features in the admin panel.

E.g. On post edit page I am not able to switch the editor to html mode, not able to click on any link (Edit), tabs, etc.

Please suggest what action should be taken or is it a WordPress upgrade issue? Did a reinstall but no change.

The errors I noticed in firebug console are as follows . . . .

TypeError: e is undefined

TypeError: $(...).pointer is not a function $(’.insert-media’).pointer( options ).pointer(‘open’);

TypeError: switchEditors is undefined switchEditors.switchto(this);

回答1:


Sometimes disabling or updating plugins doesn't help because your theme is using outdated JS. For me it was jQuery-ui library, which was used by theme. If your Wordpress version is 3.5 or higher, you need to use jQuery-UI 1.9.2 or higher.

More info here: http://www.hoosoft.com/blog/fix-jquery-1-8-3-error-typeerror-e-is-undefined-in-wordpress-3-5/



来源:https://stackoverflow.com/questions/14628381/wordpress-js-errors-in-post-section-after-upgrade-to-3-5-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!