# Fatal error durring login

**URL:** <https://community.open-emr.org/t/fatal-error-durring-login/2429>\
**Category:** Management and Administration\
**Created:** [July 8, 2005, 9:59pm UTC](https://community.open-emr.org/t/fatal-error-durring-login/2429 "2005-07-08T21:59:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 8, 2005, 9:59pm UTC](https://community.open-emr.org/t/fatal-error-durring-login/2429/1 "2005-07-08T21:59:55Z")

</div>

**[wickedklown420](https://sourceforge.net/u/wickedklown420/)** wrote on [Friday, July 08, 2005](https://sourceforge.net/p/openemr/discussion/202505/thread/fca67e06/#2bcd):

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?

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 8, 2005, 11:18pm UTC](https://community.open-emr.org/t/fatal-error-durring-login/2429/2 "2005-07-08T23:18:22Z")

</div>

**[sunsetsystems](https://sourceforge.net/u/sunsetsystems/)** wrote on [Friday, July 08, 2005](https://sourceforge.net/p/openemr/discussion/202505/thread/fca67e06/#2bcd/935b):

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\>

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 9, 2005, 3:57am UTC](https://community.open-emr.org/t/fatal-error-durring-login/2429/3 "2005-07-09T03:57:41Z")

</div>

**[wickedklown420](https://sourceforge.net/u/wickedklown420/)** wrote on [Saturday, July 09, 2005](https://sourceforge.net/p/openemr/discussion/202505/thread/fca67e06/#2bcd/db3d):

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?

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 9, 2005, 6:32am UTC](https://community.open-emr.org/t/fatal-error-durring-login/2429/4 "2005-07-09T06:32:50Z")

</div>

**[sunsetsystems](https://sourceforge.net/u/sunsetsystems/)** wrote on [Saturday, July 09, 2005](https://sourceforge.net/p/openemr/discussion/202505/thread/fca67e06/#2bcd/3ee5):

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

– Rod \<rod at sunsetsystems dot com\>

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 9, 2005, 5:44pm UTC](https://community.open-emr.org/t/fatal-error-durring-login/2429/5 "2005-07-09T17:44:02Z")

</div>

**[drbowen](https://sourceforge.net/u/drbowen/)** wrote on [Saturday, July 09, 2005](https://sourceforge.net/p/openemr/discussion/202505/thread/fca67e06/#2bcd/1e2b):

What does the login screen look like?&nbsp; 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.&nbsp; 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".
