Support » Plugin: WooCommerce Attribute Stock - Share Stock Between Products (Lite Version) » WC_Data_Store could not be converted to int

  • Resolved Kuppelofen.de

    (@kuppelofen1)


    Hi, since the last Update I receive this error: Object of class WC_Data_Store could not be converted to int

    Location: /woocommerce-attribute-stock/src/Util/Matches.php on line 300

    I have no idea where to start fixing it, please help me out.

    Pro Version 1.9.0 / Woo 7.2.2 / WP newest

    Edit: if I remove the typecast in the file on line 300, the errors go away, but all items are out of stock…

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mewz

    (@mewz)

    Hi. Thanks for reporting this issue.

    It’s a bit strange because there are no changes in the latest update that should cause a warning like this. The error message indicates that a WC_Data_Store object is being provided where a WC_Product object or product ID should be provided.

    This is highly irregular, and as you can see there’s no issue on our demo site (https://demo.mewz.dev/product/cat-t-shirt/). This indicates a theme or plugin on your site is passing an incorrect object somewhere.

    Please could you reach out to us on our premium support channel so that we can assist with debugging this issue further.

    Thread Starter Kuppelofen.de

    (@kuppelofen1)

    Thanks for the quick reply. I have sent it in via codecanyon.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.