I recently upgraded from Drupal 4.6+embedded Gallery 2.0 to Drupal 4.7+embedded Gallery 2.1

It was not plain sailing. However I now have it working fine with a couple of peculiarities.

1. Neither Drupal nor G2 breadcrumbs work within embedded G2 pages. The HTML looks fine and correctly linked, but mousing over them gives no path. This is just bizarre.

2. I cannot get Drupal URL aliases to work with embedded G2 URL's.

EG with the old versions, I had a URL alias
'mypics', which pointed to 'gallery/admin/mypics/'

with the new versions the path has changed to 'v/admin/mypics'. This works fine as a direct URL entered into the browser, but if I alias 'mypics' to 'v/admin/mypics/' I get a 404 when I try and use the aliased URL 'http://mysite.com/mypics'.

Other non-embedded-G2 url aliases work fine.

G2 was and is located at http://mysite.com/gallery2, with Drupal in the root.

Any ideas please?

Comments

halftone’s picture

Title: Embedded G2 & URL aliases not working » Embedded G2 : Drupal URL aliases not working

I really would appreciate some help with this. I cannot for the life of me see what is wrong.

G2.1 works fine, standalone and integrated (4.7)

http://mysite.com/v/admin/demo works fine.

With a URL alias of 'demo' to 'v/admin/demo' http://mysite.com/demo gives 'page not found'.

Used to work fine in G2.0 with 4.6.

rubicon9’s picture

I disabled URL Rewrite within G2. I Could access the albums from Drupal after that. I'd like to find a fix too. I didn't mess with the Rewrite settings in G2. That might correct the look.

halftone’s picture

I'm reluctant to do that, not least because it did all work fine with 4.6 & 2.0.

What's more the paths in the browser bar are correct, and if I type the URL it works. It's just that when I create a Drupal alias for the exact same path, it fails to find the page from the aliased URL. Is that the problem you have too?

Can be seen not working at http://tonysleep.co.uk/demo (login 'demo' 'demo')
Or working via http://tonysleep.co.uk/g2/demo (I've changed the 'v' parameter to 'g2', but didn't work with 'v' either)
The Drupal alias is g2/demo for demo. (But I also tried /g2/demo and /g2/demo/ and g2/demo/ )

The problem here is that I have several clients for whom I maintain G2 libraries of commissioned work and the URL they know and understand is nice and simple http://tonysleep.co.uk/clientname. The un-aliased path is more complicated g2/admin/clientlibs/clientname and will scare them to death.

I don't understand why the whole breadcrumb - both G2 and Drupal - appears as links, and the HTML looks fine, but mousing over or clicking either gives no path. Have to suspect they are in some way related. URL aliasing and breadcrumbs work fine outside embedded G2. Anyone else seen dead breadcrumbs?

halftone’s picture

Weirder still, I have now discovered the breadcrumb links work fine in MSIE7. But not at all in Firefox 1.5.0.11 on 2 different PC's.

Drupal aliases don't work though, in either browser I get page not found for the exact same path that works fine un-aliased in the browser address bar. Has anyone got the slightest idea how or why? It's just bizarre.

alexandreracine’s picture

Status: Active » Closed (fixed)

------------
Please look at the latest version first!
Feel free to reopen and put the 6.x version if so.

http://drupal.org/project/gallery

Closing (cleanup)