marekp Posted November 7, 2014 Share Posted November 7, 2014 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 I do have all images already uploaded manually to a server via ftp to a subfolder of /img/products/, folder is 777 files are 644 all images are visible by URLs http://mydomain/prestashop/img/products/imageproduct.jpg if I edit example product from Presta admin and manually point to an image by PRODUCT > EDIT > PHOTO > IMPORT FROM FILE > and I point image from URL http://mydomain/prestashop/img/products/imageproduct.jpg such product is properly updated with image from a server Prestashop version is 1.5.3.1. Any help highly appreciated.... Link to comment Share on other sites More sharing options...
tuk66 Posted November 7, 2014 Share Posted November 7, 2014 Enable debug mode define('_PS_MODE_DEV_', true); to see the error instead of blank page. Link to comment Share on other sites More sharing options...
marekp Posted November 7, 2014 Author Share Posted November 7, 2014 (edited) OK, debug is ON, now I get this error: Fatal error: Call to undefined method Tools::copy() in /home/bpsklep/www/prestashop/controllers/admin/AdminImportController.php on line 822 Edited November 7, 2014 by marekp (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted November 7, 2014 Share Posted November 7, 2014 Your /controllers/admin/AdminImportController.php file is patched or different version. There is no calling of Tools::copy() in PS 1.5.3.1. Link to comment Share on other sites More sharing options...
marekp Posted November 7, 2014 Author Share Posted November 7, 2014 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 More sharing options...
Recommended Posts