custom sidebar plugin issue

时间:2019-09-24 作者:Gerard Radford

We are currently using the wpmudev custom sidebar plugin on our website https://www.bodycote.com/

The plugin has been working fine for the last 2 years we run it with WPML and a number of other plugins and have had no issues at all.

However recently when we upgraded the wordpress core to 5.23 we have been unable to edit/amend any of the custom widgets that we had set up on the website.

All of the current sidebars still appear on the front end of the website and work in the foreign languages on the website but I cannot amend them. My concern is that the functionality for editing the content in Tiny MCE is not working for some reason or possibly for a nother reason.

Its not possible for me to switch off all of the other plugins to see if one of them is cancelling out the custom sidebars plugin on the live environment as this is a FTSE 150 website which cannot be unavailable.

Is there any other way to find out what is causing the issue?

Many thanks for you help

Regards

Gerard


this is what the console tells me:

JQMIGRATE: Migrate is installed, version 1.4.1 widgets.php:205 Uncaught TypeError: Cannot read property ‘init’ of undefined at widgets.php:205 widgets.php:209 Uncaught TypeError: Cannot read property ‘modelConstructors’ of undefined at widgets.php:209 widgets.php:217 Uncaught TypeError: Cannot read property ‘modelConstructors’ of undefined at widgets.php:217 widgets.php:225 Uncaught TypeError: Cannot read property ‘modelConstructors’ of undefined at widgets.php:225 widgets.php:233 Uncaught TypeError: Cannot read property ‘modelConstructors’ of undefined at widgets.php:233 widgets.php:247 Uncaught TypeError: Cannot read property ‘idBases’ of undefined at widgets.php:247 widgets.php:253 Uncaught TypeError: Cannot read property ‘defaultSettings’ of undefined at widgets.php:253 widgets.php:261 Uncaught TypeError: Cannot read property ‘idBases’ of undefined at widgets.php:261 widgets.php:87210 Uncaught ReferenceError: acf is not defined at widgets.php:87210 widgets.php:87217 Uncaught ReferenceError: acf is not defined at widgets.php:87217 at widgets.php:87271 widgets.php:87274 Uncaught ReferenceError: acf is not defined at widgets.php:87274 widgets.php:87304 Uncaught ReferenceError: wpWidgets is not defined at widgets.php:87304 widgets.php:87310 Uncaught SyntaxError: missing ) after argument list widgets.php:87430 Uncaught ReferenceError: tinymce is not defined at widgets.php:87430 wp-langs-en.js?ver=4940-20190515:235 Uncaught ReferenceError: tinyMCE is not defined at wp-langs-en.js?ver=4940-20190515:235 at wp-langs-en.js?ver=4940-20190515:519 widgets.php:87499 Uncaught ReferenceError: tinymce is not defined at Object.load_ext (widgets.php:87499) at widgets.php:87504 acf-input.min.js?ver=5.8.3:4 Uncaught TypeError: Cannot read property ‘autop’ of undefined at acf.Model.onReady (acf-input.min.js?ver=5.8.3:4) at u (acf-input.min.js?ver=5.8.3:1) at Object.i (acf-input.min.js?ver=5.8.3:1) at Object.i.doAction (acf-input.min.js?ver=5.8.3:1) at HTMLDocument. (acf-input.min.js?ver=5.8.3:1) at i (load-scripts.php?c=0…pointer&ver=5.2.3:2) at Object.fireWith [as resolveWith] (load-scripts.php?c=0…pointer&ver=5.2.3:2) at Function.ready (load-scripts.php?c=0…pointer&ver=5.2.3:2) at HTMLDocument.J (load-scripts.php?c=0…pointer&ver=5.2.3:2) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1) wp-auth-check.min.js?ver=5.2.3:1 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined at HTMLDocument. (wp-auth-check.min.js?ver=5.2.3:1) at HTMLDocument.dispatch (load-scripts.php?c=0…pointer&ver=5.2.3:3) at HTMLDocument.r.handle (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object.a.event.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:8) at HTMLDocument. (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Function.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.each (load-scripts.php?c=0…pointer&ver=5.2.3:2) at a.fn.init.trigger (load-scripts.php?c=0…pointer&ver=5.2.3:3) at Object. (heartbeat.min.js?ver=5.2.3:1)

1 个回复
SO网友:rudtek

这不是粗鲁的表现,但这是一个明确的常规备份案例,也是为什么不应在未经测试的情况下在实时站点上运行更新的原因。

变量太多,我们无法帮助解决错误。可能是您更新了PHP,或者您的服务器已更新。不仅仅是Wordpress核心、插件或主题。

您需要将此网站的副本拉到开发平台上,并在完成更新过程时测试冲突。

创建一个开发平台

  • 检查与服务器(php等)的兼容性
  • 如果不兼容,请查找新的小部件插件
  • 相关推荐

    Testing Plugins for Multisite

    我最近发布了一个WordPress插件,它在单个站点上非常有效。我被告知该插件在多站点安装上不能正常工作,我理解其中的一些原因。我已经更新了代码,现在需要一种方法来测试更新后的代码,然后才能转到实时客户的多站点安装。我有一个用于测试的WordPress安装程序的单站点安装,但需要在多站点安装上进行测试。根据我所能找到的唯一方法是在网络上至少有两个站点来安装整个多站点安装,以测试我的插件。设置WordPress的整个多站点安装是插件开发人员的唯一/首选方式,还是有更快的测试环境可用。