Links all pointing to Gallery

paper-tiger

Joined: 2008-07-12
Posts: 2
Posted: Sat, 2008-07-12 19:23

This is probably a very simple problem, but it has me stumped.
My site is oak.paper-tiger.org. Brand-spanking-new installs of WP 2.5.1, Gallery2 2.2.4 and WPG2 3.0.6.
In the sidebar, all of the links to my published Pages, Archives, and Categories link to the Gallery, regardless of what the actual link should be, and retaining the correct link in the address bar.
I've tried publishing and unpublishing, and changing the order these are linked in. Nothing has helped this, so far.
Has anyone encountered this? I've looked through the archives, but it seems to be either a unique problem or one so simple others haven't bothere to ask. :/
If anyone has an idea what could be going wrong, I would be very grateful for a suggestion.

Edited to add: I'm still not sure what caused the error in the first place, but deactivating and reactivating the plugin (yet again) seems to have solved the problem, at least for now.

 
paper-tiger

Joined: 2008-07-12
Posts: 2
Posted: Sat, 2008-07-12 19:31

Upon forther investigation, EVERY link on the site (except those going to the admin area of WP, and the "Meta" links) go directly to the main page of Gallery. What in the world?

 
rynosoft

Joined: 2008-07-13
Posts: 3
Posted: Sun, 2008-07-13 03:41

I have this same problem. I had to disable WPG2 to make it go away.

 
rong

Joined: 2008-07-13
Posts: 3
Posted: Sun, 2008-07-13 07:48

I also have this problem, disabling WPG2 was the only solution. For example: http://example.com/feed should have gone to the RSS feed for WordPress, but instead shows the main page of the Gallery.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2008-07-14 03:40

The issue you are all seeing would be caused by a conflict between Wordpress and Gallery2. If you deactivated the Gallery2 Rewrite plugin via WPG2 Gallery2 Rewrite Tab you should find all your links would now correctly point back to Wordpress. The warnings in the tab clearly state to look out for this kind of behaviour.

Unfortunately this is an environmental issue not a WPG2 issue..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
rynosoft

Joined: 2008-07-13
Posts: 3
Posted: Tue, 2008-07-15 01:46

With all due respect, the "Gallery2 Rewrites" page does NOT warn about anything like this. Besides, I did NOT have URL rewrites turned on in the plugin and I still saw the problem.

Could you be more specific about the environmental issue?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-07-15 02:12
rynosoft wrote:
With all due respect, the "Gallery2 Rewrites" page does NOT warn about anything like this.

From the Gallery2 Rewrite Tab.

Warning: Do not Activate until you have read the following:
Gallery2 simplified URLs may not correctly function in your hosting environment. If you experience any problems (EG: 404 Errors) when navigating to your photos or albums, then please deactivate this setting.

rynosoft wrote:
Besides, I did NOT have URL rewrites turned on in the plugin and I still saw the problem.

Could you be more specific about the environmental issue?

Both Wordpress and Gallery2 have a series of rules that transform the URL into something more SOE / Human Friendly. Unfortunately at times getting both sets of rules to play together is problematic, keeping in mind that Wordpress permalinks rules where never designed to play well with others.

When you activate Gallery2 Rewrite Plugin then some of the critical Gallery2 rewrite rules are added into the Wordpress Permalink rule set to prevent Wordpress from returning a 404 error.

If you are using a custom Wordpress permalink rule, then the issue you are experiencing could be due to an invalid greedy (that is the rule matches to many conditions) and the Wordpress Codex has some great help regarding proper rules creation.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
rynosoft

Joined: 2008-07-13
Posts: 3
Posted: Tue, 2008-07-15 19:22

First, let me thank you in advance for your time and apologize for being somewhat of a n00b with these things.

ozgreg wrote:
Both Wordpress and Gallery2 have a series of rules that transform the URL into something more SOE / Human Friendly. Unfortunately at times getting both sets of rules to play together is problematic, keeping in mind that Wordpress permalinks rules where never designed to play well with others.

Should there be a conflict if the root path for each installation is unique? For example, my blog is at mydomain.com/blog while the gallery is at mydomain.com/gallery. Can the URLs still get confused between the two? If so, is it because of the .htaccess file(s)?

ozgreg wrote:
When you activate Gallery2 Rewrite Plugin then some of the critical Gallery2 rewrite rules are added into the Wordpress Permalink rule set to prevent Wordpress from returning a 404 error.

Are you talking about the WPG2 setting to enable URL rewrites? Or are you talking about a setting within my Gallery2 installation?

ozgreg wrote:
If you are using a custom Wordpress permalink rule, then the issue you are experiencing could be due to an invalid greedy (that is the rule matches to many conditions) and the Wordpress Codex has some great help regarding proper rules creation.

I do have a custom permalink rule (/%year%/%monthnum%/%postname%) but it seems to be valid according to what I read in the Codex.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-07-17 04:38

rynosoft,

FYI: WPG2 turns off or on the Gallery2 Rewrite Plugin, disabling the Gallery2 rewrites in WPG2 will turn the Gallery2 Rewrite Plugin Off

I just tried that permalink setting on my WPG2 Testbed and did not experience any 404 errors nor did I experience the issue regarding not being able to access other pages.. thus I got to return back to my original assumption that your issue is environmental not WPG2 related not that this helps you much as diagnosing permalink issues is painful to say the least..

Just for the heck of it, try selecting another permalink rule and see if you get the same kinds of issues..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo