can not log in

I have finished installing the application but got an error after creating admin user and password. ADBC@localhost could not connect line error 577 & 578 in install/index

On bottom says installation complete

Login screen

gives following error
No attempt has been made to authenticate yet or incorrect username or password.

Comments

hcamelion:

This is due to an error in the installation. You need to fix the admin_user_create() function in install/install.php.

https://sourceforge.net/forum/forum.php?thread_id=3045866&forum_id=779083

A MySQL connection is required before using mysql_real_escape_string()

You must move mysql_real_escape_string() after the connection to the database is made. It is entering in an empty string for the username and password because mysql_real_escape_string() is returning false or nothing.

function admin_user_create($username, $password) {
global $_ERROR, $db_inc_file, $table_inc_file, $mysql_db_inc;

include($db_inc_file);
include($table_inc_file);

// connect to the database
if(!database_connect($DATABASE_HOST, $DATABASE_DB, $DATABASE_USER, $DATABASE_PASS)) {
return fatal_error();
}

// clean up input
$username = mysql_real_escape_string($username);
$password = mysql_real_escape_string($password);

heriquet:

Hi,

I did it, so it's better but I got the same error message.

I have no more error while installing, but I cannot connect.

I cannot connect (No attempt has been made to authenticate yet or Incorrect username or password), but my user is wel like this in the database and the password is ok.

What may happen ?

Thanks.

stevenwang999:

i have exactly the same issue, the password value is da39a3ee5e6b4b0d3255bfef95601890afd80709 in the database user table. really frustrating on this issue. please help us.

SW

tommo:

The quickest solution for you would be to manipulate the database by hand.

If you look into the user table there is probably an entry with an empty username field. Change this field to "admin", and change the password field accordingly (with the database password function).

hcamelion:

I would commit my changes but I am not a project admin.