• Resolved innarticles

    (@innarticles)


    I get the following error when I use the french translation:
    https://kerlidy.com/fr/product/mums/

    2023-12-18T18:25:37+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on string in /home/kerlnwjt/public_html/wp-content/plugins/woo-extra-product-options/includes/utils/class-thwepof-utils.php:234 Stack trace: #0 /home/kerlnwjt/public_html/wp-content/plugins/woo-extra-product-options/public/class-thwepof-public.php(291): THWEPOF_Utils::get_product_id() #1 /home/kerlnwjt/public_html/wp-includes/class-wp-hook.php(324): THWEPOF_Public->woo_before_single_product() #2 /home/kerlnwjt/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /home/kerlnwjt/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/kerlnwjt/public_html/wp-content/plugins/woolentor-addons/wl-woo-templates/single-product.php(29): do_action() #5 /home/kerlnwjt/public_html/wp-content/plugins/woolentor-addons/includes/manage_wc_template.php(300): include_once('/home/kerlnwjt/...') #6 [internal function]: Woolentor_Manage_WC_Template->{closure}() #7 /home/kerlnwjt/public_html/wp-content/plugins/elementor/modules/page-templates/module.php(207): call_user_func() #8 /home/kerlnwjt/public_html/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(19): Elementor\Modules\PageTemplates\Module->print_content() #9 /home/kerlnwjt/public_html/wp-includes/template-loader.php(106): include('/home/kerlnwjt/...') #10 /home/kerlnwjt/public_html/wp-blog-header.php(19): require_once('/home/kerlnwjt/...') #11 /home/kerlnwjt/public_html/index.php(17): require('/home/kerlnwjt/...') #12 {main} thrown in /home/kerlnwjt/public_html/wp-content/plugins/woo-extra-product-options/includes/utils/class-thwepof-utils.php on line 234
    `<br></p>

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Dina S.

    (@themehighsupport)

    Your issue needs a detailed check. Can you please raise a ticket through our website? We hope our technical team will be able to help you.

    Thank you!

    Same here, fixed modifying the function get_product_type to

    # /wp-content/plugins/woo-extra-product-options/includes/utils/class-thwepof-utils.php:241
    
    public static function get_product_type($product){
        if (null === $product) {
            return '';
        }
    
        if(self::woo_version_check()){
            return $product->get_type();
        }
    
        return $product->product_type;
    }

    I simplified the code for legibility.

    Dina S.

    (@themehighsupport)

    @ andreacomplus

    Can you please raise a ticket through our website so that we can check into it?

    Thank you!

    Dina S.

    (@themehighsupport)

    Since we haven’t heard back from you, we believe that your issue is resolved.

    We are going to mark this thread as resolved.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘CRITICAL Uncaught Error: Call to a member function get_id()’ is closed to new replies.