I'm having an issue with my embedded Gallery2 installation.

It's very important that I'm able to locate a solution ASAP as this site needs to be online...now... :-\

I was successfully able to embed G2 into my Drupal 5.10 environment, however whenever I click on my album thumbnails within the embedded environment, the link carries me to a blank page where I had set up my Demo Content. The pictures do not open up within the Drupal environment at all.

My Drupal installation is within /root
My Gallery2 installation is within /root/pictures

Within the embedded environment, I accessed the G2 settings and changed the URL rewrite values--as per the instructions--from v/%path%/ to pictures/v/%path%/. This hasn't helped. As a matter of fact, what has happened is that the URL rewrite values inside the standalone have changed to pictures/v/%path%/ so the standalone as the files located at /root/pictures/pictures/v/albumname and the embedded environment is pointing to /root/pictures/v/albumname (which is what the ORIGINAL values were!!!) ...

Can someone please explain why this is happening and what I need to change to make this work?

My .htaccess file from the Gallery2+Drupal integration:

# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_URI} !/index\.php$
    RewriteRule .   -   [L]

    RewriteCond %{THE_REQUEST} /pictures/v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/index\.php$
    RewriteRule .   /index.php?q=gallery&g2_path=%1   [QSA,L]
</IfModule>

And my .htaccess information from the Gallery2 standalone

# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /pictures/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_URI} !/pictures/main\.php$
    RewriteRule .   -   [L]

    RewriteCond %{THE_REQUEST} /pictures/pictures/v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/pictures/main\.php$
    RewriteRule .   /pictures/main.php?g2_path=%1   [QSA,L]
</IfModule>

# END Url Rewrite section

I'm pretty sure I'm missing something very simple. Just not certain what that is!
Thank you...
NickNick

Comments

lvthunder’s picture

You need to change the G2 rewrite rules to be /gallery/v not /pictures/v.

steinmb’s picture

Did this fix the issue?

nicknick2008’s picture

My G2 rewrite rules for the Embedded URL Rewrite Admin are now at v/%path%...As they were initially....
So, I really don't know what happened. I remember sending in a support ticket to my host (HostRocket) asking about the redirection/rewrite and they had to make a change for me in my mod_rewrite Apache module, I believe...

I don't understand what they did, but it works now...
I will try to get as many details as possible so that I can share it with anyone else who had this problem.

steinmb’s picture

I'm trying to find out what are supported/work and what is not. Can anyone confirm that /v/%path% is mandatory to make this work? We need to update the wiki doc for the Gallery2/drupal integration.

Can you use:/%path% (omitting the v, do we really need it, is if so, why?)
/pictures/%path% (Renaming path to your gallery. example.com/pictures insted of example.com/gallery)

--
Steinmb

steinmb’s picture

Status: Active » Closed (fixed)

Closed due to inactivity