简体   繁体   English

尝试向产品管理页面添加新类别时出现Wordpress JS错误

[英]Wordpress JS error when trying to add a new category to the product admin page

To summarise the issue, in the Wordpress back end go to products, add new. 总结问题,在Wordpress后端转到产品,添加新的。 When i click "+ Add new category", fill in the box and click the "add new category" button nothing happens. 当我单击“ +添加新类别”时,填写框,然后单击“添加新类别”按钮,则什么也没有发生。

The new category should be added to the list of categories straight away. 新类别应立即添加到类别列表中。 When i reload the page the category is then added to the list of categories. 当我重新加载页面时,类别会添加到类别列表中。 This is an issue as we have lots of products to add manually and reloading the page slows down this process. 这是一个问题,因为我们有很多产品需要手动添加,并且重新加载页面会减慢此过程。

I have tried the following to fix: 我尝试了以下解决方法:

  • remove all inactive plugins 删除所有无效的插件
  • disable all plugins (apart from woocommerce needed to test) 禁用所有插件(除了woocommerce进行测试以外)
  • changing the theme 改变主题
  • updating wordpress 更新wordpress
  • removing all custom JS 删除所有自定义JS
  • removing all functions from functions.php file 从functions.php文件中删除所有功能
  • removing all categories 删除所有类别

Any advice on this would be much appreciated, if there is any more information required please ask. 对此有任何建议,如果需要更多信息,请询问。

Thanks 谢谢

error message for chrome:

Uncaught TypeError: Cannot read property 'responses' of undefined at Object.c [as addAfter] (post.min.js?ver=5.1:1) at Object.j.is.d.element.wpAjax.validateForm.d.data.match.d.complete (wp-lists.min.js?ver=5.1:1) at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload&ver=5.1:2) at Object.fireWith (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload&ver=5.1:2) at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload&ver=5.1:4) at XMLHttpRequest.c (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery- 未捕获到的TypeError:无法读取Object.j.is.d.element.wpAjax.validateForm.d.data处Object.c的未定义属性“响应”(为addAfter)(post.min.js?ver = 5.1:1)。 .match.d.complete(wp-lists.min.js?ver = 5.1:1)在我(load-scripts.php?c = 0&load [] = jquery-core,jquery-migrate,utils,jquery-ui-核心,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,下划线,主干,wp-util,&load [] = wp-主干,媒体模型,moxiejs,plupload&ver = 5.1:2) .fireWith(load-scripts.php?c = 0&load [] = jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore ,骨干,wp-util,&load [] = wp-骨干,媒体模型,moxiejs,plupload&ver = 5.1:2,位于y(load-scripts.php?c = 0&load [] = jquery-core,jquery-migrate, utils的,jquery的-UI-芯,jQuery的UI窗口小部件,jquery的-UI-鼠标,jQuery的UI可排序,下划线,骨干,WP-UTIL,&加载[] = WP-骨干,媒体的模型,moxiejs,plupload&版本= 5.1:4)在XMLHttpRequest.c(load-scripts.php?c = 0&load [] = jquery-core,jquery-migrate,utils,jquery-ui-core,jquery- ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load[]=wp-backbone,media-models,moxiejs,plupload&ver=5.1:4) UI窗口小部件,jquery的-UI-鼠标,jQuery的UI可排序,下划线,骨干,WP-UTIL,&加载[] = WP-骨干,媒体的模型,moxiejs,plupload&版本= 5.1:4)

a different error message for firefox: load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-position,jquery&load[]=-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,editor-expand,thickbox,shortcode,wp-plupload,wp-mediaeleme&load[]=nt,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,imageslo&load[]=aded,masonry,jquery-masonry,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp-api,wp-annotations,m&load[]=edia-upload,jquery-ui-accordion&ver=5.0.4:50 Uncaught TypeError: Cannot read property 'responses' of undefined at Object.c [as addAfter] (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-position,jquery&load[]=-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,editor-expand,thi Firefox的其他错误消息:load-scripts.php?c = 0&load [] = hoverIntent,常见,管理栏,心跳,自动保存,建议,wp-ajax-response,jquery-color,wp-lists,postbox,jquery -ui位置,jQuery和加载[] = - UI菜单,jQuery的UI的自动完成,标签建议功能,标签盒,词数,文章,主编扩大,ThickBox的,简码,WP-plupload,WP-mediaeleme及负载[ ] = NT,WP-API请求,媒体的视图,媒体编辑器,媒体声像,MCE-视图,imgareaselect,图像编辑,SVG-画家,WP-AUTH-检查,imageslo和负载[] =交锋,砖石, jQuery的砖石,jquery的-UI-拖动,jquery的-UI-滑块,jquery的触摸冲头,虹膜,WP-颜色选择器,WP-API,WP-注解,M&加载[] = EDIA上传,jQuery的UI- Accordion&ver = 5.0.4:50未捕获的TypeError:无法读取Object.c上未定义的属性“响应”(作为addAfter)(load-scripts.php?c = 0&load [] = hoverIntent,common,admin-bar,heartbeat,autosave ,建议,WP-Ajax的响应,jquery的色,WP-列表,邮箱,jquery的-UI-位置,jQuery和装载[] = - UI菜单,jquery的-UI-自动完成,标签-建议,标签盒,字处理算,后,主编扩大,THI ckbox,shortcode,wp-plupload,wp-mediaeleme&load[]=nt,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,imageslo&load[]=aded,masonry,jquery-masonry,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp-api,wp-annotations,m&load[]=edia-upload,jquery-ui-accordion&ver=5.0.4:50) at Object.j.is.d.element.wpAjax.validateForm.d.data.match.d.complete (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-position,jquery&load[]=-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,editor-expand,thickbox,shortcode,wp-plupload,wp-mediaeleme&load[]=nt,wp-api-request,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,imageslo&load[]=aded,masonry,jquery-masonry,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp-api,wp-annotations, ckbox,短码,WP-plupload,WP-mediaeleme&加载[] = NT,WP-API请求,媒体的视图,媒体编辑器,媒体声像,MCE-视图,imgareaselect,图像编辑,SVG-画家,WP- AUTH-检查,imageslo&加载[] =交锋,砖石,jQuery的砖石,jquery的-UI-拖动,jquery的-UI-滑块,jquery的触摸冲头,虹膜,WP-颜色选择器,WP-API,WP-注解, m&load [] = edia-upload,jquery-ui-accordion&ver = 5.0.4:50)位于Object.j.is.d.element.wpAjax.validateForm.d.data.match.d.complete(load-scripts.php C = 0加载[] = hoverIntent,常见的,管理员酒吧,心跳,自动保存,建议,WP-Ajax的响应,jquery的色,WP-列表,邮箱,jquery的-UI-位置,jQuery和装载[] = - UI-菜单,jQuery的UI的自动完成,标签建议功能,标签盒,词数,文章,主编扩大,ThickBox的,简码,WP-plupload,WP-mediaeleme和加载[] = NT,WP-API请求,媒体 - 视图,媒体编辑器,媒体声像,MCE-视图,imgareaselect,图像编辑,SVG-画家,WP-AUTH-检查,imageslo&加载[] =交锋,砖石,jQuery的砖石,jquery的-UI-拖动,jquery- UI滑块,jquery的触摸冲头,虹膜,WP-颜色选择器,WP-API,WP-注解, m&load[]=edia-upload,jquery-ui-accordion&ver=5.0.4:12) at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.4:2) at Object.fireWith (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.4:2) at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.4:4) at XMLHttpRequest.c (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.4:4) m&load [] = edia-upload,jquery-ui-accordion&ver = 5.0.4:12)在我(load-scripts.php?c = 0&load [] = jquery-core,jquery-migrate,utils&ver = 5.0.4:2) )在Object.fireWith(load-scripts.php?c = 0&load [] = jquery-core,jquery-migrate,utils&ver = 5.0.4:2)在y(load-scripts.php?c = 0&load [] = jquery -core,jquery-migrate,utils&ver = 5.0.4:4)在XMLHttpRequest.c(load-scripts.php?c = 0&load [] = jquery-core,jquery-migrate,utils&ver = 5.0.4:4)

This issue has been resolved. 此问题已得到解决。

The issue was being caused by a cache plugin called breeze. 此问题是由名为breeze的缓存插件引起的。

To rectify, breeze needs to be disabled or removed and then purge varnish cache from your hosting provider. 要进行纠正,需要禁用或删除微风,然后从托管服务提供商清除清漆缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM