Unable to make thumbnail (0)!

arossphoto

Joined: 2002-09-05
Posts: 13
Posted: Thu, 2002-09-05 17:24

I've looked at FAQ C.2 and I don't know how to check out my Apache error_log, so I went to step 2 and turned on debugging. Here's what I get when I try and upload images:

Quote:
Processing status...
- Adding beagal huskey.jpg
Executing:

/home/sites/www.mysite.com/web/netpbm/jpegtopnm /home/sites/www.mysite.com/web/albums/album01/beagal_huskey.jpg | /home/sites/www.mysite.com/web/netpbm/pnmfile --allimages

Results:
none

Error messages:

Status: 126 (expected 126)
Executing:

/home/sites/www.mysite.comet/web/netpbm/jpegtopnm /home/sites/www.mysite.com/web/albums/album01/beagal_huskey.jpg | /home/sites/www.mysite.com/web/netpbm/pnmfile --allimages

Results:
none

Error messages:

Status: 126 (expected 126)
Executing:

/home/sites/www.mysite.com/web/netpbm/jpegtopnm /home/sites/www.canphoto.net/web/albums/album01/beagal_huskey.jpg | /home/sites/www.mysite.com/web/netpbm/pnmscale -xysize 150 150 | /home/sites/www.mysite.com/web/netpbm/ppmtojpeg --quality=95 > /home/sites/www.mysite.com/web/albums/album01/beagal_huskey.thumb.jpg

Results:
none

Error messages:

Status: 126 (expected 126)
Error: Unable to make thumbnail (0)!
Need help? Look in the Gallery FAQ

I have run check_netpbm.php and everything came back as OK. Now I don't know where to go from here, because I don't how to simulate the "command yourself from a command line" (where do I this?) as described in the FAQ. I'd appreciate any help or suggestions.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Fri, 2002-09-06 04:35

Sounds like you checked, but just in case, heres a link
to the proper <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=GalleryDocs&file=index&page=gallery1-install.faq.c.php#gallery1-install.faq.c.2" TARGET="_blank">FAQ section</A><!-- BBCode End -->.

Basically, you need shell access to be able to manually execute the commands.
The FAQ entry tells you what to do from there.

 
arossphoto

Joined: 2002-09-05
Posts: 13
Posted: Fri, 2002-09-06 14:02

Thanks for trying to help. I've been creating web sites for years now and I know a little bit about php, asp, cgi, MySQL, FTP, etc, but I have to admit I don't know what you mean by "Shell Access". I've seen a lot of references to this since trying to install Gallery, but I think you guys may have forgotten this line from your Project Vision: "It must be so easy and self-explanatory to install that a bored, computer-fearing housewife in Ohio can set it up on her ftp-only ISP's webserver without having to ask us for help."

I'm no computer-fearing housewife, but could someone please explain "Shell Access" and how to simulate the "command yourself from a command line"? If I don't have shell access what can I do to get Gallery working?

Cheers.

 
arossphoto

Joined: 2002-09-05
Posts: 13
Posted: Fri, 2002-09-06 14:42

I just contacted my server, and unfortunately my plan does not support shell access.

So if I don't have shell access is there anything else I can do get gallery working? I sure hope so. :???:

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sat, 2002-09-07 04:19

Asking if you have "shell access" basically means if you have the ability
to log into your account via 'telnet' or 'ssh' or some other method besides
ftp. It's likely that if you don't have shell access, then you won't be able
to access the error logs yourself, unless your ISP has some sort of special
setup. I have no idea, I don't use hosting companies.

The only other thing the FAQ mentions for this issue is to verify that you
have enough disk space (your quota isn't full, etc). Outside of that, maybe
somebody else that has had this issue can sound off on how they fixed it.

I've never encountered this personally so am limited in what I can advise.
Perhaps you can try searching the forum, I know this has been addressed
before by others.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-07 20:38
Quote:
I think you guys may have forgotten this line from your Project Vision: "It must be so easy and self-explanatory to install that a bored, computer-fearing housewife in Ohio can set it up on her ftp-only ISP's webserver without having to ask us for help."

The vision statement is a goal not a definition. In fact it's a goal for G2... when I wrote G1 I didn't have a clue that Gallery would be as successful as it is today. If I did, I would have written it better. Here's a <!-- BBCode Start --><A HREF="http://www.allianceonline.org/search/searchframe.cfm" TARGET="_blank">definition</A><!-- BBCode End --> of what a vision statement is for.

 
arossphoto

Joined: 2002-09-05
Posts: 13
Posted: Sat, 2002-09-07 21:23
Quote:
The vision statement is a goal not a definition. In fact it's a goal for G2... when I wrote G1 I didn't have a clue that Gallery would be as successful as it is today. If I did, I would have written it better. Here's a <!-- BBCode Start --><A HREF="http://www.allianceonline.org/search/searchframe.cfm" TARGET="_blank">definition</A><!-- BBCode End --> of what a vision statement is for.

I didn't mean to be critical, I just wanted some help and was probably a bit frustrated with the installation files and FAQs that seem to make some assumptions about people's knowledge levels.

I'm glad to hear that Gallery has become so successful and I would just like to be able to get it working. I have searched this discussion forum and even the old Gallery-usersArchives, but I have found nothing.

If any one can offer any advice and help me get Gallery working I would really appreciate it.

Thanks

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2002-09-08 01:08

Do you have access to your Apache error log? There may be an error message in there explaining what went wrong with the NetPBM command.

Something is going wrong, but we don't know what because we don't have enough information to go on. It's a puzzle with some pieces missing. Put your gallery in config mode and send us a link to your diagnostics and we may be able to figure it out.

The other option would be for somebody knowledgeable about PHP to log onto your account and fiddle with the code until they figure out what's going on. If you donate $10-20 to the Gallery fund and private-message me your ftp info, I'll do this for you.

 
arossphoto

Joined: 2002-09-05
Posts: 13
Posted: Sun, 2002-09-08 15:17

Thanks again for trying to help. I checked with my server and they said I don't have access to my Apache error log, but they sent me some copies of my web logs for the last week. Is this the same thing? Here is a sample of what's in the log:

Quote:
[05/Sep/2002:09:37:02 -0600] "POST /www.mysite.com/gallery/save_photos.php HTTP/1.1" 200 13016 "http://www.mysite.com/gallery/add_photos.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"
65.95.195.75 - -
[05/Sep/2002:09:37:03 -0600] "GET /www.mysite.com/gallery/images/computer.gif HTTP/1.1" 200 286 "http://www.mysite.com/gallery/progress_uploading.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"
65.95.195.75 - -
[05/Sep/2002:09:37:03 -0600] "GET /www.mysite.com/gallery/images/uploading.gif HTTP/1.1" 200 507 "http://www.mysite.com/gallery/progress_uploading.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"
65.95.195.75 - -
[05/Sep/2002:09:37:03 -0600] "GET /www.mysite.com/gallery/test HTTP/1.1" 200 9983 "http://www.canphoto.net/gallery/albums.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"
65.95.195.75 - -

I also ran diagnostics.php. Here is what it said about my PHP Info:

Quote:
'./configure' '--prefix=/home/php' '--with-apxs=/usr/sbin/apxs' '--enable-safe-mode' '--with-config-file-path=/etc/httpd' '--with-exec-dir=/home/php/bin' '--with-zlib' '--enable-magic-quotes' '--with-regex=system' '--enable-track-vars' '--enable-xml' '--disable-debug' '--with-interbase' '--with-pgsql' '--with-ldap' '--with-imap' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-mysql=/usr' '--with-gd' '--with-ttf' '--with-freetype'

And here are the results of "Check NetPBM":

Quote:
Checking /home/sites/www.mysite.com/web/netpbm/giftopnm
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/jpegtopnm
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/pngtopnm
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/pnmcut
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/pnmfile
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/pnmflip
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/pnmrotate
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/pnmscale
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/pnmtopng
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/ppmquant
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/ppmtogif
Ok! Version

Checking /home/sites/www.mysite.com/web/netpbm/ppmtojpeg
Ok! Version

Does this help at all?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-09-09 09:44

The key thing here is that the check_netpbm diagnostic appears to be running successfully. That seems to indicate that everything is ok with NetPBM, even though you're still getting errors. Without shell access, it's going to be hard to debug this remotely. Since this is probably a configuration issue on your server, I'll offer you my standard support deal. Donate $10-20 to the Gallery fund and private messsage me your ftp hostname, username, password and I'll log onto your box remotely and fix the issue for you.

 
arossphoto

Joined: 2002-09-05
Posts: 13
Posted: Tue, 2002-09-10 13:24
Quote:
Donate $10-20 to the Gallery fund and private messsage me your ftp hostname, username, password and I'll log onto your box remotely and fix the issue for you.

Thanks for the offer to fix things for me, but I'll have to admit I'm a little reluctant to give out my ftp password and donate money for something that doesn't work yet. I'm no expert, but I have managed to install a number of freeware and opensource solutions on my website and I have always been able to get things working on my own or with a little support from discussion forums like this. I have also been happy to pay or donate for solutions that work well and save me time and headaches.

Please don't take offence (I know how thankless projects like this can be), but if Gallery is going to be this much trouble to get up and running I have to wonder if it is the right solution for me.

Andrew

 
kdr

Joined: 2002-09-10
Posts: 3
Posted: Tue, 2002-09-10 15:39

Hi Andrew,

I noticed that the php info you gave says "safe-mode-enabled". I think I saw something as I was installing Gallery that it won't run with PHP in Safe Mode.

Hope this helps you,
Karen

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-10 17:59
Quote:
Thanks for the offer to fix things for me, but I'll have to admit I'm a little reluctant to give out my ftp password and donate money for something that doesn't work yet. I'm no expert, but I have managed to install a number of freeware and opensource solutions on my website and I have always been able to get things working on my own or with a little support from discussion forums like this. I have also been happy to pay or donate for solutions that work well and save me time and headaches.

Please don't take offence (I know how thankless projects like this can be), but if Gallery is going to be this much trouble to get up and running I have to wonder if it is the right solution for me.

When I used to offer to debug on site for free I found that I got deluged by people randomly mailing me their email and passwords without making any kind of effort to fix the problem themselves. So, now I raise the bar by making them donate some cash to demonstrate that they're actually serious about it.

Gallery poses a much more complex problem than most open source software because it has to execute other, separate programs in order to function which is a very difficult task to manage reliably. It is this particular functionality that is causing your problem. Since you don't have access to your logs and have only ftp access, you can't provide me any information about what's really going wrong. I have no idea how to help you except by experimenting with the code on your system. That kind of personal attention will take up my time, and I don't have a lot of that to give.

There are plenty of other programs out there that are like Gallery, you might find one of them easier to install and use...

 
arossphoto

Joined: 2002-09-05
Posts: 13
Posted: Wed, 2002-09-11 01:48
Quote:
Hi Andrew,

I noticed that the php info you gave says "safe-mode-enabled". I think I saw something as I was installing Gallery that it won't run with PHP in Safe Mode.

Hope this helps you,
Karen

Thanks for pointing this out Karen. I asked my server about this and here is their response: "I hate to break it to you but Safe Mode is enabled for PHP on yours and every account and cannot be disabled, sorry. It is a security risk without safe mode being enabled."

I wish someone had pointed this out sooner. I read the FAQ about running Gallery using PHP as a CGI, but I can see this creating more headaches and an even longer url to the galleries, which is something I wanted to avoid.

I guess I'll have to look somewhere else. :cry:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-09-11 03:23
Quote:
Thanks for pointing this out Karen. I asked my server about this and here is their response: "I hate to break it to you but Safe Mode is enabled for PHP on yours and every account and cannot be disabled, sorry. It is a security risk without safe mode being enabled."

I wish someone had pointed this out sooner. I read the FAQ about running Gallery using PHP as a CGI, but I can see this creating more headaches and an even longer url to the galleries, which is something I wanted to avoid.

Er, didn't Gallery tell you all about this on page 1 of the config wizard? v1.3.1 automatically detects safe mode and lets you know that there will be trouble so that you don't have to bash your head against the wall. If you're running v1.3.1 and it didn't inform you that safe mode is on, then this is a legitimate bug and it needs to be fixed.