Menu

#2978 [4.3.1] $DBUSER == 'root' --> site_unavailable

v4.3.1
open
None
5
2023-11-05
2023-11-05
mswietlicki
No

In session.php there is a line of code:

if (empty($DBUSER) || $DBUSER == 'root') {
    $databasePresent = false;
} else {

because of this if you are doing new installation (specially with sqlite) and you leave $DBUSER = "root" or $DBUSER = "" (as is ignored by sqlite anyway) you will be met with site_unavailable message without any details.

I spend half a day and needed to debug the source code to find out why this is happening!
UI does not tell you anything!

Fix should remove this check and allow "root" and "" user names (specialy on sqlite) or force user to pick different name during setup.

Thanks

Discussion

  • Gerry Kroll

    Gerry Kroll - 2023-11-05
    • assigned_to: Gerry Kroll
     
  • Gerry Kroll

    Gerry Kroll - 2023-11-05

    Thank you for bringing this to our attention.

    This oversight will be corrected soon, probably by improving the error message.

     

Log in to post a comment.