Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #1345624

    Hi, below is the log, is indeed a theme problem.

    #1345648

    I 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.
    #1345686

    Looks 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()

    #1345695

    Hi,

    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,
    Yigit

    #1345780

    Hey!


    @Jacopotj
    : We cannot reproduce the same error on our end. Would you mind giving us a direct link to the product page displaying the issue? We would like to check the product settings.

    Cheers!
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.