Home Forums WoodMart support forum AJAX ISSUES BORING ME!

AJAX ISSUES BORING ME!

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #311185

    frdalizade
    Participant

    Hi,

    I already disabled all plugins. Theme AJAX ERRORS BORING ME. PHP 7.4.

    2021-08-06T14:33:20+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:33:25+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:33:25+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:33:26+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:33:29+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:33:29+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:33:30+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:33:30+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:33:30+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:33:31+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:33:36+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    2021-08-06T14:34:13+00:00 CRITICAL /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php dosyasında 1176 numaralı satırda Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php:1176
    Stack trace:
    #0 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(265): woodmart_cart_count()
    #1 /home/sites/15a/7/7772da0b94/public_html/wp-content/themes/woodmart/inc/modules/sticky-toolbar.php(150): woodmart_sticky_toolbar_cart_template()
    #2 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(303): woodmart_sticky_toolbar_template(”)
    #3 /home/sites/15a/7/7772da0b94/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #4 /home/sites/15a/7/7772da0b94/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #5 /home/sites/15a/7/7772da0b94/public_html/wp-includes/general-template.php(3031): do_action(‘wp_footer’)
    #6 /home/sites/15a/7/7772da0b94/public_html/wp-includes/blocks/legacy-widget.php(123): wp_foote

    #311532

    Artem Temos
    Keymaster

    Hello,

    This error will be fixed in our next theme update. You can fix it now by adding the following code to the functions.php file in the child theme

    function woodmart_cart_count() {
    		if ( ! is_object( WC() ) || ! property_exists( WC(), 'cart' ) ) {
    			return;
    		}
    		$count = WC()->cart->get_cart_contents_count();
    		?>
    			<span class="wd-cart-number<?php echo woodmart_get_old_classes( ' woodmart-cart-number' ); ?>"><?php echo esc_html( $count ); ?> <span><?php echo esc_html( _n( 'item', 'items', $count, 'woodmart' ) ); ?></span></span>
    		<?php
    	}

    Kind Regards

    #326808

    frdalizade
    Participant

    Hi,

    Is this code should be removed from functions.php on new 6.1.5 update?

    Thanks

    #326809

    Artem Temos
    Keymaster

    Yes, this bug has been fixed in our last 6.1.5 update so you can remove the code.

Viewing 4 posts - 1 through 4 (of 4 total)