PDA

View Full Version : Gallery trouble: Error: Unable to make thumbnail (0)!


Songdog
05-12-2004, 05:24 AM
Steven's been looking into this with me and he suggested that I ask here in the hopes that someone with more Gallery experience at Insiderhosting.com might be able to help out (Mort? Are you there?).

I've gotten earlier versions of Gallery working fine on InsiderHosting and at previous hosting companies, but I've been having a devil of a time with 1.4.2 and newer versions. I'm currently working with Gallery v1.4.3-pl1. My server (Lexus) appears to be running PHP v4.3.5 and Apache/1.3.29 on Linux. NetPBM and ImageMagick were were both already installed and Steven confirms that they're working. NetPBM's pnmtojpeg reports that it's using libpbm from NetPBM 9.24 and ImageMagick's convert reports that ImageMagick is version 5.5.7. The Gallery Configuration Wizard finds all binaries for both NetPBM and ImageMagick, and Gallery's Check NetPBM and Check ImageMagick diagnostics tools both report success.

BUT, when I try to upload a new image into a clean installation (via either remote or the simple HTML form) I get the dreaded Error: Unable to make thumbnail (0)! This happens using either NetPBM or ImageMagick.

With NetPBM I get:
Processing status...

- Adding test.jpg
Resizing/compressing original image
No resizing required
File /home/my_home/public_html/gallery/albums/album01/test.jpg type 2.

Executing:

'/usr/bin/jpegtopnm' '/home/my_home/public_html/gallery/albums/album01/test.jpg' |
'/usr/bin/pnmscale' -xysize 150 150 |
'/usr/bin/pnmtojpeg' --quality=90 >
'/home/my_home/public_html/gallery/albums/album01/test.thumb.jpg'


Warning: exec(): Bad shell command [('/usr/bin/jpegtopnm'
'/home/my_home/public_html/gallery/albums/album01/test.jpg' |
'/usr/bin/pnmscale' -xysize 150 150 |
'/usr/bin/pnmtojpeg' --quality=90 >
'/home/my_home/public_html/gallery/albums/album01/test.thumb.jpg') 2>/tmp/dbgbr6HzT] in
/home/my_home/public_html/gallery/platform/fs_unix.php on line 34

Results:

none


Error messages::


Status: -1 (expected 0)
Error: Unable to make thumbnail (0)!

and with ImageMagick I get:
Processing status...

- Adding test.jpg
Resizing/compressing original image
No resizing required
File /home/my_home/public_html/gallery/albums/album01/test.jpg type 2.

Executing:

'/usr/bin/convert' -quality 90 -size 150x150 +profile '*'
'/home/my_home/public_html/gallery/albums/album01/test.jpg' -geometry 150x150
'/home/my_home/public_html/gallery/albums/album01/test.thumb.jpg'


Warning: exec(): Bad shell command [('/usr/bin/convert' -quality 90 -size 150x150 +profile '*'
'/home/my_home/public_html/gallery/albums/album01/test.jpg' -geometry 150x150
'/home/my_home/public_html/gallery/albums/album01/test.thumb.jpg')
2>/tmp/dbgRRpwCN] in /home/my_home/public_html/gallery/platform/fs_unix.php on line 34

Results:

none


Error messages::


Status: -1 (expected 0)

Steven and company are sure that the binaries are installed correctly and that Gallery is causing this problem. Can anyone offer any insight here?

-Songdog

kyhost
05-12-2004, 05:39 AM
My daughter had the same problem and still hasn't figured it out. I think she's gave up and is looking for other options.

Songdog
05-14-2004, 06:55 AM
I still haven't figured this out. I've got a similar question posted in the official Gallery forums, but no luck so far :(

Trogdor
06-06-2004, 08:39 AM
I am experiencing the exact same problem! Have you discovered a solution for this? It's drivng me crazy!

Trogdor
06-06-2004, 09:54 AM
The setup/check_imagemagick.php and check_netpbm.php files return nothing (just like the setup/index.php file before you remove the "locale" code). Is it possible that there is something wrong with the PHP installation on the server (I'm on Diablo) or with the path variables or somesuch?

I'm using 1.4.3pl2, btw.

Nate

Songdog
06-08-2004, 02:56 PM
Another user helped me out and got 1.4.1 working. He had the same trouble I did when he tried 1.4.2 and 1.4.3 on the Insiderhosting.com servers, and neither of us knows why :(. Fortunately 1.4.1 works perfectly, but it would be nice to be able to use 1.4.3.

Steven
06-09-2004, 09:07 AM
I think we have a fix out for this. Can any gallery user email us at info [at] insiderhosting.com please with their login information so we can test it out.

-Steven

jelsas
06-17-2004, 01:23 PM
Did anyone ever figure out a solution to this problem? I'm getting this error now:

Processing status...


- Adding PICT0016.jpg
___Resizing/compressing original image
___No resizing required
File /home/jonathan/public_html/gallery/albums/album01/PICT0016.jpg type 2.

Executing:
'/usr/bin/convert' -quality 90 -size 150x150 +profile '*' '/home/jonathan/public_html/gallery/albums/album01/PICT0016.jpg' -geometry 150x150 '/home/jonathan/public_html/gallery/albums/album01/PICT0016.thumb.jpg'

Warning: exec(): Bad shell command [('/usr/bin/convert' -quality 90 -size 150x150 +profile '*' '/home/jonathan/public_html/gallery/albums/album01/PICT0016.jpg' -geometry 150x150 '/home/jonathan/public_html/gallery/albums/album01/PICT0016.thumb.jpg') 2>/tmp/dbgrBqxz6] in /home/jonathan/public_html/gallery/platform/fs_unix.php on line 34

Results:
none

Error messages::

Status: -1 (expected 0)
Error: Unable to make thumbnail (0)!

Steven
06-17-2004, 02:45 PM
What server are you on?

-Steven

jelsas
06-17-2004, 03:55 PM
I think its 'escalade' (i'm not sure if i'm looking in the right place for the name, tho)

Steven
06-17-2004, 04:29 PM
Originally posted by jelsas
I think its 'escalade' (i'm not sure if i'm looking in the right place for the name, tho)

Please check now.

-Steven

jelsas
06-18-2004, 03:39 AM
thanks -- looks like you fixed it.

igner
06-29-2004, 07:58 PM
this appears to still be an issue on firebird...

Steven
06-29-2004, 10:16 PM
Originally posted by igner
this appears to still be an issue on firebird...

We wanted to make sure we had the fix before changing a configuration on 40+ servers ;) Thus the request to users who have gallery installed on their site :)

-Steven

MrSoup
06-30-2004, 12:32 AM
Wasn't sure where to look for the server name... but a traceroute to my domain goes to porsche.

Can you do your magic here as well?

Steven
06-30-2004, 12:41 AM
Now that we have the fix, you bet :) We'll start it today across all servers.

-Steven

MrSoup
06-30-2004, 10:32 AM
Thanks for the super quick reply. Any estimate on when this would be completed? Because I think if I can't upload some pictures soon and have my big stupid gallery of crappy drawings, my head will explode and the moon will fall out of the sky and crush us all. Or some really dramatic thing like that. ;-)

Good luck, and let us know when it's resolved.

Thanks again!

Steven
06-30-2004, 12:25 PM
Porsche and firebird are being done now.

-Steven

igner
06-30-2004, 12:28 PM
Excellent, I know I for one was not looking forward to either MrSoup's exploding head or being crushed by the moon.

Thanks again for the quick response.

MrSoup
06-30-2004, 02:55 PM
Thanks... it's all running now. And loads of crappy images be uploading as we speak.

I really appreciate the quick action on all this.

Steven
06-30-2004, 05:36 PM
Porsche and firebird should have been done a while ago. Thanks for letting us know the servers that you were on so we could release our fix asap on them. Active forum participation gets things done :) We've also been contacted by the gallery creator and told them of our findings on the security end of things.

-Steven

freak2532
07-02-2004, 12:38 PM
Steven has this been done on all servers? I tried Gallery a while back and was having this problem. I wanted to know if its been fixed on 'Infiniti' before going and reinstalling it again.

nepo77
11-26-2004, 06:32 AM
Hello,

I dont have a acount with insidehosting.com , but i have the same problem you described here on my own linux box sitting here beside me, i tried numerous php.ini changes but nothing helped. Can you explain what the Fix for this was, since youve solved it ?

That would be terrific!
Many thanks in advance.

Greetings
nepo77