Gallery 2.1.1, Drupal 4.7.2 and gallery integration module

pishmishy

Joined: 2006-07-28
Posts: 4
Posted: Fri, 2006-07-28 15:10

I'm setting up my first installation of gallery and would like to integrate it with a new Drupal installation. This is a Debian system running PHP 4.3.10. My drupal install can be found at :

http://photo.freecharity.org.uk/

and my gallery install can be found at :

http://photo.freecharity.org.uk/gallery2/main.php

Following the links through Drupal and into the gallery something appears to be wrong. The link activated by clicking upon the image dsc_2829.jpg takes me to http://photo.freecharity.org.uk/v/dsc_2892.jpg.html which presents an error and not the page I'd expect.

I'm sure I've done something wrong with the .htaccess files and redirection but I can't place my finger on it. I've followed the troubleshooting instructions for this problem at http://codex.gallery2.org/index.php/Gallery2:How_to_Embed_Gallery2_in_Drupal but with no luck. Can anyone help?

Thanks in advance,

James

 
lanesharon

Joined: 2006-07-28
Posts: 8
Posted: Fri, 2006-07-28 15:36

I'm downloading and will be installing today. Same installs as you. If I find a similar problem/solution, I will let you know.

Take Care, Sharon

 
pishmishy

Joined: 2006-07-28
Posts: 4
Posted: Fri, 2006-07-28 15:54

Thanks, please let me know what instructions you were following and we'll see where we differ :-)

 
lanesharon

Joined: 2006-07-28
Posts: 8
Posted: Fri, 2006-07-28 21:52

Okay, I did it and got exactly the same results you did. Actually, for me the clickable link that is created is:
http://gates-chili-high.rare-cancer.org/v/me.JPG.html

And that URL gives an error, of course.

If I go into Gallery itself, the clickable link is:
http://gates-chili-high.rare-cancer.org/photo/v/me.JPG.html

The inner directory - photo - is missing within Drupal. 'Photo' is my G2 directory.

This could be the Drupal module or it could be the rewrite generation in G2. I have to look at it a little more.

Take Care, Sharon

 
lanesharon

Joined: 2006-07-28
Posts: 8
Posted: Sat, 2006-07-29 01:20

Nope, they are definitely not playing well together. I chuckle, because when I look through the posts here, this was tested but not with the last two versions.

I have Drupal 4.7.2
Gallery 2.1.1a

I have chmodded (to 666) and installed .htaccess files in every directory that has anything to do with Gallery on Drupal and G2. When I go to the Drupal Gallery screens and choose the Site Admin link (upper right), then choose URL Rewrite link (left column), then click on the 'test tab' (upper right), I get this error message under the 'Embedded .htaccess file" section:

Quote:
Embedded .htaccess file Error
Testing if Gallery can write to the embedded .htaccess file.

Please configure the embedded htaccess path.

This is being output by G2 in modules/rewrite/templates/ModRewriteTestResults.tpl:

Quote:
<td style="float: right; vertical-align: top;">
{if $TestResults.embedded.htaccess == REWRITE_STATUS_OK}
<h2 class="giSuccess"> {g->text text="Success"} </h2>
{else}
<h2 class="giError"> {g->text text="Error"} </h2>
{/if}
</td>
{if $TestResults.embedded.htaccess != REWRITE_STATUS_OK}
</tr><tr>
{if $TestResults.embedded.htaccessPath == '/.htaccess'}
<td>
<div class="gbBlock">
<p class="giDescription">
{g->text text="Please configure the embedded htaccess path."}
</p>
</div>
</td>

I am not sure which .htaccess G2 is checking at this point, but it must be coming from G2 because that is where the error message is being outputted from.

Take Care, Sharon

 
lanesharon

Joined: 2006-07-28
Posts: 8
Posted: Sat, 2006-07-29 06:32

It is 3 a.m. and I have been beating this problem to death. I have tried everything I can, from a user point of view. They just do not work together. I can get one side, or the other, working. But, never together. Frustrating! I have tried everything in the documentation, and in the forums here and on Drupal. Still sitting at 'square one'. Maybe I'll just run it un-embedded.

Take Care, Sharon

 
pishmishy

Joined: 2006-07-28
Posts: 4
Posted: Sat, 2006-07-29 10:38
Quote:
have chmodded (to 666) and installed .htaccess files in every directory that has anything to do with Gallery on Drupal and G2. When I go to the Drupal Gallery screens and choose the Site Admin link (upper right), then choose URL Rewrite link (left column), then click on the 'test tab' (upper right), I get this error message under the 'Embedded .htaccess file" section

I get exactly the same :(

 
pishmishy

Joined: 2006-07-28
Posts: 4
Posted: Sat, 2006-07-29 11:11

I think my friend has managd to fix it. In the URL rewrite settings in Gallery he changed the htaccess path to /home/james/photo which is where my Drupal install resides.

 
lanesharon

Joined: 2006-07-28
Posts: 8
Posted: Mon, 2006-07-31 19:11

I don't think that I can compare my settings to yours. I realized that you are running your website through a subdomain. It would be like comparing apples and oranges. Thanks and take care, Sharon

 
technerdy
technerdy's picture

Joined: 2010-02-09
Posts: 1
Posted: Tue, 2010-02-09 04:28

Man I was hoping I would find an answer to this at the end of this thread!
Yet nothing...mmm...

Oh well

Regards,

Pedro De-Angelo

 
bobmorton

Joined: 2010-10-11
Posts: 2
Posted: Mon, 2010-10-11 03:27

Same here. I'm trying to use this