Drupal<->Gallery2: Standalone Gallery2 -> shows images / Integrated in drupal -> no images

Mastermarx

Joined: 2005-10-14
Posts: 3
Posted: Fri, 2005-10-14 15:15

Hello drupal folks,

I read a lot of postings, but I didn't find an answer for my problem.
First of all: drupal and Gallery are a great piece of software. But as a Newbie there are a lot of quetsions.
I have installed drupal 4.6.3 and gallery2 some day ago. Standalone both works fine. I installed the gallery into a subdirectory of drupal.

My Problem:
In the integrated Gallery I didn't see any images.

Link to the Gallery (standalone)
http://www.mastermarx.de/drupal/gallery2

Link to the same Gallery in drupal (standalone)
http://www.mastermarx.de/drupal/gallery

Link to phpinfo:
http://www.mastermarx.de/info.php3

If I extract the path to the images out of the HTML Code it looks like this:
http://www.mastermarx.de/drupal/gallery/1043-2/pfadis.jpg?g2_GALLERYSID=d5fcfee3e3888f72ac9fbc25431887da

That looks fine for me. But I get an error message if I put the path into the browser:
Error (ERROR_MISSING_OBJECT) : ......

I guess there is something wrong with the rewrite rules in drupal?!

Any ideas? Sorry for my hororable English.

Andreas

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Fri, 2005-10-14 16:03

Looks to me like there is something wrong with your G2 rewrite rules. The links work, but you do not have thumbnails. This is probably because you did not disable rewrite rules in G2 for everything but the 'Show Item' rule. I think this as your thumbnails also show that the URL has been rewritten -- which it should not have been.

Check http://codex.gallery2.org/index.php/Gallery2:How_to_Embed_Gallery2_in_Drupal for how to set up the rules correctly.

 
Mastermarx

Joined: 2005-10-14
Posts: 3
Posted: Fri, 2005-10-14 16:33

Hi kiz_0987,
thank you for quick respond.

I made a Screenshot of the rewriterule setting in Gallery2:
http://www.mastermarx.de/rewrite.gif

Here are the configuartions of the drupal rewrite rules in the .htaccess file:
http://www.mastermarx.de/htaccess.txt

I think that is right.
The gallery in standalone mode works fine. Therefore should be something wrong in drupal. Or not?

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Fri, 2005-10-14 17:11

OK, this makes it clear. You can only have the "Show Item" rule active. All the other ones have to be inactive. Maybe sometime someone will figure out how to use the other rewrite rules, but for now no.

 
Mastermarx

Joined: 2005-10-14
Posts: 3
Posted: Fri, 2005-10-14 17:18

That fixed it :-)
It works:
http://www.mastermarx.de/drupal/gallery
Thank you very much!

 
stonie09

Joined: 2006-04-20
Posts: 1
Posted: Thu, 2006-04-20 10:47

Hello,

my problem is similar.

Drupal 4.6.6 is installed in "cms/". Gallery2.1.1 is installed within a subfolder of Drupal "cms/gallery2". gallery.module is installed and activated with the peferences Location: "gallery2/" and Location of Drupal: "/". Short URLs are active for Drupal like also Gallery2 and those work standalone. All the Rewrite Rules are deactivated but "show item" is active with the preferences "gallery/%path%" . Gallery .htaccess and Embedded .htacces are respectively writeable.

The links of the gallery work fine, only the pictures and thumbnails are not displayed. BTW: I have installed Drupal not in "root" but in a subfolder of root.

Does anyone know what the problem is? Thanks in advance.

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Thu, 2006-04-20 15:46

stonie09. Can you please PM me a link to your site and I'll take a look.

 
STLPB

Joined: 2006-04-24
Posts: 6
Posted: Mon, 2006-04-24 18:09

Son of a biscuit eater. I was working on this for hours.

Lesson learned: IN THE URL_REWRITE SCREEN, DISABLE ALL OPTIONS EXCEPT FOR THE "SHOW ITEM" OPTION

*sigh