Timeout or file exceeds max size while importing CSV

tim
Founder
Depuis Sweden
Membre depuis mai 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
Depuis Italy
Membre depuis févr. 2020

spectacular, it works perfectly

Ce fil de discussion a été fermé en raison d'une longue inactivité. Il n'est pas possible de publier dessus.
Ce site n'utilise aucun cookie ni aucune technologie de suivi tierce. Nous pensons pouvoir faire mieux que les autres et nous nous soucions vraiment de votre vie privée.