chinchill Posted September 3, 2013 Share Posted September 3, 2013 hello, i have problem with Admin CSV importer, whenever i import any product, importer throws me warning: error copying file: link to my image i already reuploaded all files and changed img folder CHMOD to 777, but it didnt worked at all, if ANYONE have solution for this - i will be gratefull Link to comment Share on other sites More sharing options...
RogueWaveLimited Posted September 3, 2013 Share Posted September 3, 2013 You should not change the img folder permissions. You should put your images in a directory like "admin.../import" then in your import reference the file in that directory. PS import will copy the file to the proper img directory during import. Link to comment Share on other sites More sharing options...
chinchill Posted September 3, 2013 Author Share Posted September 3, 2013 well, i hoped that Prestashop supports importing from outer URL if this is the matter, it gonna be long night parsing all those images :/ Link to comment Share on other sites More sharing options...
RogueWaveLimited Posted September 3, 2013 Share Posted September 3, 2013 I meant the admin/import directory on the store. Not in your local machine. Maybe this is what you already tried? Link to comment Share on other sites More sharing options...
chinchill Posted September 4, 2013 Author Share Posted September 4, 2013 yes, i tried putting image in import path, and some other directory also, no matter what i specify inside csv, it always return me same warning (why the hell it acts like warning? its the hellish error that should burn whole PS and should be fixed ASAP :X)i tried so far: full path to image on server,../admin/import/test/1.jpg admin/import/test/1.jpgtest/1.jpg1.jpgnone of those worked I even created php script to check if fopen is indeed disabled: <?php$url = 'http://www.letsgodigital.org/images/artikelen/35/d90-test-photo.jpg';$img = 'test/test.jpg';file_put_contents($img, file_get_contents($url));?> this one worked like charm. so it have to be PS error unfortunatelly Link to comment Share on other sites More sharing options...
RogueWaveLimited Posted September 4, 2013 Share Posted September 4, 2013 Put an image in your admin dir and try an image URL like this: http://www.letsgodigital.org/<admin-dir>/import/<image-file-name> Check that you can load that URL from a browser then import just one product using that image. Link to comment Share on other sites More sharing options...
chinchill Posted September 4, 2013 Author Share Posted September 4, 2013 i just did exactly what You said ( i tried that before also ) but it didnt help, still same error : cant copy file: url the url open in webbrowser correctly, and is placed in admin/inport directory, together with csv files.there are similar issues on presta forge, peoples say that whole thing worked at 1.5.4 - maybe downgrade would be solution? Link to comment Share on other sites More sharing options...
RogueWaveLimited Posted September 4, 2013 Share Posted September 4, 2013 Looking at the code, about the only thing the image import does is resize the image. There is code there to check the size and if the resize can't be done because the image is too big it fails. Try this. Pick a small image say smaller than 1MB and try importing that as the product's image. Link to comment Share on other sites More sharing options...
chinchill Posted September 4, 2013 Author Share Posted September 4, 2013 http://www.multilazienki.pl/admin8906/import/1.jpg < this is sample image im trying to import - it has 130kB so it shouldnt matter Link to comment Share on other sites More sharing options...
RogueWaveLimited Posted September 4, 2013 Share Posted September 4, 2013 Is the error "Error copying image" or "Error copying file"? Link to comment Share on other sites More sharing options...
Dh42 Posted September 4, 2013 Share Posted September 4, 2013 I am shooting off the hip, but your host is more than likely running dso as the php interpreter. Move hosts, you are going to have all kinds of issues because of that. Modules will not install right, logs won't write. DSO does not allow a file to be created with the account being the owner is the issue. Link to comment Share on other sites More sharing options...
RogueWaveLimited Posted September 4, 2013 Share Posted September 4, 2013 Sorry, what is DSO? link please? Link to comment Share on other sites More sharing options...
Dh42 Posted September 4, 2013 Share Posted September 4, 2013 Read this, http://www.justgeek.net/difference-between-dso-and-suphp/ Link to comment Share on other sites More sharing options...
RogueWaveLimited Posted September 4, 2013 Share Posted September 4, 2013 So DSO is just mod_php which about everyone uses. Seems like if I can see the image to be imported through the url in a browser it means that the image is readable through Apache by "nobody" and we know that the img directories are 777 so the copy should work right? Link to comment Share on other sites More sharing options...
chinchill Posted September 4, 2013 Author Share Posted September 4, 2013 oh, thats sad because i paid plenty of money just two weeks ago for this hosting... if DSO blocks files from being created, wouldnt my testing script return error, or deny creating downloaded image? Link to comment Share on other sites More sharing options...
Dh42 Posted September 4, 2013 Share Posted September 4, 2013 Ask your host first if that is the handler they use. Also, if it is and you are on a vps account, you can change it more than likely in whm. I would recommend fastcgi as the handler to use if not then suPhp Link to comment Share on other sites More sharing options...
chinchill Posted September 4, 2013 Author Share Posted September 4, 2013 okay, Dh42 pointed me into right direction, and i discovered option to change php version - i changed it to 5.4 (from 5.2) and everything seems to work correctly by this point! Thank You guys, hopefully this error will be noted somewhere, so peoples would know that they cant run presta on 5.2 correctly. Link to comment Share on other sites More sharing options...
RogueWaveLimited Posted September 4, 2013 Share Posted September 4, 2013 Where did you set the option? Cpanel, Presta, ?? Link to comment Share on other sites More sharing options...
Dh42 Posted September 4, 2013 Share Posted September 4, 2013 More than likely he change it in the WHM panel, that is the only place you can change it on a cpanel host. Link to comment Share on other sites More sharing options...
chinchill Posted September 4, 2013 Author Share Posted September 4, 2013 Yes, i changed that just inside cpanel - there was option "php version change" where i could change version for every domain i have. Link to comment Share on other sites More sharing options...
bhavin Posted September 11, 2013 Share Posted September 11, 2013 Prestashops official requirement is PHP 5.2.1 Link to comment Share on other sites More sharing options...
Recommended Posts