• Resolved benoitfouc

    (@benoitfouc)


    hello there, since update wp to 6.5 i have 2 similar fatal error on the cart page :

    Fatal error: Uncaught Error: Call to a member function get_manage_stock() on null
    in /home/trottandgo/public_html/wp-content/plugins/product-quantity-updater/public/class-tgqb-public.php on line 153
    
    Call stack:
    
    Tgqb_Public::wooqb_display_quantity_plus()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-content/plugins/woocommerce/templates/global/quantity-input.php:61
    include()
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:345
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1839
    woocommerce_quantity_input()
    wp-content/plugins/woocommerce/templates/cart/cart.php:122
    include()
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:345
    wc_get_template()
    wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-cart.php:99
    WC_Shortcode_Cart::output()
    wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:72
    WC_Shortcodes::shortcode_wrapper()
    wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:85
    WC_Shortcodes::cart()
    wp-includes/shortcodes.php:433
    do_shortcode_tag()
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-content/plugins/elementor-pro/modules/woocommerce/widgets/cart.php:2651
    ElementorPro\M\W\W\Cart::render()
    wp-content/plugins/elementor/includes/base/controls-stack.php:2321
    Elementor\Controls_Stack::render_by_mode()
    wp-content/plugins/elementor/includes/base/widget-base.php:634
    Elementor\Widget_Base::render_content()
    wp-content/plugins/elementor/includes/base/widget-base.php:775
    Elementor\Widget_Base::print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:464
    Elementor\Element_Base::print_element()
    wp-content/plugins/elementor/includes/base/element-base.php:1375
    Elementor\Element_Base::print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:464
    Elementor\Element_Base::print_element()
    wp-content/plugins/elementor/core/base/document.php:1795
    Elementor\C\B\Document::print_elements()
    wp-content/plugins/elementor/core/base/document.php:1183
    Elementor\C\B\Document::print_elements_with_wrapper()
    wp-content/plugins/elementor/includes/frontend.php:1165
    Elementor\Frontend::get_builder_content()
    wp-content/plugins/elementor-pro/modules/posts/skins/skin-content-base.php:271
    ElementorPro\M\T\W\Post_Content::render_post_content()
    wp-content/plugins/elementor-pro/modules/theme-builder/widgets/post-content.php:111
    ElementorPro\M\T\W\Post_Content::render()
    wp-content/plugins/elementor/includes/base/controls-stack.php:2321
    Elementor\Controls_Stack::render_by_mode()
    wp-content/plugins/elementor/includes/base/widget-base.php:634
    Elementor\Widget_Base::render_content()
    wp-content/plugins/elementor/includes/base/widget-base.php:775
    Elementor\Widget_Base::print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:464
    Elementor\Element_Base::print_element()
    wp-content/plugins/elementor/includes/base/element-base.php:1375
    Elementor\Element_Base::print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:464
    Elementor\Element_Base::print_element()
    wp-content/plugins/elementor/core/base/document.php:1795
    Elementor\C\B\Document::print_elements()
    wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:412
    ElementorPro\M\T\D\Theme_Document::print_elements_with_wrapper()
    wp-content/plugins/elementor/includes/frontend.php:1165
    Elementor\Frontend::get_builder_content()
    wp-content/plugins/elementor/core/base/document.php:1231
    Elementor\C\B\Document::get_content()
    wp-content/plugins/elementor/modules/library/documents/library-document.php:76
    Elementor\M\L\D\Library_Document::get_content()
    wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:158
    ElementorPro\M\T\D\Theme_Document::get_content()
    wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:173
    ElementorPro\M\T\D\Theme_Document::print_content()
    wp-content/plugins/elementor-pro/modules/theme-builder/documents/single-base.php:93
    ElementorPro\M\T\D\Single_Base::print_content()
    wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php:364
    ElementorPro\M\T\C\Locations_Manager::do_location()
    wp-content/plugins/elementor-pro/modules/theme-builder/api.php:13
    elementor_theme_do_location()
    wp-content/themes/hello-elementor/index.php:20
    include()
    wp-includes/template-loader.php:106
    require_once()
    wp-blog-header.php:19
    require()
    index.php:17
    Fatal error: Uncaught Error: Call to a member function get_manage_stock() on null
    in /home/trottandgo/public_html/wp-content/plugins/product-quantity-updater/public/class-tgqb-public.php on line 124
    
    Call stack:
    
    Tgqb_Public::wooqb_display_quantity_minus()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-content/plugins/woocommerce/templates/global/quantity-input.php:34
    include()
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:345
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1839
    woocommerce_quantity_input()
    wp-content/plugins/woocommerce/templates/cart/cart.php:122
    include()
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:345
    wc_get_template()
    wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-cart.php:99
    WC_Shortcode_Cart::output()
    wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:72
    WC_Shortcodes::shortcode_wrapper()
    wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:85
    WC_Shortcodes::cart()
    wp-includes/shortcodes.php:433
    do_shortcode_tag()
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-content/plugins/elementor-pro/modules/woocommerce/widgets/cart.php:2651
    ElementorPro\M\W\W\Cart::render()
    wp-content/plugins/elementor/includes/base/controls-stack.php:2321
    Elementor\Controls_Stack::render_by_mode()
    wp-content/plugins/elementor/includes/base/widget-base.php:634
    Elementor\Widget_Base::render_content()
    wp-content/plugins/elementor/includes/base/widget-base.php:775
    Elementor\Widget_Base::print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:464
    Elementor\Element_Base::print_element()
    wp-content/plugins/elementor/includes/base/element-base.php:1375
    Elementor\Element_Base::print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:464
    Elementor\Element_Base::print_element()
    wp-content/plugins/elementor/core/base/document.php:1795
    Elementor\C\B\Document::print_elements()
    wp-content/plugins/elementor/core/base/document.php:1183
    Elementor\C\B\Document::print_elements_with_wrapper()
    wp-content/plugins/elementor/includes/frontend.php:1165
    Elementor\Frontend::get_builder_content()
    wp-content/plugins/elementor-pro/modules/posts/skins/skin-content-base.php:271
    ElementorPro\M\T\W\Post_Content::render_post_content()
    wp-content/plugins/elementor-pro/modules/theme-builder/widgets/post-content.php:111
    ElementorPro\M\T\W\Post_Content::render()
    wp-content/plugins/elementor/includes/base/controls-stack.php:2321
    Elementor\Controls_Stack::render_by_mode()
    wp-content/plugins/elementor/includes/base/widget-base.php:634
    Elementor\Widget_Base::render_content()
    wp-content/plugins/elementor/includes/base/widget-base.php:775
    Elementor\Widget_Base::print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:464
    Elementor\Element_Base::print_element()
    wp-content/plugins/elementor/includes/base/element-base.php:1375
    Elementor\Element_Base::print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:464
    Elementor\Element_Base::print_element()
    wp-content/plugins/elementor/core/base/document.php:1795
    Elementor\C\B\Document::print_elements()
    wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:412
    ElementorPro\M\T\D\Theme_Document::print_elements_with_wrapper()
    wp-content/plugins/elementor/includes/frontend.php:1165
    Elementor\Frontend::get_builder_content()
    wp-content/plugins/elementor/core/base/document.php:1231
    Elementor\C\B\Document::get_content()
    wp-content/plugins/elementor/modules/library/documents/library-document.php:76
    Elementor\M\L\D\Library_Document::get_content()
    wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:158
    ElementorPro\M\T\D\Theme_Document::get_content()
    wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:173
    ElementorPro\M\T\D\Theme_Document::print_content()
    wp-content/plugins/elementor-pro/modules/theme-builder/documents/single-base.php:93
    ElementorPro\M\T\D\Single_Base::print_content()
    wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php:364
    ElementorPro\M\T\C\Locations_Manager::do_location()
    wp-content/plugins/elementor-pro/modules/theme-builder/api.php:13
    elementor_theme_do_location()
    wp-content/themes/hello-elementor/index.php:20
    include()
    wp-includes/template-loader.php:106
    require_once()
    wp-blog-header.php:19
    require()
    index.php:17
Viewing 1 replies (of 1 total)
  • Plugin Author Asif Aziz

    (@asifaziz01)

    @benoitfouc,

    Thanks for pointing out this issue. It has been fixed in the latest version 1.1.4. Plz upgrade the plugin to version 1.1.4.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘PHP fatal error since WP 6.5 update’ is closed to new replies.