Error: Unable to make thumbnail (0)

banditox
banditox's picture

Joined: 2005-06-25
Posts: 11
Posted: Fri, 2005-09-02 05:46

Error: Unable to make thumbnail (0)
----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): LINK
Gallery version: 1.5
Apache version:
PHP version (don't just say PHP 4, please): v4.4.0
Graphics Toolkit: ImageMagick
Operating system: Linux
Web browser/version (if applicable):

Everything used to work fine. However, recently when I try to upload pictures, I get this error message (I even tried uploading pictures that I have uploaded before!!)[/url]

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-09-02 11:12

FAQ Gallery:c.31 and try a form based upload. Post the debug results.

 
mr_pink

Joined: 2005-09-02
Posts: 1
Posted: Fri, 2005-09-02 20:44

i got the very same problem.
============
PHP v4.3.10
gallery v1.5-pl1
Graphics Toolkit: netpbm
Operating system: Linux
============
Results:

none

Debug messages:

Status: 127 (expected 0)
Error: Unable to make thumbnail (0)

Quote:
Status: (expected 0) -- This means that Gallery is unable to get a status message from PHP, which it relies on. One possible solution is that your host has disabled some needed php functions. To determine if they have create a PHP file containing

<?php
echo ini_get("disable_functions");
?>

-> system, passthru, shell_exec, popen, escapeshellcmd, proc_open
==============================================
Gallery Diagnostics:
Check netpbm:

Checking: '/var/www/web200/html/netpbm/giftopnm' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/jpegtopnm' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/pngtopnm' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/pnmcut' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/pnmfile' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/pnmflip' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/pnmrotate' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/pnmscale' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/pnmtopng' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/ppmquant' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/ppmtogif' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/pnmtojpeg' Expected status: 0, but actually received status 127.
Checking: '/var/www/web200/html/netpbm/pnmcomp' Expected status: 0, but actually received status 127.

==============================================
Gallery Configuration Wizard: Step 1

Serious Warning!

The PHP option 'register_globals' is enabled on your server. Gallery highly recommends that you disable 'register_globals' unless it is required by software on your site. Gallery does not officially support 'register_globals' being enabled, and will attempt to disable it internally.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-09-02 20:49

-> system, passthru, shell_exec, popen, escapeshellcmd, proc_open

Gallery won't run with these functions disabled, you'll need to contact your host.

 
Najjt

Joined: 2005-09-04
Posts: 1
Posted: Sun, 2005-09-04 18:58

Gallery: 1.5.1 RC3
Apache 2.0.52
PHP 4.3.8
Grafix tools: Both netpbm and ImageMagick
OS: Windows XP

Output from Gallery in debug mode:

Doing the naming
Image Preprocessing
Resizing/compressing original image
util.php::481 -> Resizing Image: C:/Program/Apache Group/Apache2/htdocs/albums/Thailand/MartinA.jpg
util.php::329 -> Getting Dimension of file: C:/Program/Apache Group/Apache2/htdocs/albums/Thailand/MartinA.jpg

No resizing required
Adding Photo to the photo list
util.php::989 -> File C:/Program/Apache Group/Apache2/htdocs/albums/Thailand/MartinA.jpg type 2.
util.php::329 -> Getting Dimension of file: C:/Program/Apache Group/Apache2/htdocs/albums/Thailand/MartinA.jpg

Generating thumbnail.
util.php::481 -> Resizing Image: C:/Program/Apache Group/Apache2/htdocs/albums/Thailand/MartinA.jpg
util.php::329 -> Getting Dimension of file: C:/Program/Apache Group/Apache2/htdocs/albums/Thailand/MartinA.jpg
util.php::277 -> Executing: "C:\Program\Apache Group\Apache2\htdocs\hbit\html\modules\gallery\netpbm\jpegtopnm" "C:\Program\Apache Group\Apache2\htdocs\albums\Thailand\MartinA.jpg" | "C:\Program\Apache Group\Apache2\htdocs\hbit\html\modules\gallery\netpbm\pnmscale" -xysize 150 150 | "C:\Program\Apache Group\Apache2\htdocs\hbit\html\modules\gallery\netpbm\pnmtojpeg" --quality=90 > "C:\Program\Apache Group\Apache2\htdocs\albums\Thailand\MartinA.thumb.jpg"

Results:
none

Debug messages:

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

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2005-09-04 19:23

Najjt, and this is remotely related to what in the original thread?

Anyway, move the NetPBM binaries to a directory without spaces in it. If you have further problems, create a new thread.

 
banditox
banditox's picture

Joined: 2005-06-25
Posts: 11
Posted: Wed, 2005-09-07 07:55

Hi h0bbel,
Here is the error message:0

Doing the naming
Image Preprocessing
   Resizing/compressing original image
Resizing Image: /home/mykereta/public_html/gallery1/albums/MyVi/TESTALIGNSYNERGY2.jpg
Getting Dimension of file: /home/mykereta/public_html/gallery1/albums/MyVi/TESTALIGNSYNERGY2.jpg
   No resizing required
Adding Photo to the photo list
File /home/mykereta/public_html/gallery1/albums/MyVi/TESTALIGNSYNERGY2.jpg type 2.

Getting Dimension of file: /home/mykereta/public_html/gallery1/albums/MyVi/TESTALIGNSYNERGY2.jpg
Generating thumbnail.
Resizing Image: /home/mykereta/public_html/gallery1/albums/MyVi/TESTALIGNSYNERGY2.jpg
Getting Dimension of file: /home/mykereta/public_html/gallery1/albums/MyVi/TESTALIGNSYNERGY2.jpg
Executing:

      '/usr/local/bin/convert' -quality 90 -size 100x100 -coalesce '/home/mykereta/public_html/gallery1/albums/MyVi/TESTALIGNSYNERGY2.jpg' -geometry 100x100 '/home/mykereta/public_html/gallery1/albums/MyVi/TESTALIGNSYNERGY2.thumb.jpg'


Results:

none


Debug messages:

sh: line 1: /usr/local/bin/convert: No such file or directory


Status: 127 (expected 0) 
 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-09-07 07:57

banditox, so, your path to ImageMagick is wrong. Either fix that, or install NetPBM and use that instead.

 
banditox
banditox's picture

Joined: 2005-06-25
Posts: 11
Posted: Wed, 2005-09-07 09:50

Thanks h0bbel, appearantly my webhosting company moved my website to a new server without infroming me. :evil: Anyway its fixed now. Thanks again

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-09-07 10:13

h0bbel, that happens pretty frequently. :)

 
Jordan_01002

Joined: 2005-02-14
Posts: 1535
Posted: Wed, 2005-09-07 10:20

Uh oh... he's talking to himself again... not a good sign...

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-09-07 10:23

Well, h0bbel happens frequently. Over 10k times so far!