Another error:
[17-May-2022 00:05:04 UTC] PHP Notice: Undefined property: WP_Error::$term_id in /home/wp/disk/wordpress/wp-content/plugins/woocommerce-germanized/includes/import/class-wc-gzd-product-import.php on line 339
Hi there,
the first warning is not generated by Germanized as we are not calling these methods.
I’ve patched the other one: https://github.com/vendidero/woocommerce-germanized/commit/10c0dd9028970667d82b34f85ac8af02ad379c90
Thanks for reporting.
Cheers
I think you should add a check for the $name variable because using the returned error as result might be a bad idea:
[17-May-2022 09:58:58 UTC] Name:
[17-May-2022 09:58:58 UTC] Texanomy: product_allergen
[17-May-2022 09:58:58 UTC] WP_Error Object
(
[errors] => Array
(
[empty_term_name] => Array
(
[0] => Für diesen Begriff ist ein Name erforderlich.
)
)
[error_data] => Array
(
)
[additional_data:protected] => Array
(
)
)
What do you think?
Or add a check within parse_allergenic() to check if the exploded array is empty and skip the parsing?
Hi!
Glad you fixed it. With the current version, the WC product import via a CSV file badly ended when importing variable products. A lot of times, the checkbox “Use for variations” was unchecked, which caused bad issues. Now it’s working again!
Cheers.