-
AuthorPosts
-
March 23, 2022 at 7:45 am #1345622
Hi, might be not a coincidence, but after I updated theme, all woocommerce product stopped working, gives error on each product page. Kindly see this asap
March 23, 2022 at 8:29 am #1345624Hi, below is the log, is indeed a theme problem.
March 23, 2022 at 12:22 pm #1345648I can confirm that WooCommerce products are failing to display on a site updated to 4.9.1-dev-1 this morning for me too.
I’ve rolled back to 4.9 and all is displaying as expected.Log file contains recurring fatal error:
2022-03-23T09:50:42+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on string in /var/www/web/wp-content/themes/enfold/config-woocommerce/config.php:117
Stack trace:
#0 /var/www/web/wp-includes/class-wp-hook.php(307): avia_woocommerce_add_body_classes(Array, Array)
#1 /var/www/web/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
#2 /var/www/web/wp-includes/post-template.php(836): apply_filters(‘body_class’, Array, Array)
#3 /var/www/web/wp-includes/post-template.php(595): get_body_class(Array)
#4 /var/www/web/wp-content/themes/enfold/header.php(208): body_class(‘stretched rtl_c…’)
#5 /var/www/web/wp-includes/template.php(770): require_once(‘/var/www/web/wp…’)
#6 /var/www/web/wp-includes/template.php(716): load_template(‘/var/www/web/wp…’, true, Array)
#7 /var/www/web/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
#8 /var/www/web/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header(‘shop’)
#9 /var/www/web/wp-includes/template-loader.php(106): includ in /var/www/web/wp-content/themes/enfold/config-woocommerce/config.php on line 117- This reply was modified 2 years, 8 months ago by Steve.
March 23, 2022 at 3:03 pm #1345686Looks like the fix is on its way in version 4.9.2
From https://kriesi.at/support/topic/enfold-upcoming-fixes/
Current fixes for upcoming version 4.9.2 are as following ( last update 2022-03-23 )
fixed: WooCommerce single product page: Uncaught Error: Call to a member function get_id()March 23, 2022 at 3:18 pm #1345695Hi,
Sorry for the inconvenience!
We are going to release Enfold 4.9.2 in a few hours which will include the fix.
If you would like to apply the fix in 4.9.1, please go to Appearance > Editor and replace the content of enfold\config-woocommerce\config.php file with – https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_9_1/WooCommerce/config.php
I wanted to update the file on your website however Editor is missing under Appearance tab so I could not.
Regards,
YigitMarch 24, 2022 at 2:26 am #1345780 -
AuthorPosts
- You must be logged in to reply to this topic.