[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 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?
|
|

Posts: 22890
Going to the url provided redirects to:
http://www.plamper.info/is/htdocs/wp1104111_GR7JNNU4FH/www/gallery2/main.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_return=%2Fis%2Fhtdocs%2Fwp1104111_GR7JNNU4FH%2Fwww%2Fgallery2%2Fmain.php%3F
Do you have a .htaccess doing the redirect?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
Yes, I'm getting that redirect. No .htaccess, so I don't understand why this is happening. Any hints?
Posts: 22890
No clue, perhaps your host can help?
If your initial install was small perhaps you can start over.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 16503
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
Posts: 5
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!
Posts: 16503
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
Posts: 5
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!
Posts: 16503
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
Posts: 5
Thanks for your prompt reply! Maybe add my specific problem to the troubleshooting answers in the FAQ?
Posts: 16503
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
Posts: 22890
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