PHP Fatal error when importing products
-
Hi,
we were uploading a simple CSV using WooCommerce to import SKU and barcodes so they would be synced over to Zettle but everytime the import was run it would hang and not complete.
we noticed a PHP fatal error In public_html/wp-admin/error_log during the import:
[18-Jul-2022 08:06:11 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/tco/public_html/wp-content/plugins/zettle-pos-integration/modules/inpsyde-woocommerce-lifecycle-events/src/Hooks/ProductHooks.php on line 195 and defined in /home/tco/public_html/wp-content/plugins/zettle-pos-integration/modules/inpsyde-woocommerce-lifecycle-events/src/Hooks/ProductHooks.php:167
Stack trace:
#0 /home/tco/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/tco/public_html/wp-includes/class-wp-hook.php(307): Inpsyde\WcEvents\Hooks\ProductHooks->beforeSave(Object(WC_Product_Simple), Object(WC_Data_Store))
#2 /home/tco/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
#3 /home/tco/public_html/wp-includ in /home/tco/public_html/wp-content/plugins/zettle-pos-integration/modules/inpsyde-woocommerce-lifecycle-events/src/Hooks/ProductHooks.php on line 167`We disabled the PayPal Zettle POS plugin and reran the import, which worked fine.
The page I need help with: [log in to see the link]
- The topic ‘PHP Fatal error when importing products’ is closed to new replies.