Conflict between Complianz and WooCommerce – Console Errors and Cart Issue
-
Hi,
I’m experiencing an issue with WooCommerce in combination with the Complianz plugin. After removing all products from the cart and adding new ones, the cart page stops working properly, and the following error appears in the console:
react-dom.min.js?ver=18.3.1:10 ChunkLoadError: Loading chunk 4857 failed.
(error: https://dev.waterblock.eu/koszyk/assets/client/blocks/cart-blocks/empty-cart-frontend.js?ver=b4a17d65f3face981193)
at Object.j (cart-frontend.js?ver=f10b598c943a06f25d98:1:21812)
at cart-frontend.js?ver=f10b598c943a06f25d98:1:18770
at Array.reduce (<anonymous>)
at Function.e (cart-frontend.js?ver=f10b598c943a06f25d98:1:18748)
at cart-frontend.js?ver=f10b598c943a06f25d98:1:10301
at c (react.min.js?ver=18.3.1:10:2160)
at Qs (react-dom.min.js?ver=18.3.1:10:121008)
at wl (react-dom.min.js?ver=18.3.1:10:88637)
at bl (react-dom.min.js?ver=18.3.1:10:88565)
at yl (react-dom.min.js?ver=18.3.1:10:88428)A similar error occurs for the
filled-cart-frontend.js
file. Interestingly, the problem does not occur when adding a product to the cart for the first time – everything works fine. However, after removing all items and adding new ones, the page starts loading scripts with incorrect URLs, such as:https://dev.waterblock.eu/koszyk/assets/client/blocks/cart-blocks/filled-cart-frontend.js
Whereas the correct URL should be:
https://dev.waterblock.eu/wp-content/plugins/woocommerce/assets/client/blocks/cart-blocks/filled-cart-frontend.js
After extensive testing, I discovered that disabling Complianz plugin or enabling Safe Mode in Complainz resolves the issue, but I couldn’t find any settings in your plugin that might directly cause this conflict. It seems that Complianz is somehow modifying the URLs of WooCommerce scripts, but only under specific conditions.
Has anyone encountered a similar issue? Is there a way to add an exception for these scripts in Complianz or correct their loading? Any help would be greatly appreciated.
Thanks for any suggestions!
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.