Unable to make thumbnail. (0) (again and again and again...)

rlfa2000

Joined: 2008-06-15
Posts: 6
Posted: Sun, 2008-06-15 11:47

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):
Gallery version:1.5.7
Apache version:2.0
PHP version (don't just say PHP 4, please):4.3.11
Graphics Toolkit:netbpm
Operating system:Linux
Web browser/version (if applicable):

Hi everyone,

The old problem - When I try to upload a pic then i get:
Unable to make thumbnail. (0)

I tried many solutions suggested here in this forum - no one work.All permissions (chmod) are set as in the documentation.
Please answer if you can see any troubles in my debug messages.

Here is the complete debug output:

util.php::995 -> Processing file: /tmp/phps4Egec
******Adding P1010007.JPG*****

Album.php::1174 -> Doing the naming
Album.php::1207 -> Image preprocessing
Album.php::1212 -> Resizing/compressing original image
imageManipulation.php::36 -> Resizing Image: /home/.sites/27/site442/web/gallerypics/album01/P1010007.jpg.
util.php::804 -> extension of file P1010007.jpg is jpg
util.php::208 -> Getting Dimension of file: /home/.sites/27/site442/web/gallerypics/album01/P1010007.jpg
util.php::218 -> Dimensions: x: 1600 y: 1200
imageManipulation.php::67 -> No resizing required.
imageManipulation.php::597 -> File /home/.sites/27/site442/web/gallerypics/album01/P1010007.jpg type 2.
util.php::208 -> Getting Dimension of file: /home/.sites/27/site442/web/gallerypics/album01/P1010007.jpg
util.php::218 -> Dimensions: x: 1600 y: 1200
AlbumItem.php::619 -> Generating thumbnail.
AlbumItem.php::622 -> Saved dimensions: width:1600 ; height:1200
AlbumItem.php::686 -> Generating normal thumbs.
imageManipulation.php::36 -> Resizing Image: /home/.sites/27/site442/web/gallerypics/album01/P1010007.jpg.
util.php::804 -> extension of file P1010007.jpg is jpg
util.php::208 -> Getting Dimension of file: /home/.sites/27/site442/web/gallerypics/album01/P1010007.jpg
util.php::218 -> Dimensions: x: 1600 y: 1200
imageManipulation.php::707 -> Compressing image: /home/.sites/27/site442/web/gallerypics/album01/P1010007.jpg
util.php::804 -> extension of file P1010007.jpg is jpg
util.php::156 -> Executing: '/home/.sites/27/site442/web/modules/gallery/netpbm/jpegtopnm' '/home/.sites/27/site442/web/gallerypics/album01/P1010007.jpg' | '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmscale' -xysize 150 150 | '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmtojpeg' --quality=50 > '/home/.sites/27/site442/web/gallerypics/album01/P1010007.thumb.jpg'

Results:
none
Debug messages:

Status: 255 (expected 0)
Error: Unable to make thumbnail. (0)

-------------------------------------------------------------
Here is the result of check_netpbm.php

Loading configuration files. If you see an error here, it is probably because you have not successfully run the config wizard. OK

Let us see if we can figure out what operating system you are using.
This is what your system reports:

Warning: passthru() has been disabled for security reasons in /home/.sites/27/site442/web/modules/gallery/setup/check_netpbm.php on line 88

This is the type of system on which PHP was compiled:

Linux www27.world4you.com 2.6.10-1.771_FC2smp #1 SMP Mon Mar 28 01:10:51 EST 2005 i686

Make sure that the values above make sense to you.

Look for keywords like "Linux", "Windows", "FreeBSD" etc. in the output above.If both the attempts above failed, you should ask your ISP what operating system you are using.You can check via Netcraft, they can often tell you.

You told the config wizard that your Netpbm binaries live here:

/home/.sites/27/site442/web/modules/gallery/netpbm

If that is not right (or if it is blank), re-run the configuration wizard and enter a location for Netpbm.

We are going to test each Netpbm binary individually.
If you see errors, you should click here to see more details

Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/giftopnm' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/jpegtopnm' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pngtopnm' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmcut' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmfile' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmflip' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmrotate' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmscale' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmtopng' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/ppmquant' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/ppmtogif' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmtojpeg' Expected status: 0, but actually received status 255.
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmcomp' Expected status: 0, but actually received status 255.

--------------------------------------------------------------
I don´t have root access to the server i can just access via ftp.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2008-06-15 11:53

Hello,

- is exec() allowed on your server?
- did you install Netpbm on your own?

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
rlfa2000

Joined: 2008-06-15
Posts: 6
Posted: Sun, 2008-06-15 13:06
Quote:
- is exec() allowed on your server?

uhhh..don´t know - please have a look:
http://www.feuerwehr-gaweinstal.at/phpinfo.php
If you mean the script (diabled functions) from the FAQ then i get the following information:
system, shell_exec, passthru, show_source, proc_open, popen

Quote:
- did you install Netpbm on your own?

Yes

I tried
1) netpbm in the root directory
2) netpbm in the gallery directory

no success

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2008-06-15 14:11

Hi,

where did you get Netpbm? And which version did you install?

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
rlfa2000

Joined: 2008-06-15
Posts: 6
Posted: Sun, 2008-06-15 17:55

NetPBM/Gallery micro distribution, version 1.4-pl1

I get the binaries from:
http://netpbm.sourceforge.net

Wrong Version?!?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2008-06-15 17:57

Which version EXACTLY?

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
rlfa2000

Joined: 2008-06-15
Posts: 6
Posted: Sun, 2008-06-15 18:24

Well - I´m not sure because i downloaded the package on a other machine so i don´t know it 100% but i think it was:
netpbm_gallery_1.4-pl2-linux-intel.zip

In my post before I wrote PL1 - because in the readme file is pl1 but the the package name is pl2-linux-intel.zip

I´m not sure if this is the information you want to know but i don´t know where i can get more informations about the istalled version.

 
rlfa2000

Joined: 2008-06-15
Posts: 6
Posted: Sun, 2008-06-15 18:31

Well - a little success....

I uploaded the netpbm files again and set chmod to 777
No I can upload pics and gallery makes a thumb.
BUT - When I look to my gallery i see a broken link image instead of the thumbnail. Also when I click on it i don´t see the image - just a broken link image....

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2008-06-15 18:33

Hi,

yes, thats the info i wanted.
The Linux-Intel Package should be the correct package for your machine.

So far i have no real idea why it fails and i guess you have only FTP access, no Shell-Access.
So i can only suggest that you talk to your hoster and ask if they can install Netpbm or ImageMagick for you. (IM preferable).

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
rlfa2000

Joined: 2008-06-15
Posts: 6
Posted: Sun, 2008-06-15 18:40

Maybe this could give a hint. As I posted befor now i can upload and gallery shows not a thumb just the image when a link is broken. Look at: http://www.feuerwehr-gaweinstal.at/modules/gallery/index.php
Now it looks like this:
util.php::995 -> Processing file: /tmp/phpsmIPvv
******Adding P1010014.JPG*****

Album.php::1174 -> Doing the naming
Album.php::1207 -> Image preprocessing
Album.php::1212 -> Resizing/compressing original image
imageManipulation.php::36 -> Resizing Image: /home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg.
util.php::804 -> extension of file P1010014.jpg is jpg
util.php::208 -> Getting Dimension of file: /home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg
util.php::218 -> Dimensions: x: 1600 y: 1200
imageManipulation.php::67 -> No resizing required.
imageManipulation.php::597 -> File /home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg type 2.
util.php::208 -> Getting Dimension of file: /home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg
util.php::218 -> Dimensions: x: 1600 y: 1200
AlbumItem.php::619 -> Generating thumbnail.
AlbumItem.php::622 -> Saved dimensions: width:1600 ; height:1200
AlbumItem.php::686 -> Generating normal thumbs.
imageManipulation.php::36 -> Resizing Image: /home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg.
util.php::804 -> extension of file P1010014.jpg is jpg
util.php::208 -> Getting Dimension of file: /home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg
util.php::218 -> Dimensions: x: 1600 y: 1200
imageManipulation.php::707 -> Compressing image: /home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg
util.php::804 -> extension of file P1010014.jpg is jpg
util.php::156 -> Executing: '/home/.sites/27/site442/web/modules/gallery/netpbm/jpegtopnm' '/home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg' | '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmscale' -xysize 150 150 | '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmtojpeg' --quality=50 > '/home/.sites/27/site442/web/gallerypics/album01/P1010014.thumb.jpg'

Results:
none
Debug messages:
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
util.php::208 -> Getting Dimension of file: /home/.sites/27/site442/web/gallerypics/album01/P1010014.thumb.jpg
util.php::218 -> Dimensions: x: 150 y: 113
util.php::208 -> Getting Dimension of file: /home/.sites/27/site442/web/gallerypics/album01/P1010014.thumb.jpg
util.php::218 -> Dimensions: x: 150 y: 113
util.php::667 -> Got no capture date. Using file modification time.
util.php::672 -> Item Capture Date: So 15 Jun 2008 20:33:40 CEST

- Resizing P1010014
imageManipulation.php::36 -> Resizing Image: /home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg.
util.php::804 -> extension of file P1010014.jpg is jpg
util.php::208 -> Getting Dimension of file: /home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg
util.php::218 -> Dimensions: x: 1600 y: 1200
imageManipulation.php::707 -> Compressing image: /home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg
util.php::804 -> extension of file P1010014.jpg is jpg
util.php::156 -> Executing: '/home/.sites/27/site442/web/modules/gallery/netpbm/jpegtopnm' '/home/.sites/27/site442/web/gallerypics/album01/P1010014.jpg' | '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmscale' -xysize 640 640 | '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmtojpeg' --quality=90 > '/home/.sites/27/site442/web/gallerypics/album01/P1010014.sized.jpg'

Results:
none
Debug messages:
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
util.php::208 -> Getting Dimension of file: /home/.sites/27/site442/web/gallerypics/album01/P1010014.sized.jpg
util.php::218 -> Dimensions: x: 640 y: 480
Album.php::1281 -> Doing the naming
-----------------------------------------------
Also:
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/giftopnm' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/jpegtopnm' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pngtopnm' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmcut' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmfile' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmflip' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmrotate' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmscale' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmtopng' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/ppmquant' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/ppmtogif' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmtojpeg' OK! Version: netpbm
Checking: '/home/.sites/27/site442/web/modules/gallery/netpbm/pnmcomp' OK! Version: netpbm

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2008-06-15 18:41

Glad you got the Netpbm issue working.

Looks like a class FAQ now ;-)

FAQ: I can successfully upload photos, but when I look in my album all I see are broken image icons. Why?

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6