PHP Fatal error when renaming some products
-
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
- The topic ‘PHP Fatal error when renaming some products’ is closed to new replies.