• 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.

    • This topic was modified 3 years, 10 months ago by roeller.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WC Lovers

    (@wclovers)

    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

    – As I see this error is coming from WooCommerce single product page template, certainly WCFM has no control over this.

    Create a product from WooCommerce default add product page and check whether are you getting same kind of error or not?

    Thread Starter roeller

    (@roeller)

    Create a product from WooCommerce default add product page and check whether are you getting same kind of error or not?

    When editing the product in Woocommerce itself, there is no such an error. That’s also the workarround, when the product is ‘corrupt’ by WCFM, you can go to Woocommerce itself and removed the additional field. Then you can see it again in WCFM. So there is some kind of parsing not going well in WCFM it seems…

    Thread Starter roeller

    (@roeller)

    Do you have any update on this? Do you have the ‘WooCommerce Product Add-ons’ plugin there? So you can reproduce / check this problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WCFM + Woocommerce + WooCommerce Product Add-ons = 500 error = corrupt products!’ is closed to new replies.