• Resolved nickstulane

    (@nickstulane)


    On some of our products we get the following error if we try to rename them and we have to disable the zettle plugin rename and then re-enable. we also have the issue when importing new products and we have to have the plugin disabled which then causes an issue as the products are not synced to Zettle unless each product is set to draft and then published again.

    this is the error when renaming some products

    [13-Nov-2023 09:31:27 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Inpsyde\WcEvents\Hooks\ProductHooks::beforeSave() must be an instance of WC_Product, bool given, called in /home/mysite/public_html/wp-content/plugins/zettle-pos-integration/modules/inpsyde-woocommerce-lifecycle-events/src/Hooks/ProductHooks.php on line 195 and defined in /home/mysite/public_html/wp-content/plugins/zettle-pos-integration/modules/inpsyde-woocommerce-lifecycle-events/src/Hooks/ProductHooks.php:167 Stack trace: #0 /home/mysite/public_html/wp-content/plugins/zettle-pos-integration/modules/inpsyde-woocommerce-lifecycle-events/src/Hooks/ProductHooks.php(195): Inpsyde\WcEvents\Hooks\ProductHooks->beforeSave(false) #1 /home/mysite/public_html/wp-content/plugins/zettle-pos-integration/modules/inpsyde-woocommerce-lifecycle-events/src/Hooks/ProductHooks.php(372): Inpsyde\WcEvents\Hooks\ProductHooks->beforeSave(Object(WC_Product_Simple)) #2 /home/mysite/public_html/wp-includes/class-wp-hook.php(310): Inpsyde\WcEvents\Ho in /home/mysite/public_html/wp-content/plugins/zettle-pos-integration/modules/inpsyde-woocommerce-lifecycle-events/src/Hooks/ProductHooks.php on line 167

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @nickstulane

    Thank you for reaching out to us, we are here to help.

    I have reviewed the 2 situation you reported and found the following:

    • The situation where you import products from a CSV document, where the product does not automatically gets exported to the Zettle library, is not a bug, but a known behavior. The export of products is done on initial sync (onboarding), pressing the “Update” button on the product or a change of status. This last option can be done in bulk and will also push the product to sync from the WooCommerce to the Zettle library (this can be used to correct the products in bulk after import). This is a known situation and there are no plans to correct this soon; there is a feature request open to add a button to force this sync without changing the status, as is needed now.
    • The renaming of a product did not cause any fatal error on my testing environment, so I would expect that this might be caused by a plugin conflict. Are you using any other plugin to alter the product library? You may want to perform a full conflict test to rule out eventual issues with the theme or a different plugin. We recommend temporarily activating the default theme Storefront and disabling all other plugins except for?WooCommerce and?PayPal Payments to see if the behavior persists. Here’s a guide that explains the steps in more detail: How to test for conflicts.

    Please tell me if this answers your questions and if you find out any cause for the 2nd problem with my instructions.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    Since we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.

    Kind regards,
    Joost

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error when renaming some products’ is closed to new replies.