WPG2 WordPress link returning a 404

besson3c

Joined: 2005-09-05
Posts: 28
Posted: Mon, 2007-11-05 02:00

Rather weird problem here...

Clicking this link in one of my blogs attempts a redirect to wp-admin/install (which returns as a 404 error), yet this same link works just fine in another blog of mine on the exactly same WP and Gallery code base. This is with WP 2.3, Gallery 2.2.2, WPG2 3.0.2.

What sort of problem would cause WordPress to attempt a redirect to wp-admin/install? I've run wp-admin/upgrade.php and it says my DB is up-to-date...

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Mon, 2007-11-05 02:11

btw, you should upgrade to G2.2.3 and WordPress 2.3.1 when possible.

have you compared the contents of the .htaccess files in ~/path/to/wordpress-1/ and ~/path/to/wordpress-2/ ?
what about the ones residing in ~/path/to/gallery2-codebase/ which would make me think you're using G2 multisites.

on both WordPress sites, does Manage > Pages > show the WPG2 page?
other than the default values created upon plugin activation, have you done any customization within the menus provided under WordPress > Options > WPG2 ?

_________________
http://myg2.org/

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Mon, 2007-11-05 02:18

Just to be clear, one blog *is* working with WPG2, the other isn't. It sounds like I created the impression that they both weren't working...

I don't have WPG2 as an option under WordPress > Options, my WPG2 is only in my top level button bar.

I don't have an htaccess file in either WordPress or Gallery's codebase directories, I'm not using any mod_rewrite URL rewriting in either. I do have my WPG2 page appearing under Manage > Pages.

I'll try the Gallery upgrade in just a little bit...

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Mon, 2007-11-05 02:22

does the problem exist even if you revert to an unmodified default WordPress themes and disable all plugins except WPG2?

_________________
http://myg2.org/

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Mon, 2007-11-05 02:41

I got the page to load by copying the wpg2 data from the wp_options table from my working blog into my non-working blog. This is clearly some sort of bug with the plugin affecting fresh/clean installs...

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Mon, 2007-11-05 04:31

Thanks for all of your help BTW! :)

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2007-11-05 22:34

I tried plenty of fresh installs without any issues.. It could be a corruption that was still getting into your WPG2 Options Archives thus surviving deactivation/reactivation..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Tue, 2007-11-06 03:19

If by corruption you mean gibberish, the serialized data looked clean... I should have saved a copy of this data for you to see, sorry!

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-11-06 22:08

Yeah that would have been good, I cannot reproduce your issue on a clean install...
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation

 
diablo581

Joined: 2008-02-05
Posts: 6
Posted: Tue, 2008-02-05 15:15

I too am experiencing this exact issue, though I don't have another blog that it works on to copy the settings from. Is there any information that I can provide that would help to sort out what is going on? Mine used to work, but has since stopped working.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-02-05 21:19

Unfortunately the issue is clearly hosting environment related not programmatic thus it is not something I can help you with. I suspect by the looks at other types of postings with other "odd" issues, is that the issue tends to be caused either by another wordpress plugin or some type of caching.

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

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Tue, 2008-02-05 21:26

With all due respect, I'm inclined to disagree with this... I had the same problem this morning with a new gallery. I'm still trying to trace down the best way to reproduce this, but it looks like a WPG2 page is created, and the default paths in the wpg2_g2paths in the WordPress wp_options table are set to the actual G2 codebase rather than the multi-site code base.

FOr those of you that are still having problems, can you share with us the value of your wpg2_g2paths field?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-02-05 21:34

Hiya besson3c,

Considering on the Mon, 2007-11-05 12:18 you posted that the WPG2 is working fine on one blog and not another, that is pretty clearly environmental to me.. The issue could be around your multisite code base, I do not use the multisite installation so I cannot comment on this, I know from a coding point of view that G2 multisite installations do generate different parent paths which might have have a knock on effect when Gallery2 returns it's path back to the WPG2 plugin.

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

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Tue, 2008-02-05 21:39

The blog it was working on originally was a much older blog that went through several WPG2 upgrades. These problems seem to stem from new installs.

I will research this further...

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Tue, 2008-02-05 21:59

Okay, I think I have confirmed the source of this problem. Upon activating WPG2 3.0.2 in a new multisite install, the path data is set as follows (sorry for this serialized mess):

a:4:{s:11:"g2_filepath";s:29:"/usr/local/www/data/gallery2/";s:6:"g2_url";s:31:"http://mydomain.com/gallery2/";s:16:"g2_errorredirect";s:41:"http://mydomain.com/wordpress/index.php";s:11:"g2_embeduri";s:44:"http://mydomain.com/wordpress/?page_id=137";}

When you go to your wp-gallery2.php file, it redirects you to the Gallery codebase/installer (which is in /usr/local/www/data/gallery2 on my FreeBSD machine).

In my case, the paths should be set accordingly:

/home/username/public_html/gallery
http://mydomain.com/gallery/

(the others are fine)

So, basically the bug seems to be that WPG2 activation and the setting of default path names does not support multisite installs. These need to be corrected manually.

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Tue, 2008-02-05 22:04

Also, once you make manual corrections to the serialized data so that the WPG2 WordPress tab will load, you'll still need to manually correct the WPG2 paths.

 
diablo581

Joined: 2008-02-05
Posts: 6
Posted: Tue, 2008-02-05 23:45

Ok so if one were a moron when it comes to the internals of gallery and wordpress how exactly would be a good way to do that such that it works?

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Wed, 2008-02-06 02:57

diablo: are you comfortable with updating MySQL tables? Are you also trying to get the plug-in to work on a multisite installation?

 
diablo581

Joined: 2008-02-05
Posts: 6
Posted: Wed, 2008-02-06 18:28

I know my way around mysql enough that I can probably do it correctly. No mine isn't multisite in that it isn't using MU or anything. Just a standard wordpress install, but it is on a hosted account. It is just odd because it worked at one point and then just stopped.

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Wed, 2008-02-06 18:38

Sorry, I should have been more clear... Is your *Gallery* install a multisite install?

 
diablo581

Joined: 2008-02-05
Posts: 6
Posted: Wed, 2008-02-06 19:43

Sorry, I didn't think about that. No. It is just a standard gallery install.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-02-06 21:52

besson3c,

You are running WPG2 3.x right as you should not be using the wp-gallery2.php file anymore..

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

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Wed, 2008-02-06 22:33

I don't rely on the wp-gallery2.php file anymore, but it still should bring up the gallery using the default WP template, right?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-02-07 00:16

Ummmmm to tell you the truth I never tested that under the later releases of WPG2 3.0, it use to but since I moved to the internal Wordpress Page I cannot be sure what it would do.. I know for a fact the internal URL Links no longer point to wp-gallery2.php

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

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Thu, 2008-02-07 00:26

diablo: it sounds like you are having a different problem then.

 
diablo581

Joined: 2008-02-05
Posts: 6
Posted: Thu, 2008-02-07 14:12

OK so what I am hearing is, that despite the fact that less than 6 months ago it worked fine, it is now my hosters fault that your plugin doesn't work correctly?
And you have figured that out how? You didn't ask me anything about my setup, didn't ask anything about my database or its contents.
Sigh. Nevermind. I guess I can just copy and paste the links myself.

 
besson3c

Joined: 2005-09-05
Posts: 28
Posted: Thu, 2008-02-07 14:56

Why should we have to coax that sort of info out of you (or anybody else) diablo?

If you want us to help you, tell us all about your setup, and about what your DB contents are as I've described above.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-02-07 21:35
diablo581 wrote:
OK so what I am hearing is, that despite the fact that less than 6 months ago it worked fine, it is now my hosters fault that your plugin doesn't work correctly?
And you have figured that out how? You didn't ask me anything about my setup, didn't ask anything about my database or its contents.
Sigh. Nevermind. I guess I can just copy and paste the links myself.

diablo581,

Noone has said we do not want to help you, I have simply pointed out that in my experience issues like this are due to a change in your hosting environment.

The first question to ask yourself, is I been using the plugin without any issues and now it suddenly does not work what in the heck has changed and I will guarantee must of because the plugin just will not stop like that, I been running it on my blog for years and it has never just stopped unless I changed or my hosting company changed something.. Help us understand what has changed and please describe what is not working because your initial post was a bit vague..

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

 
diablo581

Joined: 2008-02-05
Posts: 6
Posted: Fri, 2008-02-08 00:39

As I said above... before you stated it wasn't something that you could help with... what information do you need? I don't just want to give a dump of my DB on here, so what exactly are you wanting me to put up here?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Fri, 2008-02-08 01:10

A dump will not help me as I cannot reproduce this issue.. Lets start with a clean WPG2 install so please deactivate the WPG2 plugin and edit your Wordpress Options table in your Wordpress Database (phpmyadmin) and look for any option names starting with WPG2 and remove them..

Reactivate the WPG2 plugin and see how it goes..

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