I just upgraded a client's Gallery installation to v. 2.2.2 -- a supposedly minor security upgrade -- and now all the photo pages are 404 when viewed as embedded in Drupal. They are OK if viewed directly through Gallery.

It looks as though the URLs for the photo pages that are being generated on the album pages when viewed through Drupal are as they would be if seen directly through Gallery, but without the /gallery2/ portion of the path. So for example an album page is http://www.awesomewood.ca/?q=gallery&g2_itemId=174 but the photo pages on it have URLs like http://www.awesomewood.ca/v/refinishing/interior/DSCN1224.JPG.html -- which is basically exactly what it would be viewed through Gallery, but without the "/gallery2/" part, so they don't exist.

For the time being I'm going to downgrade the installation back to the previous version, but obviously that's not an ideal solution...

Comments

profix898’s picture

Category: bug » support

Do you still have this problem? Your second url (photo page) is a 'clean' one while the first (album page) contains /?q=. You should disable URLRewrite in G2 and check your gallery being functional again. I guess it will work correctly. You may then reenable URLRewrite and check for conflicts.

spidersilk’s picture

Priority: Critical » Normal

Sorry, I should have updated this. I did disable Gallery2's URL rewrite module, and that fixed it. But it does sound like there's a conflict between the current version of G2 (or at least that part of it) and this module, which should probably be fixed at some point.

I'll leave this open since the issue really still needs fixing so that other people don't run into it, but I've downgraded the priority to normal.

alexandreracine’s picture

Component: Code » Code / API
Status: Active » Closed (fixed)

4.7 is old.

------------
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)