View Full Version : Cannot create thumbnails
spyder
11-03-2004, 11:25 AM
anyway to debug what the errors are when you try to create thumbnails.
when i upload an image it does not create a thumb nail, and if i try to recreate the thumbnails it just results in a blank screen, permissions are correct, just nothing gets resized..
pixelpunk
11-03-2004, 11:38 AM
I suppose you have GD-lib compiled and working.
A hands on debug approach would be to echo out anything to see exactly where it stops processing.
Open up /admin/index.php and look at line 839 and onward.
Just type echo "so far so good<hr />"; within the function at places. Start at the top.
Then hit re-generate thumbnails after each new placement of the line.
function createthumbnail($file) {
echo "so far so good<hr />";
For example. Then you know it actually has gone this far in the process.
Re-place the echo-line lower down, for example after line 857.
This is an rough but easy way to see where the script actually stops.
// pixelpunk
spyder
11-03-2004, 12:02 PM
when creating a new post with a new image.
Fatal error: Call to undefined function: imagejpeg() in /home/web/public_html/photos/admin/index.php on line 876
spyder
11-03-2004, 12:05 PM
ahh,same error as don tino
spyder
11-03-2004, 12:08 PM
I have php compiled against gd-2.0.28
pixelpunk
11-03-2004, 12:13 PM
Edit: you already posted version, nevermind the below.
Need to check that php supports jpeg. I'll look up what it's called in the phpinfo() output.
-
Undefined function, weird.
imagejpeg() was introduced in php 3.0.16, which is old.
It also needs GD-lib 1.8 or later.
Can you check that you got atleast those versions?
If you do have it (which you should) then I must check one other thing (support for jpeg in the php-compile, I think...).
// pixel
spyder
11-03-2004, 12:15 PM
PHP Version 4.3.9
gd-2.0.28
httpd-2.0.50 (apache)
let me check my php compile, i compiled it against a ton of options...
pixelpunk
11-03-2004, 12:17 PM
Look for --with-jpeg
spyder
11-03-2004, 12:23 PM
hrmm even though libjpeg was in /usr/lib and i put --with-jpeg it couldn't find it.. i had to recompile with --with-jpeg-dir=/usr/lib
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.