• Resolved martmarie1

    (@martmarie1)


    Good day,

    We get the following error on product pages at multiple places:

    Warning: Undefined property: WC_Product::$product_type in /var/www/vhosts/irobot.staging-gla-united.com/httpdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php on line 151

    We don’t know the origin of this error or if this is an important error to fix? We didn’t alter any of the code of this file that the error is referring too. The product pages are super slow in loading and if we update woocommerce the loading speed is even worse and it doesn’t resolve the error code.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @martmarie1

    I understand that you are encountering an error. Can you walk me through the steps on where you get this error? Is this from functions.php? Kindly show us some screenshots, too, if possible. You may use https://snipboard.io when sharing screenshots.

    On the other hand, this error message usually indicates that the system is trying to access a property ‘$product_type’ of the ‘WC_Product’ class that is not defined. This could be caused by a number of reasons, such as a theme or plugin conflict, or it could be a bug in the WooCommerce core files.

    I’d recommend running a full conflict test to identify the problem. Here are the steps:

    1. Temporarily switch your theme to Storefront. If the issue is gone, it indicates that there is a conflict with your current theme.
    2. If it’s still having the issue, disable all plugins except for WooCommerce.
    3. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing the conflict. You can find a more detailed explanation on how to do a conflict test here.

    If you’re not comfortable doing all of this on the live version of your site, you can create a staging environment using WP-STAGING.

    Please also share with us the following:

    • System Status Report: navigate to WooCommerceStatus. Select Get system report and then Copy for support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerceStatusLogs.

    I hope it helps! Looking forward to how it goes.

    Thread Starter martmarie1

    (@martmarie1)

    Hi Darla,

    Thank you for getting back to me. Realised that this is a plugin conflict with Divi BodyCommerce. I have contacted their support team for assistance in resolving the issue.

    Hi @martmarie1

    Thank you for updating us! It’s great that you have identified the issue. This is a common occurrence in the WordPress ecosystem as different plugins may conflict due to overlapping functionalities, coding styles, or other technical reasons.

    As you’ve already reached out to Divi BodyCommerce’s support team, that’s a great step. They should be able to provide you with insights from their end.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined property: WC_Product’ is closed to new replies.