Gallery2: Page not found on drupal site

Haggle - December 17, 2007 - 17:41
Project:Gallery
Version:6.x-1.0
Component:Installation / Configuration
Category:support request
Priority:minor
Assigned:Unassigned
Status:closed
Description

Since the latest upgrade to drupal core 5.5 and newest gallery module all the status says its ok but when I click a album i get "page not found". I'm not sure why it would be doing this seeing as nothing really changed. I will be trying to downgrade to see if it fixes the problem but any suggestions would be appreciated.

#1

Haggle - December 17, 2007 - 17:58

Issue fixed under

Upgrading Gallery to 2.2.2 breaks photo page URLs

#2

lvthunder - December 17, 2007 - 18:47

Check your .htaccess file. When I upgraded the G2 stuff didn't get put back in the .htaccess file.

#3

sugiggs - December 28, 2007 - 10:22

upz....

having same problem here....

Drupal 5.3 + Gallery 2.2.4

See my under development site: http://www.gerejaoikos.net/gallery

please advise..

#4

sugiggs - December 28, 2007 - 14:43

solved... forgot to do the .htaccess part... (er... I didnt understand before actually)

#5

acheun - January 13, 2008 - 11:15
Version:5.x-2.x-dev» 5.x-2.0
Component:Module: Gallery Content» Installation / Configuration

I got a same error message. But not sure it's same issue.

I've tried to install and configured Gallery2 a few times. Drupal can create link of the photos from Gallery2, but cannot load the picture from Gallery2. The pictures in Gallery2 standalone is fine.

The message in Drupal log as follows:

Type page not found
Date Sunday, January 13, 2008 - 21:04
User admin1
Location http://venus1.cheung.home/gallery2/d/69-2/fb0b.jpg?g2_GALLERYSID=8cad98d...
Referrer http://venus1.cheung.home/admin/logs
Message main.php
Severity warning
Hostname 192.168.100.7

Gallery2 standalone is installed as a subdirectory under the DocumentRoot.
Version of Gallery2 standalone is 2.2.4, Drupal is 5.5

#6

dpoliteski - February 8, 2008 - 07:42

Hi, I was just wondering if you could please elaborate about this. This problem is the Page Not Found error with Drupal/Gallery issue. I am having problems and likely .htaccess issues, just wondering how it should look and what needs to get put back in the .htaccess. Is this the Drupal .htaccess and not the Gallery2 .htaccess?

Thanks.

#7

acheun - February 11, 2008 - 10:33

I don't remember I've ever touched any .htaccess when I install both Gallery2 and Gallery2 module for Drupal. All I did just follows the instruction.

I had wipe out my test server and restart the thing again. I'll post further after I reinstall the thing if it still has the problem or it goes away.

#8

SunflowerMission - February 16, 2008 - 17:19
Title:Page not found» Gallery2: Page not found on drupal site

my drupal's photo gallery2 has been running fine until recently (gallery site is working but when clicking on the gallery 2 image block, the page not found came up). is ther a solution for this?

http://phogo.sunflowermission.org is fine

but if go to drupal site and click on one of the images, page not found came up:

http://vietnameducation.org/v/2007/RocXay/sunflower_mission___2_320.jpg.... (or just go to http://vietnameducation.org then click on the image block)

thanks

#9

know1normal - March 18, 2008 - 14:54

What was the .htaccess part? I have similar issue.
Gallery2 installation looks good and works
Itegration all looks good.
Images show only placeholders; when selecting an image page not found;

#10

lvthunder - March 20, 2008 - 14:40

The beginning of the .htaccess file starts like this

<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} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/index\.php$
    RewriteRule .   /gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3   [QSA,L]
    RewriteCond %{THE_REQUEST} /key/([^?/]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/index\.php$
    RewriteRule .   /index.php?q=gallery&g2_view=keyalbum.KeywordAlbum&g2_keyword=%1   [QSA,L]
    RewriteCond %{THE_REQUEST} /v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/index\.php$
    RewriteRule .   /index.php?q=gallery&g2_path=%1   [QSA,L]
</IfModule>

#11

firestone - March 29, 2008 - 17:11

Hmmm everything seems to work just fine and the thumbnails show up at my drupal-site, but when i click the thumbnail i get the "Page not found" error....

My site is installed in www.example.org/drupal/ and the real path to Gallery2 is www.example.org/drupal/gallery2
When i click the thumbnail the browser points me to www.example.org/drupal/v/00591_calmafterthestorm_1024x768.jpg.html and gives me the Page Not Found-error.
If I edit the url to www.example.org/drupal/gallery/v/00591_calmafterthestorm_1024x768.jpg.html the image appears and everything is fine and integrated with Drupal.

Where can I edit what url that should be connected to the thumbnail? I think this is the only problem left on my site. Noticed that the rest of you have solved this problem.....

#12

iggi - April 8, 2008 - 04:17

I'm having the same issue as #11 above.
Is there a way to fix this without manually configuring the htaccess file?

Thanks!

#13

raplom - May 9, 2008 - 12:27

Hi,

I was having this problem but found an answer on:
http://drupal.org/node/74090
You need to disable url rewrite in gallery admin.

This worked for me hopefully it'll help you out.

#14

yareckon - July 15, 2008 - 01:43

OK, so I have the same issue.

An answer that works without turning off clean urls is to make sure that your gallery url is properly set under "Show Item " on this gallery config page:

http://yoursite.com/index.php?q=gallery&g2_view=core.SiteAdmin&g2_subVie...

for instance, my gallery installation "embed URI" (find it under the gallery2 drupal settings screen >> install tab >> step2 fieldset, is
/index.php?q=gallery

so my "Show Item" rewrite rule should be:
gallery/v/%path%

The /v/%path% part is in there already, so just add whatver you have after the q= from the page above.

There is even an almost invisible warning to do this that shows up on the gallery2 integration module install page :), but alas, it's almost invisible.

#15

alexandreracine - March 24, 2009 - 03:13
Status:active» closed

Reopen if needed. Cleaning up old stuff.

#16

TrickerTreater - September 23, 2009 - 13:54
Version:5.x-2.0» 6.x-1.0
Priority:normal» minor

None of the above solutions worked for my site. The only thing that solved the problem was going to http://www.mysite.com/gallery2/upgrade/index.php and running through the steps. Why? I have no idea.

 
 

Drupal is a registered trademark of Dries Buytaert.