Home › Forums › WoodMart support forum › AJAX ISSUES BORING ME!
AJAX ISSUES BORING ME!
- This topic has 3 replies, 2 voices, and was last updated 3 years, 1 month ago by Artem Temos.
-
AuthorPosts
-
August 6, 2021 at 3:04 pm #311185
frdalizadeParticipantHi,
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_foote2021-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_foote2021-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_foote2021-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_foote2021-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_foote2021-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_foote2021-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_foote2021-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_foote2021-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_foote2021-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_foote2021-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_foote2021-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_footeAugust 9, 2021 at 7:50 am #311532
Artem TemosKeymasterHello,
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 themefunction 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
October 21, 2021 at 12:17 pm #326808
frdalizadeParticipantHi,
Is this code should be removed from functions.php on new 6.1.5 update?
Thanks
October 21, 2021 at 12:23 pm #326809
Artem TemosKeymasterYes, this bug has been fixed in our last 6.1.5 update so you can remove the code.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register