After updating WordPress from version 5.4.15 to 6.4.4 and WooCommerce from 3.7.3 to 8.6, my website started experiencing issues. Despite clearing all caches(website, browser) the problems persisted. However, upon deactivating my cache plugin, the website began functioning properly again.
This topic was modified 6 months, 3 weeks ago by Abrogrammer.
First and foremost try to identify what is breaking things by just disabling CSS or JS or HTML or Image optimization (incl. lazyload). Based on that we can see what the next steps need to be ??
Thanks for getting back to me. When I log into my website, everything appears fine. However, when I open it in another window, it crashes, with large images and misaligned elements. Upon checking the console, I noticed three errors.
At product page Uncaught ReferenceError: jQuery is not defined at custom.js?ver=6.5.3%27%20defer=%27defer:24:1 lavender-bulgarian-10ml/:2708 Uncaught ReferenceError: wp is not defined at lavender-bulgarian-10ml/:2708:1 lavender-bulgarian-10ml/:2719 Uncaught ReferenceError: jQuery is not defined at lavender-bulgarian-10ml/:2719:1 lavender-bulgarian-10ml/:2810 Uncaught ReferenceError: jQuery is not defined at lavender-bulgarian-10ml/:2810:1
At home page
(index):2233 Uncaught ReferenceError: jQuery is not defined at (index):2233:9 (index):2973 Uncaught ReferenceError: jQuery is not defined at (index):2973:9 (index):4145 Uncaught ReferenceError: wp is not defined at (index):4145:1 (index):4156 Uncaught ReferenceError: jQuery is not defined at (index):4156:1 (anonymous) @ (index):4156 (index):4248 Uncaught ReferenceError: jQuery is not defined at (index):4248:1 (anonymous) @ (index):4248 https://www.mydomain.in/:4303
GET wp-content/plugins/woocommerce-products-slider/assets/front/js/slick.js%20defer=defer net::ERR_ABORTED 404 (Not Found)
https://www.mydomain.in/:1 Refused to execute script from ‘wp-content/plugins/woocommerce-products-slider/assets/front/js/slick.js%20defer=defer’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled. autoptimize_145da8402f032ca50d9519cf564d2372.js:2 Uncaught ReferenceError: jQuery is not defined at autoptimize_145da8402f032ca50d9519cf564d2372.js:2:382
Is there any Idea why when I’m login it’s looks fine.
This reply was modified 6 months, 3 weeks ago by Abrogrammer.
This reply was modified 6 months, 3 weeks ago by Abrogrammer.
all of this is due to whatever is adding that defer flag the wrong way (see my explanation above), once you disable that (a plugin? a theme? a code snippet in your functions.php?) the problem will be solved ??