WP e-Commerce uncaught typeErrors and reference errors after WordPress upgrade
-
Posted in main WordPress Support 3 weeks ago. . .
Hello, This may be put up against the wall and shot down, but until January 2017 had a perfectly good little WordPress 2.9.2 installation with Atahualpa 3.4.9, running WPEC 3.7.8. To update WordPress for all the given good reasons, I set up a staging site and manually updated by major releases to WordPress 4.7, Atahualpa 3.7.24, and, here is the Problem. The updated version of WP E-Commerce did not appear or work at all as before with the new versions of WordPress and Atahualpa. So I kept the 3.7.8.3 version of WP E-Commerce: it retains the products page and doesn’t have the custom field posts for products in later versions.
It worked perfectly, except the store edit page (page=wpsc-edit-products) could not be edited safely. It allows some access to products, but only on the first page. An overlay prevents editing, although I can tab to fields and enter in them under the overlay. Visual editor is not accessible. Variations are wonky. These are the errors consistently reported in any browser tried.
`Uncaught TypeError: Cannot read property ‘id’ of undefined
at wpsc_edShowButton (admin.js?ver=3.7.59:903)
at wpsc_edToolbar (admin.js?ver=3.7.59:888)
at admin.php?page=wpsc-edit-products:578
wpsc_edShowButton @ admin.js?ver=3.7.59:903
wpsc_edToolbar @ admin.js?ver=3.7.59:888
(anonymous) @ admin.php?page=wpsc-edit-products:578
load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.
send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:4
ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:4
n._evalUrl @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:4
Ha @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
append @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
$.fn.(anonymous function) @ jquery.livequery.js?ver=1.0.3:178
(anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
Y @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
html @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
(anonymous) @ admin.js?ver=3.7.59:302
i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2
fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2
y @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:4
c @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:4
admin.js?ver=3.7.59:903 Uncaught TypeError: Cannot read property ‘id’ of undefined
at wpsc_edShowButton (https://staging.blueandwhitehousepubandhkco.com/wp-content/plugins/wp-e-commerce/wpsc-admin/js/admin.js?ver=3.7.59:903:12)
at wpsc_edToolbar (https://staging.blueandwhitehousepubandhkco.com/wp-content/plugins/wp-e-commerce/wpsc-admin/js/admin.js?ver=3.7.59:888:13)
at eval (eval at <anonymous> (https://staging.blueandwhitehousepubandhkco.com/wp-admin/load-scripts.php?c=…swfobject,swfuploa&load%5B%5D=d-swfobject,swfupload-queue&ver=4.7.3:2:2651), <anonymous>:1:1)
at eval (<anonymous>)
at https://staging.blueandwhitehousepubandhkco.com/wp-admin/load-scripts.php?c=…swfobject,swfuploa&load%5B%5D=d-swfobject,swfupload-queue&ver=4.7.3:2:2651
at Function.globalEval (https://staging.blueandwhitehousepubandhkco.com/wp-admin/load-scripts.php?c=…swfobject,swfuploa&load%5B%5D=d-swfobject,swfupload-queue&ver=4.7.3:2:2662)
at Ha (https://staging.blueandwhitehousepubandhkco.com/wp-admin/load-scripts.php?c=…wfobject,swfuploa&load%5B%5D=d-swfobject,swfupload-queue&ver=4.7.3:3:21262)
at $.init.append (https://staging.blueandwhitehousepubandhkco.com/wp-admin/load-scripts.php?c=…wfobject,swfuploa&load%5B%5D=d-swfobject,swfupload-queue&ver=4.7.3:3:22791)
at $.init.$.fn.(anonymous function) [as append] (https://staging.blueandwhitehousepubandhkco.com/wp-content/plugins/wp-e-commerce/wpsc-admin/js/jquery.livequery.js?ver=1.0.3:178:17)
at $.init.<anonymous> (https://staging.blueandwhitehousepubandhkco.com/wp-admin/load-scripts.php?c=…wfobject,swfuploa&load%5B%5D=d-swfobject,swfupload-queue&ver=4.7.3:3:24070)
wpsc_edShowButton @ admin.js?ver=3.7.59:903
wpsc_edToolbar @ admin.js?ver=3.7.59:888
(anonymous) @ VM4307:1
(anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2
globalEval @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2
Ha @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
append @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
$.fn.(anonymous function) @ jquery.livequery.js?ver=1.0.3:178
(anonymous) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
Y @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
html @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:3
(anonymous) @ admin.js?ver=3.7.59:302
i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2
fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:2
y @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:4
c @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:4`Categories can be edited, but only the html editor is available. WordPress includes the compat3x plugin for old tinymce plugins, so I’m guessing that is not where the problem lies.
It looks like some file or files are not loading? not loading properly? not named correctly? Not in the right place? Would a file like quicktags.js be involved? Is this an authorization issue?
The WordPress moderator recommended submitting the topic in this forum. I don’t have enough understanding of the mechanics of building a website to know whether to drop it or look further. It is clearly not the direction WP e-Commerce has gone, but if there is a simple solution, this is probably the only place to find it. Many thanks for looking at this.
- The topic ‘WP e-Commerce uncaught typeErrors and reference errors after WordPress upgrade’ is closed to new replies.