Jump to content

[SOLVED] Not uploading images


Recommended Posts

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

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

ive compared the old and new server php configuration and found these below

OLD

PHP v5.2.6
GD support "enabled"
upload_max_filesize "20M"
upload_tmp_dir "no value"

NEW

PHP v5.1.6
GD 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

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

  • 3 weeks later...

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

×
×
  • Create New...