Hi,
I have a php programmer working on a project for me, but he seems to be having some trouble. It is a used car dealership website where people can upload their cars information and pictures of the car. The type of files being uploaded has been limited to jpg.
The image uploads seemed to be working fine, but now that the site is live there is a user who keeps getting the error message below. I asked the user to email me the pictures and they are jpg format. They were taken with the users digital camera but for some reason even though they are jpg and size is not too big they create this error:
--------------------------
----------
----------
----------
----------
----------
---
Warning: imagecreatefromjpeg(): '/var/www/vhosts/agoodused
car.com/ht
tpdocs/pic
Trash/20ce
1baf6352a0
744dbfb477
98d553e8.j
pg' is not a valid JPEG file in /var/www/vhosts/agoodusedc
ar.com/htt
pdocs/incl
udes/stdFu
nctions.ph
p on line 138
Warning: imagesx(): supplied argument is not a valid Image resource in /var/www/vhosts/agoodusedc
ar.com/htt
pdocs/incl
udes/stdFu
nctions.ph
p on line 153
Warning: imagesy(): supplied argument is not a valid Image resource in /var/www/vhosts/agoodusedc
ar.com/htt
pdocs/incl
udes/stdFu
nctions.ph
p on line 154
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/www/vhosts/agoodusedc
ar.com/htt
pdocs/incl
udes/stdFu
nctions.ph
p on line 179
Warning: imagesx(): supplied argument is not a valid Image resource in /var/www/vhosts/agoodusedc
ar.com/htt
pdocs/incl
udes/stdFu
nctions.ph
p on line 191
Warning: imagesy(): supplied argument is not a valid Image resource in /var/www/vhosts/agoodusedc
ar.com/htt
pdocs/incl
udes/stdFu
nctions.ph
p on line 192
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/www/vhosts/agoodusedc
ar.com/htt
pdocs/incl
udes/stdFu
nctions.ph
p on line 217
Warning: imagedestroy(): supplied argument is not a valid Image resource in /var/www/vhosts/agoodusedc
ar.com/htt
pdocs/incl
udes/stdFu
nctions.ph
p on line 225
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/agoodusedc
ar.com/htt
pdocs/incl
udes/stdFu
nctions.ph
p:138) in /var/www/vhosts/agoodusedc
ar.com/htt
pdocs/admi
n/admOnly/
backContro
ller.php on line 273
--------------------------
----------
----------
---------
When i open the picture in photoshop and resave it and then upload it, it works fine. Does anyone have any clues as to what might be causing this problem?
Thanks,
Start Free Trial