Error Symbol in Woocommerce Block
-
Hey friends! I’m in a bit of a pickle with my website and could really use your expertise. So, I’ve got this Best Selling and On Sale Product block on my homepage, right? But here’s the quirky thing: whenever someone hits the “Add to cart” button, instead of the usual smooth process, it pops up a tick mark with a “View cart” button. It’s supposed to work like it does on this other page I have, but nope, I get this cheeky error symbol hanging out with the tick mark, and I’d love to kick it to the curb.
Also, have you noticed how tiny the “Add to cart” buttons are on these blocks? I’m looking to beef them up a bit. Any tips or tricks you could share would be super appreciated!
- This topic was modified 6 months, 1 week ago by lthuyquynh.
The page I need help with: [log in to see the link]
-
Hey there, @lthuyquynh! Thanks for contacting us. I’m happy to help you.
I checked your website and the products on sale and best sellers are not showing a add to cart button to me.
I added the block on my website to test it and it does show the button and the behavior is the same as other product pages, I don’t see any errors on my site.
Can you please share what you see on your end, including a screenshot of the error you see so we can take a look?
I recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.
Furthermore, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:
System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.Looking forward to your reply.
Have a wonderful day!
Hey there! Thanks for stopping by.
I’ve been having a tough time fixing an issue and was close to giving up, so I temporarily removed the “Add to Cart” button from my homepage. But I really want to bring it back with your help.
Here’s how it should work: when you click the “Add to Cart” button, a tick appears along with a new “View Cart” button. You can see it in action on my shop page (https://mellowyland.com/shop/).
When it was working properly, it looked like this: https://snipboard.io/bBjadK.jpg.
But on my homepage, it looks like this: https://snipboard.io/hKZkDw.jpg. There’s this small rectangle that pops up before the “View Cart” button, which seems to be an unnecessary error symbol. Plus, the text is getting smaller. I want it to look just like it does on my shop page.
Here’s my WooCommerce system report:
` WordPress Environment WordPress address (URL): https://mellowyland.com Site address (URL): https://mellowyland.com WC Version: 8.8.3 REST API Version: ? 8.8.3 Action Scheduler Version: ? 3.7.4 Log Directory Writable: ? WP Version: 6.5.3 WP Multisite: – WP Memory Limit: 2 GB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – Server Environment Server Info: LiteSpeed PHP Version: 8.1.27 PHP Post Max Size: 2 GB PHP Time Limit: 360 PHP Max Input Vars: 5000 cURL Version: 7.87.0 OpenSSL/1.1.1w SUHOSIN Installed: – MySQL Version: 10.11.8-MariaDB Max Upload Size: 2 GB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? Database WC Database Version: 8.8.3 WC Database Prefix: wp_ Total Database Size: 3.22MB Database Data Size: 1.20MB Database Index Size: 2.02MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_jetpack_sync_queue: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_litespeed_avatar: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_litespeed_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_litespeed_url_file: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_options: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_internal_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB Post Type Counts attachment: 296 custom_css: 2 customize_changeset: 16 nav_menu_item: 37 oembed_cache: 1 page: 18 post: 10 product: 12 product_variation: 43 revision: 446 rm_content_editor: 1 wp_block: 2 wp_font_family: 12 wp_global_styles: 3 wp_navigation: 1 wp_template: 1 wp_template_part: 2 Security Secure connection (HTTPS): ? Hide errors from visitors: ? Active Plugins (14) All-in-One WP Migration: by ServMask – 7.81 Blocks Animation: CSS Animations for Gutenberg Blocks: by ThemeIsle – 2.6.12 Hostinger: by Hostinger – 2.2.4 Jetpack: by Automattic – 13.4.3 Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 3.2.38 Kadence AI Starter Templates: by Kadence WP – 2.1.2 LiteSpeed Cache: by LiteSpeed Technologies – 6.2.0.1 Printful Integration for WooCommerce: by Printful – 2.2.7 Rank Math SEO with AI Best SEO Tools: by Rank Math – 1.0.219 WooCommerce.com Update Manager: by Automattic – 1.0.2 WooCommerce Legacy REST API: by WooCommerce – 1.0.4 WooCommerce PayPal Payments: by WooCommerce – 2.7.0 WooCommerce: by Automattic – 8.8.3 Yoycol: Print on demand: by Yoycol official – 1.2.5 Inactive Plugins (0) Must Use Plugins (1) Disable Auto Updates: by – Settings API Enabled: ? Force SSL: – Currency: USD ($) Currency Position: left_space Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? Enforce Approved Product Download Directories: ? HPOS feature screen enabled: ? HPOS feature enabled: ? Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore HPOS data sync enabled: – Logging Enabled: ? Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 days Level threshold: – Log directory size: 2 MB WC Pages Shop base: #2115 - /shop/ Cart: #2161 - /cart/ Checkout: #7 - /checkout/ My account: #8 - /my-account/ Terms and conditions: ? Page not set Theme Name: Kadence Version: 1.2.3 (update to version 1.2.4 is available) Author URL: https://www.kadencewp.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? Templates Overrides: – WooCommerce PayPal Payments Onboarded: ? Shop country code: VN WooCommerce currency supported: ? Advanced Card Processing available in country: – Pay Later messaging available in country: – Webhook status: – PayPal Vault enabled: – ACDC Vault enabled: – Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: – Subscriptions Mode: Disabled Admin Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks product-variation-management product-virtual-downloadable product-external-affiliate product-grouped product-linked product-pre-publish-modal remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience product-custom-fields settings async-product-editor-category-field launch-your-store Daily Cron: ? Next scheduled: 2024-05-20 10:08:13 -04:00 Options: ? Notes: 70 Onboarding: completed Action Scheduler Complete: 864 Oldest: 2024-04-19 11:08:55 +0000 Newest: 2024-05-20 03:29:04 +0000 Failed: 4 Oldest: 2024-04-03 10:12:24 +0000 Newest: 2024-05-16 00:42:32 +0000 Pending: 3 Oldest: 2024-05-20 09:30:28 +0000 Newest: 2024-06-15 00:42:32 +0000 Status report information Generated at: 2024-05-19 23:29:11 -04:00 `
And my fatal-errors-2024-05-16 log file (the only fatal error log file that I can find):
024-05-16T03:04:58+00:00 Critical Uncaught Error: Attempt to assign property “clicks” on null in /home/u640039685/domains/mellowyland.com/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-summary.php:225 CONTEXT: {“error”:{“type”:1,”file”:”\/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-content\/plugins\/seo-by-rank-math\/includes\/modules\/analytics\/class-summary.php”,”line”:225},”backtrace”:[“”,”#0 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-content\/plugins\/seo-by-rank-math\/includes\/modules\/analytics\/rest\/class-rest.php(162): RankMath\\Analytics\\Summary->get_analytics_summary()”,”#1 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api\/class-wp-rest-server.php(1230): RankMath\\Analytics\\Rest->get_dashboard()”,”#2 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api\/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()”,”#3 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api\/class-wp-rest-server.php(439): WP_REST_Server->dispatch()”,”#4 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api.php(428): WP_REST_Server->serve_request()”,”#5 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp-hook.php(324): rest_api_loaded()”,”#6 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#7 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/plugin.php(565): WP_Hook->do_action()”,”#8 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp.php(418): do_action_ref_array()”,”#9 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp.php(813): WP->parse_request()”,”#10 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/functions.php(1336): WP->main()”,”#11 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-blog-header.php(16): wp()”,”#12 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/index.php(17): require(‘\/home\/u64003968…’)”,”#13 {main}”,”thrown”]} 2024-05-16T03:05:11+00:00 Critical Uncaught Error: Attempt to assign property “total” on null in /home/u640039685/domains/mellowyland.com/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-summary.php:187 CONTEXT: {“error”:{“type”:1,”file”:”\/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-content\/plugins\/seo-by-rank-math\/includes\/modules\/analytics\/class-summary.php”,”line”:187},”backtrace”:[“”,”#0 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-content\/plugins\/seo-by-rank-math\/includes\/modules\/analytics\/rest\/class-rest.php(180): RankMath\\Analytics\\Summary->get_optimization_summary()”,”#1 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api\/class-wp-rest-server.php(1230): RankMath\\Analytics\\Rest->get_analytics_summary()”,”#2 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api\/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()”,”#3 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api\/class-wp-rest-server.php(439): WP_REST_Server->dispatch()”,”#4 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api.php(428): WP_REST_Server->serve_request()”,”#5 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp-hook.php(324): rest_api_loaded()”,”#6 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#7 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/plugin.php(565): WP_Hook->do_action()”,”#8 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp.php(418): do_action_ref_array()”,”#9 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp.php(813): WP->parse_request()”,”#10 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/functions.php(1336): WP->main()”,”#11 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-blog-header.php(16): wp()”,”#12 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/index.php(17): require(‘\/home\/u64003968…’)”,”#13 {main}”,”thrown”]} 2024-05-16T03:05:25+00:00 Critical Uncaught Error: Attempt to assign property “clicks” on null in /home/u640039685/domains/mellowyland.com/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-summary.php:225 CONTEXT: {“error”:{“type”:1,”file”:”\/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-content\/plugins\/seo-by-rank-math\/includes\/modules\/analytics\/class-summary.php”,”line”:225},”backtrace”:[“”,”#0 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-content\/plugins\/seo-by-rank-math\/includes\/modules\/analytics\/rest\/class-rest.php(162): RankMath\\Analytics\\Summary->get_analytics_summary()”,”#1 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api\/class-wp-rest-server.php(1230): RankMath\\Analytics\\Rest->get_dashboard()”,”#2 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api\/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()”,”#3 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api\/class-wp-rest-server.php(439): WP_REST_Server->dispatch()”,”#4 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/rest-api.php(428): WP_REST_Server->serve_request()”,”#5 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp-hook.php(324): rest_api_loaded()”,”#6 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#7 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/plugin.php(565): WP_Hook->do_action()”,”#8 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp.php(418): do_action_ref_array()”,”#9 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/class-wp.php(813): WP->parse_request()”,”#10 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-includes\/functions.php(1336): WP->main()”,”#11 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/wp-blog-header.php(16): wp()”,”#12 \/home\/u640039685\/domains\/mellowyland.com\/public_html\/index.php(17): require(‘\/home\/u64003968…’)”,”#13 {main}”,”thrown”]}
I’d really appreciate your help and am looking forward to fixing this soon. Thanks a bunch!- This reply was modified 6 months, 1 week ago by lthuyquynh.
Hi @lthuyquynh
But on my homepage, it looks like this: https://snipboard.io/hKZkDw.jpg. There’s this small rectangle that pops up before the “View Cart” button, which seems to be an unnecessary error symbol. Plus, the text is getting smaller. I want it to look just like it does on my shop page.
The issue you’re encountering seems specific to your theme, as this isn’t the typical style for WooCommerce product listings. I recommend clearing both your site and browser caches to see if that resolves the problem. If not, check if your theme offers an option to reset the cache. If it doesn’t, reaching out to your theme’s support team would be an excellent next step for further assistance.
And my fatal-errors-2024-05-16 log file (the only fatal error log file that I can find):
The error logs you’ve shared indicate that the Rank Math SEO plugin is trying to assign values to a null object, which is causing the error. I recommend reaching out to Rank Math’s support team. Since the error is occurring within their plugin, they may be able to provide a more specific solution.
Please note that we don’t provide help & support for 3rd-party plugins or themes as they’re outside our support scope.
I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.
Thanks for your kind suppport. I’ll try to handle this the way you suggested.
Hi @lthuyquynh,
I’m glad we were able to help! If you have a few minutes, we’d love if you could leave us a review:?https://www.ads-software.com/support/plugin/woocommerce/reviews/.
Cheers!
-OP
- The topic ‘Error Symbol in Woocommerce Block’ is closed to new replies.