How to fix it
- Split the file into smaller files, keeping each variable product and its variations in the same file, and import them one after another.
- Or ask your host to raise upload_max_filesize and post_max_size.
- Or upload the file to your server's uploads folder and enter its path under "Show advanced options" on the import screen.
Once the listed rows are fixed, check the file again; the checker also looks for the other problems in WooCommerce's import code, so you do not trade one error for the next.
Questions
- What does "The uploaded file exceeds the upload_max_filesize directive in php.ini." mean in WooCommerce?
- This message comes from WordPress and PHP. Your server has an upload size limit, shown as "Maximum size" on the WooCommerce import screen. A CSV larger than that limit never reaches WooCommerce. WooCommerce's own documentation says this limit is set at the server level.
- How do I fix it?
- Split the file into smaller files, keeping each variable product and its variations in the same file, and import them one after another. Or ask your host to raise upload_max_filesize and post_max_size. Or upload the file to your server's uploads folder and enter its path under "Show advanced options" on the import screen.
Other WooCommerce import errors
- A product with this SKU already exists.
- A product with this ID already exists.
- Invalid product type.
- Variation cannot be imported: Missing parent ID or parent does not exist yet.
- Variation cannot be imported: Parent product cannot be a product variation
- Invalid catalog visibility option.
- All checks
Sources
- WooCommerce: Product CSV Importer and Exporter: https://woocommerce.com/document/product-csv-importer-exporter/
- WordPress source: wp-admin/includes/file.php: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-admin/includes/file.php
Based on WooCommerce 11.2.2's import code and documentation. Not tested on a live store.