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 |
|
Posts: 8194
Please paste all the output you get when you try to upload a picture when Gallery is in debug mode.
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.
Posts: 58
Try uploading using the form.
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.
Posts: 58
can you setup a test account?
Posts: 16
Done
Posts: 16
bump
Posts: 58
Below is the error i get when uploading a picture to your gallery
Posts: 3
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
Posts: 3
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 !!
Posts: 13451
danielyc, your netpbm path seems to be wrong. FAQ Gallery:c.32 try using that.
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
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?
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?
Posts: 16
h0bbel,
The absolute path is /homepages/32/d98866600/htdocs/gallery/netpbm. That is what I used for the location of the netpbm.
Posts: 13451
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?
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?
Posts: 13451
apparition, no not really. I'm not sure whats going on there, you still get the same output?
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.
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?
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.
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.
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?
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.
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:
Posts: 13451
apparition, great stuff! Glad you got it working!
Posts: 1
I have already an uploaded Images in joomla for my phoca gallery
but it didn't create any thumbnails.