Can't Create Thumbnail (0) and debug is not working
apparition
Joined: 2004-05-21
Posts: 16 |
![]() |
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 |
|
alindeman
![]()
Joined: 2002-10-06
Posts: 8194 |
![]() |
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 |
![]() |
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 |
![]() |
Try uploading using the form. |
|
apparition
Joined: 2004-05-21
Posts: 16 |
![]() |
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 |
![]() |
can you setup a test account? |
|
apparition
Joined: 2004-05-21
Posts: 16 |
![]() |
Done |
|
apparition
Joined: 2004-05-21
Posts: 16 |
![]() |
bump |
|
DarkunderdoG
Joined: 2003-08-16
Posts: 58 |
![]() |
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 |
![]() |
this is my problem Processing status... - Adding Untitled-2.gif 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 Status: 127 (expected 0) |
|
danielyc
Joined: 2004-05-23
Posts: 3 |
![]() |
Processing status... - Adding DSC04190.JPG ok .. this is the latest one !! |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
danielyc, your netpbm path seems to be wrong. FAQ Gallery:c.32 try using that. |
|
apparition
Joined: 2004-05-21
Posts: 16 |
![]() |
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 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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
h0bbel, The absolute path is /homepages/32/d98866600/htdocs/gallery/netpbm. That is what I used for the location of the netpbm. |
|
h0bbel
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
sh: line 1: /gallery/netpbm/giftopnm: No such file or directory |
|
apparition
Joined: 2004-05-21
Posts: 16 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
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 |
![]() |
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 |
![]() |
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
![]()
Joined: 2002-07-28
Posts: 13451 |
![]() |
apparition, great stuff! Glad you got it working! |
|
leojarina
Joined: 2009-02-18
Posts: 1 |
![]() |
I have already an uploaded Images in joomla for my phoca gallery |
|