Hi @curiousforge
I understand the CSV uploader is getting stuck midway and is not progressing any further.
I’m assuming you are using the built-in product CSV Importer Exporter. If you are using a plugin for the purpose, then please let us know.
So that we can try uploading from our end, could you please share the CSV file? (you can use Google Drive/Drobox or any online file-sharing service, and share the link here)
Also, could you please navigate to WooCommerce > Status > Logs and from the dropdown on the right side, please see if there are any logs starting with the words fatal-error? Let us know what you find.
Hi Margaret,
I’m not using any plugins for CSV uploading. Additionally, I’ve tried importing the CSV that is exported directly from WooCommerce as a test, and I had the same result, so I assume the CSV file itself is not the issue.
The log does show a fatal error, and it is timestamped as exactly when I tried importing the CSV, so hopefully this is the issue. The fatal error reads:
2022-09-27T20:01:06+00:00 CRITICAL Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore::get_attribute_taxonomies() must be an instance of WC_Product, bool given, called in /home/alkqflmy/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 454 and defined in /home/alkqflmy/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:592
Stack trace:
#0 /home/alkqflmy/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php(454): Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore->get_attribute_taxonomies(false)
#1 /home/alkqflmy/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php(359): Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore->create_data_for_variation(Object(WC_Product_Variation))
#2 /home/alkqflmy/public_html/staging/ in /home/alkqflmy/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 592
Let me know if this error gives any insight and if there’s a solution, thanks.
Hi @curiousforge,
Thanks for the error logs.
Let’s try to run the CSV import after disabling all plugins except WooCommerce. Does it work?
I’d also suggest installing a plugin called Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without affecting your current site visitors.
If the issue recurs could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
Cheers.