Jump to content

CSV import - unspecified problem while inserting images URLs


Recommended Posts

Hello All,

Despite searching this forum and thru google I cannot find solution to my problem with CSV product file import :(

 

Problem description:

  • when I import products via CSV file without image URLs everything works fine
  • when I try to add image URLs (even one) like http://mydomain/prestashop/img/products/imageproduct.jpg, I cannot make CSV import at all, even more there is no error being displayed, just empty page while processing import file (please see attached screenshot)
  • if I try the same "inproper" CSV file but omit URL column while setting import, everything works fine again

 

Please note

 

Prestashop version is 1.5.3.1.

 

Any help highly appreciated....

post-481802-0-94494000-1415367945_thumb.jpg

Link to comment
Share on other sites

Your /controllers/admin/AdminImportController.php file is patched or different version. There is no calling of Tools::copy() in PS 1.5.3.1.

 

Indeed, my current version of this file is different from the original AdminImportController.php

 

Unfortunately when I switched to THE original file from distribution .zip, now every CSV import crashes with the same error for all imported product:

 

Notice: Undefined variable: temp in /home/bpsklep/www/prestashop/controllers/admin/AdminImportController.php on line 647

 

Warning: fopen(): Filename cannot be empty in /home/bpsklep/www/prestashop/controllers/admin/AdminImportController.php on line 647

 

Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /home/bpsklep/www/prestashop/controllers/admin/AdminImportController.php on line 648

 

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/bpsklep/www/prestashop/controllers/admin/AdminImportController.php on line 649

 

Warning: unlink(45): No such file or directory in /home/bpsklep/www/prestashop/controllers/admin/AdminImportController.php on line 650

 

When reverted back to this abnormal AdminImportController.php again, CSV work fine except URL image import...

Link to comment
Share on other sites

×
×
  • Create New...