Gallery 1.5.9: Only frames, no photo content shown after upgrade

Troilo

Joined: 2005-11-02
Posts: 11
Posted: Wed, 2009-02-25 20:14

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): not accessible by internet
Gallery version: 1.5.9
Apache version: 2.2.11-2
PHP version (don't just say PHP 4, please): 5.2.6.dfsg.1-3
Graphics Toolkit:
Operating system: Debian Linux Testing
Web browser/version (if applicable): Firefox

Hello,

after some upgrading in to 1.5.9 on my Debian linux boxes no photo is
shown any more. Only the comments and albums are displayed as frames
and I'm able to navigate through the whole gallery but any photo is
just displayed as a single frame.

When I look into the html source I see all the photos are referenced as

http://pichuco/albums/2005_Eibsee/dscn0006.sized.jpg

But the file exists relative to my Album directory /export/pool/Albums:

/export/pool/Albums:1> ls -al 2005_Eibsee/dscn0006.sized.jpg
-rw-r--r-- 1 www-data www-data 77482 Jan 23 2005 2005_Eibsee/dscn0006.sized.jpg
/export/pool/Albums:1>

I run the admin tools "Find Orphans" and "Validate Albums" without
success. .htaccess and Apache2 module mod_rewrite are enabled as I can
see from the configuration wizard.

I guess there's something wrong with my apache2 configuration because
I can't wget http://pichuco/albums/2005_Eibsee/dscn0006.sized.jpg

Any help would be greatly appreciated

Peter

[...]
<!-- image -->

<a name="image"></a>

<div class="g-photo" id="galleryImageFrame" style="margin: 0 auto; width:640px; height:480px; border: 2px solid red;"><a href="http://pichuco/gallery/view_photo.php?full=1&amp;set_albumName=2005_Eibsee&amp;id=dscn0006"><img id="galleryImage" alt="Hotel Eibsee" title="Hotel Eibsee" width="640" height="480" src="http://pichuco/albums/2005_Eibsee/dscn0006.sized.jpg"></a></div><div class="pview" align="center">
<!-- caption -->
<p align="center" class="pcaption">Hotel Eibsee<a href="http://pichuco/gallery/edit_caption.php?set_albumName=2005_Eibsee&amp;index=6&amp;gallery_popup=1" class="g-popuplink " onClick="javascript:nw=window.open(this.href,'Edit','height=550,width=600,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes'); nw.opener=self; return false;">[edit]</a>
</p>

<!-- Custom Fields -->

[...]

 
Troilo

Joined: 2005-11-02
Posts: 11
Posted: Wed, 2009-02-25 20:43

Sorry, just managed on my own:

Alias /albums <Album directory>

was missing in gallerys apache.conf.

Peter

 
designbysue

Joined: 2005-04-12
Posts: 81
Posted: Mon, 2009-04-13 16:44

Thank you Triolio for posting this and answering the question yourself. For others with this same problem, to make this easier to understand, you need to edit the config.php file within the Gallery directory. Look for the line that starts:

$gallery->app->albumDirURL = "http://www.yourwebsite.com/photos/";

add albums/ to the end of this line so it appears:

$gallery->app->albumDirURL = "http://www.yourwebsite.com/photos/albums/";

That fixed mine!

 
Magician742b

Joined: 2009-05-17
Posts: 7
Posted: Sun, 2009-05-17 16:17

That is exactly what is happening to my site!

Could you please repeat step by step exactly how you were able to get this fixed. I don't understand.

Thanks.