gallery 3.09 brand new install getting - dang something went wrong, can't figure this out

spags

Joined: 2010-03-26
Posts: 120
Posted: Thu, 2014-02-27 11:20

That change to access.php was just for diagnostic purposes really - to see what would happen if Gallery didn't force itself to abort the login attempt. If you read a little further down the posts, the real culprit was suhosin, which must have been making sessions change each reload. You possibly have it installed on your host as well.

 
zapatero2

Joined: 2014-04-27
Posts: 1
Posted: Sun, 2014-05-11 22:01

I've run into this problem as well and was able to fix it with some hacking.

First this was the central problem as reported in apache's error log:

... Undefined index: g3_password in gallery3/installer/installer.php on line 141 ...

This is line 141 of installer.php

if (!$password = $config["g3_password"]) {

The error means that the config array does not have key "g3_password".

To fix this I added these 3 lines of code just above the fail point:

    if (!array_key_exists("g3_password", $config)) {
        $config["g3_password"] = '';
    }
    if (!$password = $config["g3_password"]) {

What this does is simply create the key if it didn't already exist.

I then was able to get Galler3 properly configured with an initial admin account with password.

However I then ran into a new problem concerning general MySql connectivity.
This has to do with the "socket" value. If you run into that error I have a fix
for that too.

Of note: I went through the code looking for the where g3_password gets set and could find only one place: in the cli version of the set up where there is a command line flag that is not mentioned in the help output - that command line flag will set this value.

I think the missing "g3_password" is a genuine bug.