Jump to content

[Solved] Trouble with images


Recommended Posts

I had this problem when i was trying to upload really big images... try reducing the size of the image in an image editor and then try to re-upload it... See if that works... It did for me.

Also, make sure you set the permissions correctly as you are supposed to do during the install... if the correct permissions are not in place, you will not be able to upload or config the site.

Just a couple of ideas... ;-)

Link to comment
Share on other sites

ball end -001 isnt the file name it the alt tag description, the image is called ball.gif, i have also tried it as a jpeg. All the permissions are set to 777.

Does anyone know how to fix this as my deadline is getting very close.

Thanks for your help so far.

Tom

Link to comment
Share on other sites

  • 3 weeks later...

did this issue ever get resolved? having the same problem with certain images - sometimes it's the larger ones, but sometimes not - no error generated in log or in the admin interface, just a truncated page as above. have spent some time trying to trace through the code, but as the interface just bails without any error, it's proving pretty tricky.

EDIT: this appears to be an issue with image dimensions as opposed to file size.

Link to comment
Share on other sites

I am experiencing a similar problem: the result is "error copying image file" (or something similar).

Initially I was able to use the back office and set the logo and a single category image. Since then, every attempt to assign an image to anything from a category, product, logo, etc. fails. I run the server, didn't make any changes to permissions, settings, etc. It just stopped accepting. Nothing in the error logs, Firebug shows me nothing....completely puzzled.

Any assistance would be great. We're evaluating Prestashop as an alternative to Magento.

edit: I'm guessing no one knows what this is, no ideas?

I'm running everything on a win2003 server: mySql 5, Php5, permissions are correct; a small php uploader test run from the prestashop install directory works...just not Presta...

Link to comment
Share on other sites

Well, today I thought to put some test products into my "prestashop to be" and with the very first one I created I experienced the same problem with assigning pictures to it as described earlier: there is no real error message and no picture is copied to the image/p directory. The file size of those initial pictures tried was about 67 Kb. which shouldn't be a big deal. I tried some smaller ones and they worked but when trying some other bigger ones those worked also, just not the original pictures belonging to that test product.
As the size of the files doesn't seem the culprit I suspect it might have something to do with the dimensions of the image files which failed to upload. Those were all 640x480 while the other, working, ones all have smaller dimensions (even when they are bigger in size). If I remember well the largest setting within the backoffice for images is 600px by 600px but I have no idea if this could be the cause or has any relation to the problem. I haven't checked it any further which I will have to do later. What I also experienced is that upon assigning an image to a product and saving this to the database I return to a blank screen (whether the upload succeeded or not) and I have to choose again the category and the product before I can check/edit again ?!

Link to comment
Share on other sites

I just did some more testing and as is it appears for me the max. dimension I am able to use for my product images (probably any image) is 500px width (haven't tried for height). So there seems no relation to the image size settings within the backoffice. I have no idea why this restriction occurs and/or if it is hardcoded somewhere.
Maybe related to this is that the image files do not get the correct file ownership and the thickbox is not opening for the image files with the newly created product (it does work for the default products provided with prestashop).

Link to comment
Share on other sites

I'm having the exact same problem on a new install of PS. The screen I get is identical to the screenshots posted on the first page of this thread.

I've check the file permissions and the php.ini file. My version of GD is 2.0.34.

The problem happens with JPG, GIF or PNG, no matter the size of the file or the dimensions. It seems like nothing ever makes it to the /img/tmp directory.

Any ideas?? Thanks!

Link to comment
Share on other sites

Hi again,

After stepping through the code, I found the problem occurred during the GD @imagejpeg call. Turned out that my PHP/GD was not configured with JPEG support - you can test for this by doing a var_dump(gd_info());

After recompiling PHP with the --with-jpeg-dir= option, GD works, and so does the image upload.

Link to comment
Share on other sites

Installing Prestashop 1.1. beta2 finally lead me to the solution to the problem with the product images as I experienced them with Prestashop 1.0 as described earlier. In the end the problem was simply a matter of not enough memory assigned to PHP which can be solved through the .htaccess file by adding (if your hosting permits):

php_value memory_limit 32M


Some hosts will probably have a default memory limit of 8Mb assigned to the PHP installation which is not enough for more modern CMS/E-Commerce solutions.

Link to comment
Share on other sites

Hi everyone!

I confirm that it could be related to your php server allowed memory limit.
We already met that trouble in some host provider.
But usualy PHP display an error "Unable to allocate memory".
I'll create a sticky topic talkiing about it :-)

Thank you for that self debuging which made us win a lot of time.

Link to comment
Share on other sites

  • 11 months later...
  • 9 months later...

[solved] I had this problem for just one of my images so far. It had nothing to do with image dimensions, file name, or file extension. It was simply a matter of having too many pixels. So I just edited the image in Paint, reduced the number of pixels to about 1500, and it worked. For those having problems and getting a blank screen, try this.

Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...