SOLVED: Disabling Woocommerce builder, Woocommerce short codes broken, Bricks Products Element not working as expected

Bricks Version: 1.3
Browser: Chrome 90
OS: macOS
URL: https://speed.wohnhirsch.ch/speed

In order to troubleshoot the “new” behavoiur of the Woo shortcodes I wanted to switch off the Woo builder.

This results in a error page on the frontend : " Es gab einen kritischen Fehler auf Ihrer Website.

Erfahren Sie mehr über die Problembehandlung in WordPress."

Woo shortcodes since Bricks 1.3 : sales bubble gone, displays as 1 column only even if you set it for 4 or so.

Products element in Bricks: no button, no bubble on regular gages. on product archive template button shows but no bubble.

cheers Markus

Hello @Markus

  • Is it possible for you to inspect the debug.log to check what was the critical error?

[02-Jul-2021 11:51:22 UTC] PHP Fatal error: Uncaught Error: Class ‘woocommerce-mini-cart’ not found in …/speed/wp-content/themes/bricks/includes/frontend.php:1571
Stack trace:
#0 …/speed/wp-content/themes/bricks/includes/frontend.php(1847): Bricks\Frontend::get_element_wrapper_attributes(Array, 0, ‘header’)
#1 …/speed/wp-content/themes/bricks/includes/frontend.php(1840): Bricks\Frontend::render_element(Array, 0, ‘header’, true)
#2 …/speed/wp-content/themes/bricks/includes/frontend.php(1840): Bricks\Frontend::render_element(Array, 2, ‘header’, true)
#3 …/speed/wp-content/themes/bricks/includes/frontend.php(1840): Bricks\Frontend::render_element(Array, 1, ‘header’, true)
#4 …/speed/wp-content/themes/bricks/includes/frontend.php(1840): Bricks\Frontend::render_element(Array, 1, ‘header’, true)
#5 …/speed/wp-content/themes/bricks/includes/frontend.php(1929): Bricks\Frontend::render_ele in …/speed/wp-content/themes/bricks/includes/frontend.php on line 1571

@luistinygod Luis,

when i disable the header where the mini cart is located, i can access the page. other pages still show Error 500

(currently active setting)

Interesting: now being able to access the page i can confirm that the woo shortcodes perform again as expected without the woo builder being active.

does not solve my problem but is just a confirmation that some changes from 1.2.3 to 1.3 caused this issue.

cheers Markus

Hello Markus
Yes, that is a weird critical error. I protected that line with another check. Which PHP version do you run?

@luistinygod

it’s version 7.4.16

@luistinygod

seems the error when disabling woo editor has disappeared with 1.3.1, at least i cant reproduce it no more.

Products elemet: still same and @jornes reported the same behaviour:

and woocommerce shortcodes still display vertical even when set for multiple columns.

1 Like

Hi @Markus,
Thank you for the update.

@luistinygod

Hey!
I’d like to know when will have new updates? Maybe minor release for bug fixes?

Hello @jornes
Bricks 1.3.2 is almost ready. Stay tuned.

@luistinygod

Thank you, Luis!
By the way, please also check the form element if Google Recaptcha is not properly set by Bricks or I missed any step.

1 Like