View Full Version : Why I can only upload gif
theguywhoknowz
03-01-2006, 06:16 AM
Everytime if i upload an jpg file, it show the bad file creation error. What should I do to fix this?
http://www.GameReviews.com
Morgan
03-01-2006, 06:32 AM
Is the JPG file a dot jpg file, or how was it made? The 'bad file' message occurs for one of the reasons listed in this (http://www.photoplog.com/forum/showpost.php?p=341&postcount=4) post.
theguywhoknowz
03-01-2006, 06:53 PM
frist i thought you need a small file, but when i upload a huge JPG picture file, it still works, which leads me to the conclusion that only gif file , it doesnt work
Morgan
03-01-2006, 07:21 PM
PHP settings may affect uploads:
Content visible to registered users only.
Try uploading a small KB JPG file.
theguywhoknowz
03-01-2006, 07:24 PM
it works doesnt matter small or big GIF file,
doesnt work on any JPG file, i have try both small and big, it seem liek it has to do with the height and weight of the file
Morgan
03-01-2006, 07:26 PM
Save the attached JPG file and see if you can upload it.
theguywhoknowz
03-01-2006, 07:30 PM
nope, Sorry, $user : Bad Save - Thumbs Creation Failed
Morgan
03-01-2006, 07:40 PM
Is your PhotoPlog images directory, and all the subdirectories within, set to 777 permissions?
theguywhoknowz
03-01-2006, 07:44 PM
Yes, they are
Morgan
03-01-2006, 07:54 PM
In the PhotoPlog functions.php file find:
Content visible to registered users only.
And before each one of those add the following:
Content visible to registered users only.
Make sure to echo a different letter each time.
Have something like this, letters in order:
Content visible to registered users only.
Then try to upload that book picture again.
What letter do you see on screen?
theguywhoknowz
03-01-2006, 08:03 PM
I have looked through the function page, there is no where with this code
return false;
// there are five spots
I attached my functions.php file here
Morgan
03-01-2006, 08:09 PM
Look at line 31 for the first one. ;)
theguywhoknowz
03-01-2006, 08:13 PM
Letter B B B show on top left of the screen
Morgan
03-01-2006, 08:21 PM
Okay, now remove those echo statements, and then find:
Content visible to registered users only.
Remove @ from that line, and again upload the book picture.
What shows on screen?
theguywhoknowz
03-01-2006, 08:25 PM
Samething
Sorry, user: Bad Save - Thumbs Creation Failed
Morgan
03-01-2006, 08:31 PM
Okay, instead in the functions.php file find:
Content visible to registered users only.
And temporarily replace with the following:
Content visible to registered users only.
Try another book upload. Anything new on screen?
theguywhoknowz
03-01-2006, 08:33 PM
Same damn error, sorry to bother you so much
Morgan
03-01-2006, 08:39 PM
'Tis okay, strange you can do GIFs, not JPGs.
Now find the first instance of the following:
Content visible to registered users only.
And afterwards add the following:
Content visible to registered users only.
What's this show after book upload?
theguywhoknowz
03-01-2006, 08:47 PM
same error and at the top it said more:
Array ( [0] => 76 [1] => 95 [2] => 2 [3] => width="76" height="95" [bits] => 8 [channels] => 3 [mime] => image/jpeg ) Array ( [0] => 76 [1] => 95 [2] => 2 [3] => width="76" height="95" [bits] => 8 [channels] => 3 [mime] => image/jpeg ) Array ( [0] => 76 [1] => 95 [2] => 2 [3] => width="76" height="95" [bits] => 8 [channels] => 3 [mime] => image/jpeg )
Morgan
03-01-2006, 08:55 PM
Okay, undo any previous changes and then find:
Content visible to registered users only.
And temporarily replace with the following:
Content visible to registered users only.
Another book upload. What shows now?
theguywhoknowz
03-01-2006, 08:57 PM
same error , of course , and has this at the top
JPG detected. JPG not supported. JPG detected. JPG not supported. JPG detected. JPG not supported.
Morgan
03-01-2006, 09:12 PM
Aha, now we know. :)
JPG is not supported. If you look at your phpinfo page, under the GD block, it'll list what is supported. Once you or your host enables JPG and PNG support, you'll be set.
Check out the FAQ titled "gd keeps saying it can't find png or jpeg support. I did install libpng and libjpeg. What am I missing?" at http://www.boutell.com/gd/faq.html
theguywhoknowz
03-01-2006, 09:29 PM
Thank you for your time, this is my php info show
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
Definately dont have JPG support there, once again, thanks
vBulletin® v3.8.5, Copyright ©2000-2024, Jelsoft Enterprises Ltd.