This topic has 15 replies, 3 voices, and was last updated 4 years, 9 months ago ago by Rose Tyler
Hi there
This morning we noticed our website is malfunctioning: cherryred.co.uk – it is loading really weirdly and there is a critical error message which when we enable WP DEBUG says the below – it appears there is an incompatibility between the theme and woocommerce.
Fatal error: Uncaught Error: Call to undefined method WC_Product_Simple::variation_is_visible() in /home/cherryredco/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php:306 Stack trace: #0 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/packages/st-woo-swatches/public/partials/class-st-woo-shop.php(58): WC_Product_Variable->get_available_variations() #1 /home/cherryredco/public_html/wp-includes/class-wp-hook.php(288): St_Woo_Shop->loop_swatch(‘normal’) #2 /home/cherryredco/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array) #3 /home/cherryredco/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/packages/st-woo-swatches/public/partials/class-st-woo-shop.php(43): do_action(‘loop_swatch’, ‘normal’) #5 /home/cherryredco/public_html/wp-includes/class-wp-hook.php(288): St_Woo_Shop->{closure}(”) #6 /home/cherryredco/public_html/wp-includes/class-wp-hook.php(312): WP_Hook- in /home/cherryredco/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php on line 306
Looking at the logs, this error was occurring as of midnight last night, before we even tried updating any plugins and the new theme.
There is also evidence of another error:
2020-01-23T11:59:55+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/functions.php:461
Stack trace:
#0 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php(892): etheme_cart_quantity()
#1 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/templates/header/parts/cart.php(76): header_cart_callback()
#2 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/templates/header/parts/connect_block.php(94): require(‘/home/cherryred…’)
#3 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php(82): require(‘/home/cherryred…’)
#4 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php(132): header_content_callback(‘main’)
#5 /home/cherryredco/public_html/wp-cont in /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/functions.php on line 461
Please can you help?
Many thanks!
Lauren
Hello,
Please provide temporary FTP access.
Regards
ok I have added it into the secret area. Thank you!
Is there any news please? Our entire e-commerce business has been down all day so it is really urgent we sort this out before the weekend.
Hello,
Actually we are working on your site right now. We found that the issue is caused by the variation swatches and could be related to the import of your products. Probably during import some field like visibility was missed but swatches check that param and give a fatal error because can’t find it. We are looking for a way to avoid this error.
Regrads
Hello,
We found that variable products on your site give the same error even when the default theme is activated https://gyazo.com/4d558044c0bec3d3f24660feb7e1d82d You can enable and check. Variable swatches files just duplicated the default error.
Probably because of import. Once we re-saved the product error disappears. So, try to re-save products that give you an error (I suppose variable products).
Regards
Hi Olga
Will check variable product thing. However there are still other code errors on the site which are xstore framework related, such as this one:
Warning: fopen(https://8theme.b-cdn.net/home/cherryredco/public_html/wp-content/themes/xstore/framework/cache/cache-twitter-widget.json): failed to open stream: No such file or directory in /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/traits/base.php on line 22
Warning: Illegal string offset ‘message’ in /home/cherryredco/public_html/wp-content/themes/xstore/framework/theme-functions.php on line 1796
Warning: Illegal string offset ‘message’ in /home/cherryredco/public_html/wp-content/themes/xstore/framework/theme-functions.php on line 1796
This you can see in the footer area above the twitter feed?
Hello,
Check now.
Regards
Hi Olga
That seemed to solve that small issue, however with the latest update now we are getting more fatal errors with regards the et-core plugin, which seems to be having an effect on other plugins, namely our Mailchimp for Woocommerce plugin.
The developers of the Mailchimp for Woocommerce plugin have asked me to send the below errors to you to investigate what’s happening so they can work out why it is killing off the Mailchimp plugin, which at present won’t even activate:
2020-02-05T12:55:36+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/functions.php:461
Stack trace:
#0 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php(892): etheme_cart_quantity()
#1 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/templates/header/parts/cart.php(76): header_cart_callback()
#2 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/templates/header/parts/connect_block.php(94): require(‘/home/cherryred…’)
#3 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php(82): require(‘/home/cherryred…’)
#4 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php(132): header_content_callback(‘main’)
#5 /home/cherryredco/public_html/wp-cont in /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/functions.php on line 461
Could you let me know?
Thanks!
Lauren
Hello,
Tell me please when did you get that fatal error? Describe your actions step by step to allow us to reproduce the issue.
Because we can’t activate MailChimp for WooCommerce even if XStore core plugin is disabled.
Regards
Hi Olga
These fatal errors are in the error log on the site which you can see if you go to Woocommerce > Status > Logs. There are loads of them. I don’t think it is anything I am doing particularly!
Have you updated the woocommerce order export plugin? As now all our order export chron jobs have stopped and our orders are not going through to our fulfilment people. It said it has just been updated and it wasn’t me….
Hello,
1) Point is that we call to default WooCommerce function that returns the number of products at mini cart. If we add products to cart or remove them we don’t get mentioned error again and again in the error log. You are using a number of third-party plugins in addition to WooCommerce and it could be some compatibility issue that appears not always but with come conditions. So, we need to know your actions to find out when exactly this error appears and how to solve it. Maybe you add some special product or something?
2) We did not update woocommerce order export plugin. All we did is disable and enable plugins while trying to get the mentioned error but the error log was empty till your new reply.
Regards
Hi Olga
Sorry its taken a while to look into this. It is impossible for us to know what action is causing these errors since at any given moment there are hundreds of customers all browsing and adding things to cart.
That said – we just noticed another error code on the site which appears on every product page on the TRACKLIST tab:
Notice: id was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/xstore/woocommerce/single-product.php’), wc_get_template_part, load_template, require(‘/themes/xstore/woocommerce/content-single-product.php’), do_action(‘woocommerce_after_single_product_summary’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_output_product_data_tabs, wc_get_template, include(‘/themes/xstore/woocommerce/single-product/tabs/tabs.php’), wpb_new_product_tab_content, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /home/cherryredco/public_html/wp-includes/functions.php on line 4986
This looks like a discrepancy between the theme product template and WC?
Many thanks
Lauren
Hello,
You need to temporarily disable all third-party plugins (one by one). Likely one of them causes this incompatibility problem.
Here is a list of plugins that come bundled with our theme – https://www.8theme.com/documentation/xstore/plugins/included-plugins/
If your site is live, it would be better to create a staging/dev site (a full copy of the existing site) and do all tests there.
Regards
You must be logged in to reply to this topic.Log in/Sign up