newby2015 on "[Plugin: WooCommerce] Warning. Illegal string offset 'is-taxonomy'"

ساخت وبلاگ

Hi,
after updating WordPress I get a Waing on every product page: Illegal string offset 'is_taxonomy' in /www/htdocs/example.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php on line 1384 Waing: Illegal string offset 'name' in /www/htdocs/example.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php on line 1385

How can I fix this Waing?

https://wordpress.org/plugins/woocommerce/

Looks like you have a product with invalid data:

https://github.com/woothemes/woocommerce/blob/master/includes/abstracts/abstract-wc-product.php#L1384

Saving the product would resolve. Do you know if these products were imported, or have you used a bulk tool to edit attributes?

newby2015
Member
Posted 48 minutes ago #

Thank you very much for your quick reply. Which data could be invalid?
When I go to the product information at the backend there is:
Waing: array_keys() expects parameter 1 to be array, string given in /www/htdocs/example.com/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php on line 437

and

Waing: Invalid argument supplied for foreach() in /www/htdocs/example.com/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php on line 597

Attributes are stored within the product as an array, and the data you have is missing important parts. Save that product and the errors should disappear?

newby2015
Member
Posted 34 minutes ago #

Perfect, thank you. But now all the attributes of all my products are gone. Is there a way to import those via CSV (cf__product_attributes)?

What are you importing with?

newby2015
Member
Posted 9 minutes ago #

With:
WP CSV
Version 1.8.0.0 | CPK Web Solutions

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 308 تاريخ : يکشنبه 30 خرداد 1395 ساعت: 3:52