Pages have a critical error with any version after version 25.0.2
Our client has long had WooCommerce in their website. We switched out their site theme to BeTheme in 2019. Everything was fine until the version immediately after 25.0.2, when every time you visit the shop page, or a product page, I get a critical site error.
Here's the log entry that was produced:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_id() on string in /var/www/vhosts/microvascular.com/httpdocs/wp-content/themes/betheme/functions/theme-woocommerce.php:987\nStack trace:\n#0 /var/www/vhosts/microvascular.com/httpdocs/wp-includes/class-wp-hook.php(309): mfn_template_single_add_to_cart_text()\n#1 /var/www/vhosts/microvascular.com/httpdocs/wp-includes/plugin.php(189): WP_Hook->apply_filters()\n#2 /var/www/vhosts/microvascular.com/httpdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1887): apply_filters()\n#3 /var/www/vhosts/microvascular.com/httpdocs/wp-content/plugins/enhancer-for-woocommerce-subscriptions/enhancer-for-woocommerce-subscriptions.php(291): WC_Product->single_add_to_cart_text()\n#4 /var/www/vhosts/microvascular.com/httpdocs/wp-includes/class-wp-hook.php(307): ENR_For_WC_Subscriptions->frontend_script()\n#5 /var/www/vhosts/microvascular.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()\n#6 /var/www/vhosts/...'
Comments
Hi,
Please always attach a link to your website so we can check it out. If the page is offline(localhost), then our help will be limited. You will have to contact us when the page is online. Also, please make sure that the page is not under maintenance before you provide us with the link.
Do you have the newest version of Betheme?
Did you try deactivating all plugins except WooCommerce, to check if the problem persits?
Thanks
Apologies. BeThemes is currently the latest addition, though this was part of the problem. The url is https://microvascular.com/shop
An update: By turning off "Enhancer for WooCommerce Subscriptions," I was able to get the store working again. However, our client needs features in that official, "made by WooCommerce" plugin to take care of their business needs.
So I'm not sure what to do from here - if I turn the offensive plugin back on, my client's website performance is hindered...
Please send us the WordPress dashboard and FTP access privately thru the contact form, which is on the right side at http://themeforest.net/user/muffingroup#contact and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Thanks
Sorry, but you have sent only FTP access but did not attach your WP dashboard credentials.
Please, send a second message with the login credentials.
Remember to attach a link to this forum discussion.
Thanks
We have fixed that on your website.
Please, check that.
Thanks
It looks good! What did you change, and can I update plugins/theme without undoing the fix?
We had to do some modifications in the theme files to adjust the support for that plugin.
These changes will not be lost after the update because the same fix will be included in the next update.
Thanks
I have the exact same problem happening. Do I have to roll back BEtheme or when will the patch be applied for downloading, please. Using 26.0.2
This is urgent for a launch. please
Hi @cfpspiis,
Are you using the same plugin?
The update fixing it will be released today.
Best regards
Yes, as I said, the exact same error with the same plugin. Thanks for your quick response.
@cfpspiis,
Unfortunately, the update will be delayed.
If you want us to fix that on your website, please send us a WordPress dashboard and FTP access privately thru the contact form, which is on the right side at http://themeforest.net/user/muffingroup#contact and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Thanks
We are launching the woocommerce portion of the website on the 21st March so its on local at the moment - will the update be out before that date? Then you don't have to go to all the trouble of patching?
Yes, the update will surely be available before that date.
We hope to release it today.
Best regards