Can't Create Thumbnail (0) and debug is not working

apparition

Joined: 2004-05-21
Posts: 16
Posted: Fri, 2004-05-21 05:04

Please help. I am new to open source and php. I am having trouble making Gallery work. I am using 1and1 as my host. I can not upload photos. I get the can not upload thumbnail (0) error.

I have the debug mode on (I checked the config.php file) and I do not get any information. I am assuming my netpbm is not working but I can not figure out why without debug. Any suggestions.

I have saved the phpinfo html at www.mitchellpaull.com/gallery/doc/phpinfo.php.htm

Thanks
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): www.mitchellpaull.com/gallery
Gallery version: 1.4.3-p11
Apache version: 1.3.29 (Unix)
PHP version (don't just say PHP 4, please): 4.2.3
Graphics Toolkit: netpbm
Operating system: Linux (Modified debian)
Web browser/version (if applicable): explorer 6, firefox .8

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2004-05-21 12:05

Please paste all the output you get when you try to upload a picture when Gallery is in debug mode.

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Fri, 2004-05-21 16:08

I could be a complete idiot but I do not get any debug messages.

I log in as admin and the windows stays open snce gallery is in the debug mode. I then try to upload photos. The java applet takes contol of the open window.

The upload seems to go ok but I get an error message can not create thumbnail (0). No debug error messages happen. Where should I being seeing these messages. :roll:

Thanks for your help.

 
DarkunderdoG

Joined: 2003-08-16
Posts: 58
Posted: Fri, 2004-05-21 17:59

Try uploading using the form.

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Sat, 2004-05-22 03:05

I have tried to upload a few diffent ways. I can not get it to work and I still get no debug messages. Any suggestions.

 
DarkunderdoG

Joined: 2003-08-16
Posts: 58
Posted: Sat, 2004-05-22 04:12

can you setup a test account?

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Sat, 2004-05-22 05:44

Done

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Sun, 2004-05-23 03:39

bump

 
DarkunderdoG

Joined: 2003-08-16
Posts: 58
Posted: Sun, 2004-05-23 03:49

Below is the error i get when uploading a picture to your gallery

- Adding Adobe_Photoshop_8_Cs_custom-cd.jpg 
   Resizing/compressing original image 
   No resizing required 
File /homepages/32/d98866600/htdocs/albums/album01/Adobe_Photoshop_8_Cs_custom_cd_001.jpg type 2.


Executing:

'/homepages/32/d98866600/htdocs/gallery/netpbm/jpegtopnm' '/homepages/32/d98866600/htdocs/albums/album01/Adobe_Photoshop_8_Cs_custom_cd_001.jpg' | '/homepages/32/d98866600/htdocs/gallery/netpbm/pnmscale' -xysize 150 150 | '/homepages/32/d98866600/htdocs/gallery/netpbm/pnmtojpeg' --quality=90 > '/homepages/32/d98866600/htdocs/albums/album01/Adobe_Photoshop_8_Cs_custom_cd_001.thumb.jpg'

Results: 
none

Error messages:: 
jpegtopnm: WRITING PPM FILE
pnmtojpeg: Error reading magic number from Netpbm image stream.  Most often, this means your input file is empty.
jpegtopnm: Error writing single byte sample to file


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

Joined: 2004-05-23
Posts: 3
Posted: Sun, 2004-05-23 07:52

this is my problem
\

Processing status...

- Adding Untitled-2.gif
Resizing/compressing original image
No resizing required
File /home/httpd/vhosts/danielyc.com.ru/httpdocs/gallery/albums/album01/Untitled_2.gif type 1.

Executing:

'/gallery/netpbm/giftopnm' '/home/httpd/vhosts/danielyc.com.ru/httpdocs/gallery/albums/album01/Untitled_2.gif' | '/gallery/netpbm/pnmscale' -xysize 150 150 | '/gallery/netpbm/ppmquant' 256 | '/gallery/netpbm/ppmtogif' > '/home/httpd/vhosts/danielyc.com.ru/httpdocs/gallery/albums/album01/Untitled_2.thumb.gif'

Results:

none

Error messages::

sh: line 1: /gallery/netpbm/giftopnm: No such file or directory
sh: line 1: /gallery/netpbm/pnmscale: No such file or directory
sh: line 1: /gallery/netpbm/ppmquant: No such file or directory
sh: line 1: /gallery/netpbm/ppmtogif: No such file or directory

Status: 127 (expected 0)
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ No email sent as no valid email addresses were found

 
danielyc

Joined: 2004-05-23
Posts: 3
Posted: Sun, 2004-05-23 08:16

Processing status...

- Adding DSC04190.JPG
Resizing/compressing original image
No resizing required
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ

ok .. this is the latest one !!

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2004-05-23 09:28

danielyc, your netpbm path seems to be wrong. FAQ Gallery:c.32 try using that. :)

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Mon, 2004-05-24 16:45

Well, dont know what to say or do. I was using the absolute path and I checked it. The absolute path is correct.

I still do not know why I do not get debug messages. (Thanks DarkunderdoG for your post). I also checked to make sure the files existed. They do.

So I do not know why I get the error message.

Error messages::

sh: line 1: /gallery/netpbm/giftopnm: No such file or directory
sh: line 1: /gallery/netpbm/pnmscale: No such file or directory
sh: line 1: /gallery/netpbm/ppmquant: No such file or directory
sh: line 1: /gallery/netpbm/ppmtogif: No such file or directory

The only issue is that the error message above does not list the absolute path. Is this a problem or is the above message normal?

Any suggestions?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-05-24 17:20

apparition, you are not using the absolute path.... /gallery/... seems to indicate a wrong one.

What did the test script give you as output?

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Mon, 2004-05-24 22:43

h0bbel,

The absolute path is /homepages/32/d98866600/htdocs/gallery/netpbm. That is what I used for the location of the netpbm.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-05-24 22:45

sh: line 1: /gallery/netpbm/giftopnm: No such file or directory
doesn't seem to indicate that? It should read /homepages/32/d98866600/htdocs/gallery/netpbm/giftopnm in that case?

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Mon, 2004-05-24 22:54

I agree. It should read that but it does not.

the config.php file has the following line.

$gallery->app->pnmDir = "/homepages/32/d98866600/htdocs/gallery/netpbm";

It must be something else. Are there any setting for php that I might need to set?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-05-24 23:07

apparition, no not really. I'm not sure whats going on there, you still get the same output?

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Mon, 2004-05-24 23:27

Same results "Can't create thumbnail (0)" I do not get any debug messages. Not sure why but the debug message are posted above. Not sure what to do.

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Mon, 2004-05-24 23:33

Based upon another note, I noticed that my upload_tmp_dir has no value (per php info). Could that be causing is and what is the php.ini command I need to use. Also where should the php.ini file be located?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-05-24 23:37

According to your php.ini output, it's in /usr/local/lib/php.ini

Try to upload_tmp_dir to /tmp and restart apache.

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Mon, 2004-05-24 23:46

I am hosting gallery on 1and1 and can not restart. I do not have access to the php.ini. I do not think they will change it as it is shared hosting.

Can I add a local php.ini to my root level?

What line would I add.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-05-24 23:48

apparition, I don't think you can set that setting, no. It's a systemwide setting, as far as I know. Why not try contacting them?

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Tue, 2004-05-25 00:05

I did contact them and they will not change it on hosted systems. I guess I am out of luck with 1and1.

Thank you for your help.

 
apparition

Joined: 2004-05-21
Posts: 16
Posted: Wed, 2004-05-26 05:47

Thank for all your help. I have given up on my hosting company (1and1.) Do not use them for Gallery. They are very inflexible.

I switched to Open Source Hosting today. Loaded Gallery and it worked the first time. They seem a lot nicer and Gallery gets a donation.

Cheers :lol:

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2004-05-26 06:16

apparition, great stuff! Glad you got it working!

 
leojarina

Joined: 2009-02-18
Posts: 1
Posted: Wed, 2009-02-18 03:51

I have already an uploaded Images in joomla for my phoca gallery
but it didn't create any thumbnails.