WCFM + Woocommerce + WooCommerce Product Add-ons = 500 error = corrupt products!
-
Hello,
I am testing WCFM for a customer with WooCommerce Product Add-ons, but every time a vendor is adding a new field, the product becomes corrupt.
(all the used plug-ins and themes are latest versions)
As soon as a vendor tries to Edit a product and goes to: Add-ons -> Add a new field, make it a Checkbox field, also add an answer/option (leaf price empty)
Click Save!
Now you will get a 500-server error. The following is from the debug log:
[13-Jan-2021 00:56:00 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_review_count() on null in E:\**********\www\wordpress\wp-content\plugins\woocommerce\templates\single-product-reviews.php:31 Stack trace: #0 E:\**********\www\wordpress\wp-includes\comment-template.php(1554): require() #1 E:\**********\www\wordpress\wp-content\themes\Avada\page.php(33): comments_template() #2 E:\**********\www\wordpress\wp-includes\template-loader.php(106): include('E:\\inetpub\\1001...') #3 E:\**********\www\wordpress\wp-blog-header.php(19): require_once('E:\\**********...') #4 E:\**********\www\index.php(4): require('E:\\inetpub\\1001...') #5 {main} thrown in E:\**********\www\wordpress\wp-content\plugins\woocommerce\templates\single-product-reviews.php on line 31
Now it also breaks the product.. Everytime you try to open the product, you will get this 500-server error. You need to go to: WordPress -> Products -> Select the product and remove the Additional Field from there.. Then the product works again.
It also happend in the previous versions (at least WCFM 6.5.5 and 6.5.4 as far as I know).
This is not a support questions, just a question if this is KNOWN to the WCFM team?
I even tested/re-installed a test server and got the same result.WordPress 5.6
WCFM – WooCommerce Frontend Manager 6.5.6
WooCommerce 4.8.0
WooCommerce Product Add-ons 3.3.0
WooCommerce Bookings 1.15.33
WooCommerce Deposits 1.5.6
WooCommerce Product Reviews Pro 1.17.1
WooCommerce Product Vendors 2.1.45
AVADA 7.2.1 theme (latest version), I also tested on standard Twenty Twenty-One theme.
- The topic ‘WCFM + Woocommerce + WooCommerce Product Add-ons = 500 error = corrupt products!’ is closed to new replies.