Page 1 of 1

Image Upload Nothing Happens

Posted: Thu Mar 19, 2015 3:56 pm
by trickyzxr
Hi,

I have looked into all the posts regarding this issue but have not been able to resolve.

Checking my logs I see these errors:

imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file

imagecopyresampled() expects parameter 2 to be resource, boolean given in /home/*****/public_html/********/system/library/image.php on line 99

Please could someone help in telling me how to go about fixing this issue please?

Thanks.

Tricky

Re: Image Upload Nothing Happens

Posted: Thu Mar 19, 2015 4:01 pm
by OSWorX
Simply check all images.
Errors such that are coming because the uploaded images are corrupt (somtimes because of a part transfer).
Check also all images for false titles, avoid spaces, dots, commas, and umlauts.

Re: Image Upload Nothing Happens

Posted: Thu Mar 19, 2015 10:04 pm
by trickyzxr
Hi thanks for your reply. I know my files are OK as can view edit etc on my pc. The file name is in the format of ab00001 and so on. Would it be a file size issue? I would have thought any problems uploading would show some kind of warning to the admin person no?

Thanks

Tricky

Re: Image Upload Nothing Happens

Posted: Thu Mar 19, 2015 10:47 pm
by OSWorX
Premature end of JPEG file
indicates in 99% of all cases corrupt images.
Viewing the original file locally can be fine, but download the image from the server and display (or try it to) that on your local PC.
You will be surprised .. I see that every week several times at different customers.

Re: Image Upload Nothing Happens

Posted: Fri Mar 20, 2015 12:13 am
by trickyzxr
I am unable to download the image as it is not even getting uploaded. I browse to the file on my local pc then click open and thats it nothing else happens. I FTP'd to my server and the file I was trying to upload was not there. I have set image folders to 777 and my default root to images in the config are:

root config

define('DIR_IMAGE', '/home/******/public_html/******/image/');

admin config

define('DIR_IMAGE', '/home/******/public_html/******/image/');


***** just removing private info.

(SOLVED) Re: Image Upload Nothing Happens

Posted: Fri Mar 20, 2015 12:23 am
by trickyzxr
OK just done a bit of testing and it was down to the image size. My images were 1600 wide so reduced to 1000 and worked.
So all sorted. Many thanks for you help!