Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 11-03-2004, 11:25 AM
spyder Offline
pp regular
 
Join Date: Nov 2004
Location: Ancaster, Ontario
Posts: 29
Cannot create thumbnails

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..
Reply With Quote
  #2  
Old 11-03-2004, 11:38 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
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
__________________
icq: 66760929
Reply With Quote
  #3  
Old 11-03-2004, 12:02 PM
spyder Offline
pp regular
 
Join Date: Nov 2004
Location: Ancaster, Ontario
Posts: 29
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
Reply With Quote
  #4  
Old 11-03-2004, 12:05 PM
spyder Offline
pp regular
 
Join Date: Nov 2004
Location: Ancaster, Ontario
Posts: 29
ahh,same error as don tino
Reply With Quote
  #5  
Old 11-03-2004, 12:08 PM
spyder Offline
pp regular
 
Join Date: Nov 2004
Location: Ancaster, Ontario
Posts: 29
I have php compiled against gd-2.0.28
Reply With Quote
  #6  
Old 11-03-2004, 12:13 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
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
__________________
icq: 66760929
Reply With Quote
  #7  
Old 11-03-2004, 12:15 PM
spyder Offline
pp regular
 
Join Date: Nov 2004
Location: Ancaster, Ontario
Posts: 29
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...
Reply With Quote
  #8  
Old 11-03-2004, 12:17 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Look for --with-jpeg
__________________
icq: 66760929
Reply With Quote
  #9  
Old 11-03-2004, 12:23 PM
spyder Offline
pp regular
 
Join Date: Nov 2004
Location: Ancaster, Ontario
Posts: 29
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
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 08:03 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs