5ummer5 Posted January 31, 2009 Share Posted January 31, 2009 Hi everyone,Im having a bit of trouble with my shop. I have recently moved it over to another server and I have just tried to add more products but it wont let me add images.I can add the product name, price, description just fine but not it wont let me add images. When I click "save image" i keep the prestashop menus across the top of the page while it tires to load but the rest of the pages dissapears and it says "done" in the browsers load bar in the bottom left.I go back and it has added the title for the image to the list but hasnt actully uploaded the image. All the permissions at set right and im confused as to why it isnt working.Do anyone know what this could be? Thanks in advance for the help.5ummer5 Link to comment Share on other sites More sharing options...
Daniel Medo Posted January 31, 2009 Share Posted January 31, 2009 hi, check this php directives in phpinfo(); on your server: file_uploads must be On upload_max_filesize at least 32M upload_tmp_dir must be filled up with path, not empty (no value) if you dont know what is phpinfo(); just create new .php file, fill it up with this code <?php phpinfo(); ?> upload it to the server and execute it...check the values, and if any problems occurs, write to the admin of your server... Link to comment Share on other sites More sharing options...
5ummer5 Posted January 31, 2009 Author Share Posted January 31, 2009 Thank you very much for your reply! the upload_tmp_dir has "no value" at the moment. So im guessing i point that to the tmp folder in the img folder on my server?Thanks again for the help! Link to comment Share on other sites More sharing options...
Daniel Medo Posted January 31, 2009 Share Posted January 31, 2009 just write to your server admin, he will create the folder on the server and will add that path to that php directive. Link to comment Share on other sites More sharing options...
5ummer5 Posted February 1, 2009 Author Share Posted February 1, 2009 ive compared the old and new server php configuration and found these belowOLDPHP v5.2.6GD support "enabled"upload_max_filesize "20M"upload_tmp_dir "no value"NEWPHP v5.1.6GD support "no options for this at all, its not in the list"upload_max_filesize "2M"upload_tmp_dir "no value"Now on the old server this was working perfectly even with "no value" in the upload_tmp_dir. On the new server GD support isnt even listed anywhere so now im guessing this is the issue! I will have a look and let u know how I get on! Link to comment Share on other sites More sharing options...
Daniel Medo Posted February 1, 2009 Share Posted February 1, 2009 it may be GD library too, because prestashop is automatically resizing images after upload.upload_max_filesize on 2M is ok to me, but you can upload only files with maximum size of 2MB for each file. Link to comment Share on other sites More sharing options...
5ummer5 Posted February 2, 2009 Author Share Posted February 2, 2009 I have now finished installing the GD library and its working again! YEAY! Thank goodness for that! I have left the upload_max_filesize as "2M" which has been fine so far, and also left the upload_tmp_dir as "no value" and its working.Seems the problem was GD library wasnt installed. The phpinfo did the trick and allowed me to find out the cause of the problem.Thanks for your help! :-) Link to comment Share on other sites More sharing options...
Gion Uein Posted February 20, 2009 Share Posted February 20, 2009 I am on a shared server, and I need to get the images not compressed, the same as the customer uploads them (because are mainly professional, big-sized photo elaborations)... I don't need the recompression that prestashop does automatically. I also set the file size limit to 15 mb that are ok...What can I do? I need to deactivate, i didn't find how... THank you,Gion Uein Link to comment Share on other sites More sharing options...
Recommended Posts