Fatal error durring login

wickedklown420 wrote on Friday, July 08, 2005:

im using OpenEMR v2.7.2-rc2 i have also installed the newer 2.7.2/

when i go to the login page i get this error
Fatal error: Call to undefined function: sqlstatement() in C:\sokkit\site\openemr\interface\login\login.php on line 20

how would i fix this?

sunsetsystems wrote on Friday, July 08, 2005:

sqlStatement() is defined in sql.inc which is loaded by this statement in login.php:

include_once("$srcdir/sql.inc");

which suggests that $srcdir is not correct, which in turn indicates that $webserver_root is not correct in globals.php.

– Rod <rod at sunsetsystems dot com>

wickedklown420 wrote on Saturday, July 09, 2005:

yes, i got that to work, but now i cant login at all. I have tried all the passwords i could find, and i have been through your forums ( all 3 of them ) without finding an answer that works.

Im running win2k with phptriad, up to now everything seemed to be alright, <exept for me not filling in $webserver_root.>

i get no errors, it just dont seem to log me in no matter what i use… any sugestions?

sunsetsystems wrote on Saturday, July 09, 2005:

Did you read the INSTALL file?  Look for the reference to the "Initial User" (chosen by you) and the corresponding password.

– Rod <rod at sunsetsystems dot com>

drbowen wrote on Saturday, July 09, 2005:

What does the login screen look like?  Does it have a box for the login name and a box for the password?

During setup, you need to put in a password for the "openemr" user.  Use the Mysql root user to create the database, and create a new user for yourself(a).

When you login the initial user that you create (a) should have a password of "pass".