Timeout or file exceeds max size while importing CSV

tim
Founder
Da Sweden
Membro dal mag 2013
tim

If you are having trouble uploading a huge CSV file, let's say 40,000 products you might need to make a few adjustments to the web server.

In admin/.htaccess add the following lines:


RewriteRule ^ - [E=noconntimeout:1]

# Allow files larger than 20 Megabyte to be parsed by PHP
php_value upload_max_filesize 256M
php_value post_max_size 256M```

Edit admin/catalog.app/csv.inc.php at the top of the page, right after <?php, add:

```// Raise PHP timeout to 900 seconds instead of 30
set_time_limit(900);```
LiteCart Fan
Da Italy
Membro dal feb 2020

spectacular, it works perfectly

Questo thread è stato chiuso per lunga inattività. Non è possibile postare su di esso.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.