I have just successfully installed Gallery onto Powweb web site, but have no icons on the homepage (i.e.,not photos but Gallery icons), simply "x" icons (denoting no icons).
I obviously missed something in either uploading Gallery or in configuring it, but can not figure out what it might be.
Any suggestions?
Thanks for your thoughts.
orloman
------
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):
Gallery version:
Apache version: 1.3.27
PHP version (don't just say PHP 4, please): 4.3.1
Operating system:
Web browser/version (if applicable):
:???:
Posts: 8194
FAQ C.15
Posts: 13
Thanks for the reply, but I believe you misunderstood my problem. I had checked the FAQs but they don't apply to my problem. You see, I don't have a problem with uploaded photos not showing up but rather the basic "Gallery icons" which are located in the "Image" directory of the "Gallery" directory on my web site. For some reason they are not loading when I log onto the startup page of Gallery. I have not even attempted to upload my photos yet.
Posts: 524
you need to double check your URL paths in the config.php file more than likely they are wrong.......
Posts: 3473
I think Nick is probably right. Check your $gallery->app->photoAlbumURL in config.php.
If that's not the problem, share the URL so we can have a look.
Posts: 13
Thanks for getting back with me so soon.
I'll give my URL: http://www.paduaprephotos.com/cgi-bin/gallery/index.php
As it is set up currently that address will put you into configuration mode (since I uploaded via ftp), so if you wanted to see the actual Gallery site front end, I'd have to change the chmod on config.php file and on the setup directory.
Thanks again
orloman :smile:
Posts: 3473
That looks fine to me, certainly the url is ok. I'm heading out for the day, but I think you should take it out of config mode, so people can see your symptoms.
Posts: 3473
I think you need to move it out of the cgi directory:
<!-- BBCode Start --><A HREF="http://www.paduaprephotos.com/cgi-bin/gallery/images/nav_dot_right.gif" TARGET="_blank">http://www.paduaprephotos.com/cgi-bin/gallery/images/nav_dot_right.gif</A><!-- BBCode End -->
Posts: 13
Thanks, Joan and Nick for your input.
I've set my web site Gallery out of configure mode so you can see my problem: http://www.paduaprephotos.com/cgi-bin/gallery/index.php
Any ideas to fix the problem are welcome.
With gratitude,
orloman :smile:
[edited URL to add missing ".com" --joyoflinux]
Posts: 8194
The problem is that your server is trying to execute the image (see the error here: http://www.paduaprephotos.com/cgi-bin/gallery/images/nav_dot_right.gif ). Gallery doesn't need to be in cgi-bin/ unless you're running PHP as a CGI (are you?). Try moving Gallery out of the cgi-bin/ directory so that this doesn't occur...
Posts: 13
joyoflinux,
The web host server (Powweb) is running PHP as CGI so that is why I put it in the cgi-bin. I originally had it out of the bin, but it didn't work.
orloman
Posts: 3473
As you see if you click on the links Joyof or I provided, that images in your cgi-bin directory don't work. You'll have to move the images out of this area, to somewhere else, and change the source files to point to where it is now.
Here are all (I think) of the lines that you'll need to change:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> albums.php:$imageDir = $gallery->app->photoAlbumURL."/images";
captionator.php:$imageDir = $gallery->app->photoAlbumURL."/images";
gallery_slideshow.php:$imageDir = $gallery->app->photoAlbumURL."/images";
gallery_slideshow_low.php:$imageDir = $gallery->app->photoAlbumURL."/images";
slideshow.php:$imageDir = $gallery->app->photoAlbumURL."/images";
slideshow_low.php:$imageDir = $gallery->app->photoAlbumURL."/images";
layout/adminbox.inc:$imageDir = $gallery->app->photoAlbumURL."/images";
layout/breadcrumb.inc:$imageDir = $gallery->app->photoAlbumURL."/images";
layout/commentdraw.inc:$imageDir = $gallery->app->photoAlbumURL."/images";
layout/navigator.inc:$imageDir = $gallery->app->photoAlbumURL."/images";
layout/navphoto.inc:$imageDir = $gallery->app->photoAlbumURL."/images";
layout/searchdraw.inc:$imageDir = $gallery->app->photoAlbumURL."/images";
</TD></TR></TABLE><!-- BBCode End -->
Posts: 13
Joan,
Thanks for the feedback. Your suggestion does make sense. However, my abilities to execute it are being stretched to their limits... but I'll try.
I do have two questions:
1. The code that you provided which needs to be changed: what file or files do I find that
in?
2. For sake of argument, if I take the "image" directory out its current position within the
cgi-bin (/cgi-bin/gallery/images), and put it outside the cgi-bin (say, in the directory
that gallery itself is in), how would that change look in code?
Thanks for bearing with me.
orloman :grin:
Posts: 3473
Different filenames. The filename is at the start of each line.
[assuming the images are at http://www.paduaprephotos.com/gallery_images]
take the last line from above
layout/searchdraw.inc:$imageDir = $gallery->app->photoAlbumURL."/images";
Open layout/searchdraw.inc, find the line
$imageDir = $gallery->app->photoAlbumURL."/images";
and replace it with
$imageDir = "http://www.paduaprephotos.com/gallery_images";
Repeat for each of the lines, and see how the gallery looks.
Posts: 13
Joan,
Thanks for the directions! For a neophyte in this area I am actually able to follow your help.
First of all, I only found 10 of the 12 files you noted. I could not locate gallery_slideshow.php or
gallery_slideshow_low.php
Secondly, I did find the code line you stated
($imageDir = $gallery->app->photoAlbumURL."/images") in only 9 of the 10 files I had. For the albums.php file the closest code line I could find was: $gallery->app->photoAlbumURL ?>/images/
There was no $imageDir = $gallery->app->photoAlbumURL."/images" for the albums.php file. I don't know if this is significant.
Could the Gallery software which I am downloading be getting corrupted when it finally is decompressed on my computer? I've downloaded at least 3 different times and reinstalled it 3 different times on my server, and each time have the same problems.
Thanks for your persistant help.
orloman
:smile:
Posts: 3473
As you can see: I did this off my heavily modified gallery. If you've made what changes you can, and it looks ok, I'd be happy.
Your gallery code is unlikely to be corrupt, as you'd get messy errors if it was, not working (but different) code.