[SOLVED] Single site G2 installation converted to multisite: 404 error when connecting to gallery

onto

Joined: 2009-10-11
Posts: 5
Posted: Sun, 2009-10-11 01:48

Hello all! I successfully converted my single site G2 gallery to a multi-site G2 installation after this howto: http://codex.gallery2.org/Gallery2:Multisite#How_to_change_a_standalone_G2_into_a_multisite
I'm now unable to access the gallery, as I get a 404 error message. When attempting to login via this (http://codex.gallery2.org/Gallery2:faq#How_to_manually_login) password recovery method I see the login mask and get redirected to a 404 site again.

There are no system errors when running the installer again and as far as I can see, the permissions are set correctly. The installation itself finishes free of errors. I also checked main.php and config.php as I saw reports on the forum where these files were incorrectly written after a conversion to a multisite installation. There is nothing wrong as far as I can see.

What steps can I take to resolve this issue? Many thanks in advance for your help!

OT: I also asked in #gallery on IRC, but was directed by the members towards #gallery-support. But #gallery-support redirects to #gallery on my PC. Was the server down, is this intentional or a client issue on my side?


Gallery URL: www.plamper.info/gallery2
Gallery version: 2.3
PHP version: 5.2.10
PHPInfo Link: www.plamper.info/info.php
Webserver (e.g. Apache 1.3.33): Apache, Version unknown
Database (e.g. MySql 5.0.32): 5.0.32
Activated toolkits (e.g. NetPbm, GD): unable to check
Operating system: Mac OS X 10.5.8
Browser: Firefox 3.5.3

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22890
Posted: Sun, 2009-10-11 03:28
 
onto

Joined: 2009-10-11
Posts: 5
Posted: Sun, 2009-10-11 11:39

Yes, I'm getting that redirect. No .htaccess, so I don't understand why this is happening. Any hints?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22890
Posted: Sun, 2009-10-11 16:44

No clue, perhaps your host can help?

If your initial install was small perhaps you can start over.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-10-12 21:39

Hovering over your login link looks suspicious.

Check the baseURI setting that's at the bottom of config.php. That should just be your site's addresss:
http://www.plamper.info/gallery2/main.php
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
onto

Joined: 2009-10-11
Posts: 5
Posted: Tue, 2009-10-13 01:40

Nivekiam, thanks for your answer. Shortly before your last post I started from scratch again (deleted the database, moved the old gallery installation out of the way and installed a clean multisite gallery (no system errors, all permissions set correctly), but the error persists. I can see the default gallery page when going to http://www.plamper.info/gallery2/main.php, I can see the login mask when clicking on "Log in", but when I log in I get redirected to this site: http://www.plamper.info/is/htdocs/wp1104111_GR7JNNU4FH/www/gallery2/main.php?&g2_GALLERYSID=3ee6f01df15f1c96bd9fad2a0427fcc4 (404 error).

baseURI at the bottom of config.php is set correctly.

Any hints? My guess: There must be some botched redirect going on, either due to the .htaccess feature (not used by me) on my webpack or due to a faulty multisite installer.

I already wrote to the support of my hoster. Maybe they also have a suggestion.

Thanks for your help!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-13 04:47

I don't think it's a redirect or htaccess, it sounds like you have a botched or incorrectly setup host.

Your server is taking request for the root of your site and tacking on the full path for your docroot to the URL.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
onto

Joined: 2009-10-11
Posts: 5
Posted: Tue, 2009-10-13 17:17

I have resolved this problem. The tech support suggested to change the database password to one without special characters. Now it's working. I still find this a weird solution, as the single site installation has been working without a hitch before (DB password with several special characters). Is this a bug? Can somebody verify this problem?

Thanks everybody for your help!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-13 17:29

I guess it would depend on what the special chars are or were and which ones are used in your other password. Please do NOT post them :)

It would depend if Gallery was doing something with them to cleanse the strings, but once they are in config.php there shouldn't be a problem. The string cleansing/checking would probably only happen during install when you enter that information in.

I think this is why every host I've seen that you can setup databases and they auto-generate the initial passwords, the passwords are always alpha-numeric in mixed case.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
onto

Joined: 2009-10-11
Posts: 5
Posted: Tue, 2009-10-13 17:50

Thanks for your prompt reply! Maybe add my specific problem to the troubleshooting answers in the FAQ?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-13 17:58

Maybe, if we could figure out how to classify it :) FAQ = Frequently Asked Questions and out of all the years I've been hanging out here I've only seen MySQL passwords trip things up 2 or 3 times and I really don't see how a DB password could trip this up and exhibit the behavior I was seeing. It should mean, no DB access, which would mean broken Gallery most likely generating a big ERROR on a white page.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22890
Posted: Wed, 2009-10-14 01:04

I don't see how a saved password for mySql in config.php would exhibit a redirect for urls other than main.php. main.php loaded fine and that uses db access as well.
I suspect the host did something else as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team