Ticket #162 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

admin_user and admin_password not returned after install

Reported by: anonymous Owned by: mike
Priority: high Milestone:
Component: Install Version: 1.0b3
Severity: blocker Keywords:
Cc:

Description

I am installing plogger on my localhost. I create a database with phpadmin and the install scrip seems to work OK (all tables are created in the database) but after installing I get:

Setup is now complete

Your username is and your password is Page source looks like this:

<p>Setup is now complete</p>

<p>Your username is <?=$_SESSIONinstall_values?admin_username??> and your password is <?=$_SESSION['install_values']['admin_password']?></p> <p>

Checking my database I can discover that my username is "admin" but the password is hashed. What do I do?

Change History

Changed 7 months ago by info@…

  • summary changed from admin_user and admin_password not returned after intall to admin_user and admin_password not returned after install

I am installing plogger on my localhost. I create a database with phpadmin and the install scrip seems to work OK (all tables are created in the database) but after installing I get:

Setup is now complete

Your username is and your password is

Page source looks like this:

<p>Setup is now complete</p>

<p>Your username is <?=$_SESSION [ 'install_values ' ][ ' admin_username ' ]?> and your password is '<?=$_SESSION [ 'install_values ' ] [ 'admin_password ' ]?>'</p> (extra spaces added to prevent reformatting) Checking my database I can discover that my username is "admin" but the password is hashed. What do I do?

Changed 7 months ago by Mike

The issue is likely with the short tags. We shouldn't be using php short tags anywhere in the program. If short tags are turned off on the PHP installation those values will not be processed correctly.

Changing <?=$_SESSION [ 'install_values ' ][ ' admin_username ' ]?> to <?php echo $_SESSION [ 'install_values ' ][ ' admin_username ' ]?> and likewise for the password should do the trick.

Changed 7 months ago by ryan

As far as the current password issue, you go into phpmyadmin and navigate back to where you saw "admin." You can edit that row and type in your password in that field. Just choose md5 as the hash type and it should re-hash whatever you type in for your password and you should be able to log in.

Changed 7 months ago by sidtheduck

  • status changed from new to closed
  • resolution set to fixed

Fixed in r543. Instances of short tags found and fixed in 'lib/form_setup.php' and 'lib/form_setup_complete.php'. I did a regex search and these two files were the only ones with short tags that I could find.

Note: See TracTickets for help on using tickets.