WPIntell

Source evidence

Minified React error #60 if cart is empty or cleared

Tracking and Consent Manager – WP Full Picture · support · 2024-09-03T12:25:00+00:00

mixedsentiment
mediumseverity
0.85relevance
8replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 34 rows with source links

11.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
DCLVBS resolved
Hi there, I am getting the following error code if woocommerce cart is empty or cleared. I am using WC Blocks for Cart Page (OceanWP MyLibrary – Shortcode). Unexpected error in: woocommerce/empty-cart-block Error: Minified React error #60; visit https://reactjs.org/docs/error-decoder.html?invariant=60 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. If found out that the issue is related to the WP FullPicture Plugin. Could you pls fix this? I am using latest version of your Plugin. Many thanks in advance for your efforts! Br, Alex The page I need help with: [ log in to see the link] Hi Alex Thank you for the bug report. I will investigate it and get back to you as soon as I find out what is going on. Have a nice day! I installed OceanWP but I cannot find this block. Is it available in the free version of the theme? One more thing. We had issues with OceanWP before. The theme modifies WordPress’s theme customzier and makes the controls for designing the consent banner unavailable. Unfortunately, I cannot do anything about. It took me about 30 hours to re-make customizer to work with OceanWPs custom solution but nothing worked. If the cart block is another Ocean’s custom solution, then I won’t be able to help. WP Full Picture is made to work with solutions that do not change how WP or WooCommerce work. Hi @chrisplaneta thank you for your quick response! No I am using the standard WordPress/WooCommerce Cart Block. I’ve just created a template within OceanWP Library and then integrated it with a shortcode and Elementor onto the page. So in free version. I also found out that the issue is related to the “WooCommerce Tracking”-Extension. The issue occurs only if this extension is activated. I am looking forward to hearing from you soon. Many thanks in advance for your efforts! Br, Alex Hi Alex I just wanted to let you know that I have diagnosed the problem, I have found the reason why it occurs, and I have a temporary solution (but not the best one). What causes the problem The problem is caused by inconsistent behaviour of WooCommerce. The “newest products” block that is a part of the “empty cart” section behaves differently than when it is used on other pages. Unfortunately, at the moment I see no way to fix it without rebuilding how WP FP tracks products in 5 different blocks (because they use the same function as the unfortunate one in the cart). However I don’t want to do this because: Doing this would take about a week of work. The method I would need to use is less accurate and can cause other issues What to do to fix it (at the moment) To fix the problem, you will have to remove the “newest products” block from the cart block, like I show below. After you do this, you can re-add the same block under the cart block and it will work just fine. Unfortunately, it will not disappear when the cart is full. It looks like adding images doesn’t work in thsi editor. Here’s the link to the image https://www.dropbox.com/scl/fi/l3okn0eniwi3hyni4f25u/cart-block-what-to-remove.png?rlkey=uehzkg99a6luu1t9tcf8qnhp8&dl=0 Hi @chrisplaneta thank you so much for your quick response and help! I really appreciate your efforts! I’ve done the steps you wrote and I want to let you know that it works! I am good with the fact that the “newest products”-block won’t disappear if the cart is full. You helped a lot! Stay safe and healthy! Br Alex You too! I’m glad I could help. Have a great day Alex!

Comments

8 shown
Krzysztof Planeta 2024-09-03T14:22:00+00:00

Hi Alex Thank you for the bug report. I will investigate it and get back to you as soon as I find out what is going on. Have a nice day!

Krzysztof Planeta 2024-09-03T14:30:00+00:00

I installed OceanWP but I cannot find this block. Is it available in the free version of the theme?

Krzysztof Planeta 2024-09-03T14:34:00+00:00

One more thing. We had issues with OceanWP before. The theme modifies WordPress’s theme customzier and makes the controls for designing the consent banner unavailable. Unfortunately, I cannot do anything about. It took me about 30 hours to re-make customizer to work with OceanWPs custom solution but nothing worked. If the cart block is another Ocean’s custom solution, then I won’t be able to help. WP Full Picture is made to work with solutions that do not change how WP or WooCommerce work.

DCLVBS 2024-09-03T14:46:00+00:00

Hi @chrisplaneta thank you for your quick response! No I am using the standard WordPress/WooCommerce Cart Block. I’ve just created a template within OceanWP Library and then integrated it with a shortcode and Elementor onto the page. So in free version. I also found out that the issue is related to the “WooCommerce Tracking”-Extension. The issue occurs only if this extension is activated. I am looking forward to hearing from you soon. Many thanks in advance for your efforts! Br, Alex

Krzysztof Planeta 2024-09-04T15:41:00+00:00

Hi Alex I just wanted to let you know that I have diagnosed the problem, I have found the reason why it occurs, and I have a temporary solution (but not the best one). What causes the problem The problem is caused by inconsistent behaviour of WooCommerce. The “newest products” block that is a part of the “empty cart” section behaves differently than when it is used on other pages. Unfortunately, at the moment I see no way to fix it without rebuilding how WP FP tracks products in 5 different blocks (because they use the same function as the unfortunate one in the cart). However I don’t want to do this because: Doing this would take about a week of work. The method I would need to use is less accurate and can cause other issues What to do to fix it (at the moment) To fix the problem, you will have to remove the “newest products” block from the cart block, like I show below. After you do this, you can re-add the same block under the cart block and it will work just fine. Unfortunately, it will not disappear when the cart is full.

Krzysztof Planeta 2024-09-04T15:45:00+00:00

It looks like adding images doesn’t work in thsi editor. Here’s the link to the image https://www.dropbox.com/scl/fi/l3okn0eniwi3hyni4f25u/cart-block-what-to-remove.png?rlkey=uehzkg99a6luu1t9tcf8qnhp8&dl=0

DCLVBS 2024-09-05T11:49:00+00:00

Hi @chrisplaneta thank you so much for your quick response and help! I really appreciate your efforts! I’ve done the steps you wrote and I want to let you know that it works! I am good with the fact that the “newest products”-block won’t disappear if the cart is full. You helped a lot! Stay safe and healthy! Br Alex

Krzysztof Planeta 2024-09-05T11:55:00+00:00

You too! I’m glad I could help. Have a great day Alex!