• Resolved nickstulane

    (@nickstulane)


    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]

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

    (@joostvandevijver)

    Hello,

    thank you for reaching out to us, we are here to help.
    This is a situation we have not seen before, on my own testing environment I also do the import via CSV files and have barcodes included there without running into this file. This is why we would like to take a look at the full logs and system report to see if there might be anything else that could cause this issue. You can copy these log files from here:
    – WooCommerce > Status > Get system report > Copy for support
    – WooCommerce > Status > Logs > select “zettle-pos-integration-[…]” in the dropdown and click on view.

    If you don’t feel comfortable sharing those details on a public forum, please open a ticket with our service desk. You can find the instruction for this here: https://zettle.inpsyde.com/docs/request-support/
    (please add the URL of this thread in the ticket as well)

    Pending your response.

    Kind regards,
    Joost

    Thread Starter nickstulane

    (@nickstulane)

    support ticket sent

    Plugin Support Syde Joost

    (@joostvandevijver)

    pending conflict testing, will mark this thread as resolved and update outcome/fix when it becomes available.

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