Upgrading Gallery embedded in Drupal - Click goes to Drupal Header & Menu

StephenW
StephenW's picture

Joined: 2005-12-23
Posts: 9
Posted: Sat, 2006-10-07 18:39


Present condition:


I am able to log into the gallery, but the problem is the same whether I log in or am logged out. Whenever a visitor, using MS IE v6, comes to the standalone Gallery, it looks as it should, all the thumbnail pictures for the albums show, which you can see at the following link. After going to the following Gallery 2 main page, click on any of the thumbnail album pictures.>>>>: http://www.winterssewing.com/drupal/gallery2/main.php (Note, when I used Firefox version 1.5.0.7, no pictures showed.) The main problem presents itself whenever you try to go into the gallery by clicking on any picture. The correct URL for the picture album shows in the Address line, but instead of showing the pictures in the chosen album, every link goes to the header and menu of my home web page. (To see what I mean, click on the above link and go to the standalone Gallery 2 site. Click on any of the album thumbnails, it will only show the header of my website.


Gallery 2 History


Had originally installed Gallery 2.0 (which was embedded in Drupal 4.63
Later, when upgraded to Drupal 4.7x, also upgraded to Gallery 2.1.1a (I had to work through some errors this upgrade and finally got it working.)

(I'm not sure,but I may have upgraded to 2.1.1 when it came but at this time the "creating thumbnails when upgrading" didn't work. (Gallery 2 couldn't find the GD libraries or ImageMagick))

Within the last week, hoping that the new installation would would be able to find the image librariess, etc. I upgraded to Gallery 2 version 1.1.2. Now,even though the album pictures on the front of the standalone Gallery2, and I can log in, I can't even navigate inside the albums, or into the admin section. Every time I click on an album, or click on the admin link, even though the URL address shows correctly, the Drupal header and menu block show up with a blank page. Go here and see: http://www.winterssewing.com/drupal/gallery2/main.php

One note, the pictures in my Drupal website (which Gallery 2 in embedded within) do show as they are supposed to. (go here to see that the pictures show: www.winterssewing.com/drupal)

Before I did the upgrade I had made a complete backup of my entire website. I also made a backup of the Gallery 2 MySQL database.

Before I attempted the upgrade, as a test, I did a clean installation (with a new MySQL database) of Gallery 2.1.2 into an empty test directory to see if everything was going to work. This test installation worked fine. However, when I did the upgrade, using the existing MySQL database, the installer went through the upgrade process. I'm wondering if there is something either in the database, or in the Drupal 4.7 Gallery2 embedded feature causing this.

If I can't fix it soon, I'm considering just using the Full Backup to just restore the website back to it's previous condition.

Any ideas of what to do now?

Thanks,
Stephen


Gallery version (not just "2"): 2.1.2
PHP version (e.g. 4.3.11): 4.4.3
Webserver (e.g. Apache 1.3.33): 1.3.37
Database (e.g. MySql 4.0.11): MySQL 4.1.21-standard
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 1.0): MS IE 6

Stephen W.
www.winterssewing.com/drupal
Gallery 2 Embedded in Drupal 4.7x
Upgrading Gallery from 2.1.1(a?) to 2.1.2
Using Cpanel version 10.8.2-Release-83
CPanel Pro Version 1.0 (RC36)
Apa

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-10-07 19:04

first, i went to your standalone g2.
i saw that thumbnails don't show.
i looked at the html source code of your page and found a link to one of the thumbnails.
i entered the address in the browser to see what happens if i try to fetch the thumbnail. i used: http://www.winterssewing.com/drupal/gallery2/d/2897-2/vidslide.jpg
-> it shows a drupal page instead of the thumbnail.

clearly, it's a URL rewrite / short URLs / mod_rewrite issue.
the mod_rewrite rules from drupal (probably in drupal/.htaccess) are interfering with g2's mod_rewrite rules.

if you disable the short urls in drupal and g2, it will work again.

gallery.menalto.com shows that one can configure short urls such that they work for drupal and g2 at the same time without interfering.
but i didn't do the setup.
maybe a drupal / g2 guy can help you there.

moving the topic to the integration forum.

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sat, 2006-10-07 21:26
 
StephenW
StephenW's picture

Joined: 2005-12-23
Posts: 9
Posted: Sun, 2006-10-08 19:32
valiant wrote:
first, i went to your standalone g2.
.......clearly, it's a URL rewrite / short URLs / mod_rewrite issue.
the mod_rewrite rules from drupal (probably in drupal/.htaccess) are interfering with g2's mod_rewrite rules.

if you disable the short urls in drupal and g2, it will work again.

Valiant,
Thank you so much for giving me some ideas about what the problem is. I didn't have a clue what was wrong or how to fix it. Your explanation has at least given me some direction about fixing the problem. Thanks a bunch.

Kiz,
Thanks for the link to "how to configure URL rewrite". That helps me know where to go to find answers.

Best Wishes,
Stephen W.
www.winterssewing.com/drupal