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...
Posts: 1153
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/
Posts: 28
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...
Posts: 1153
does the problem exist even if you revert to an unmodified default WordPress themes and disable all plugins except WPG2?
_________________
http://myg2.org/
Posts: 28
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...
Posts: 28
Thanks for all of your help BTW!
Posts: 1378
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
Posts: 28
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!
Posts: 1378
Yeah that would have been good, I cannot reproduce your issue on a clean install...
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation
Posts: 6
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.
Posts: 1378
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
Posts: 28
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?
Posts: 1378
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
Posts: 28
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...
Posts: 28
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.
Posts: 28
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.
Posts: 6
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?
Posts: 28
diablo: are you comfortable with updating MySQL tables? Are you also trying to get the plug-in to work on a multisite installation?
Posts: 6
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.
Posts: 28
Sorry, I should have been more clear... Is your *Gallery* install a multisite install?
Posts: 6
Sorry, I didn't think about that. No. It is just a standard gallery install.
Posts: 1378
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
Posts: 28
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?
Posts: 1378
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
Posts: 28
diablo: it sounds like you are having a different problem then.
Posts: 6
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.
Posts: 28
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.
Posts: 1378
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
Posts: 6
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?
Posts: 1378
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