Error Messages on starting OpenEMR - Help :>

cmshaw wrote on Tuesday, September 25, 2007:

I have been following DrBowen list and got farther than I had on my own.  I am running Windows SBS 2003 and have loaded the most current version of OEMR.  Apache and MySQL are running.  These are the messages that I get and I can’t seem to figure out the source of the issue.  I have changed the Global.PHP to set the webroot to c:\xampp\htdocs\openemr and I have given Everyone rights to the two folders compiled and cache under C:\xampp\htdocs\OpenEMR\interface\main\calendar\modules\PostCalendar\pntemplates.  If you have any suggestions - they would be appreciated.

Warning: main(C: mpp\htdocs\openemr/library/classes/Filtreatment_class.php) [function.main]: failed to open stream: Invalid argument in C:\xampp\htdocs\OpenEMR\interface\login\login_frame.php on line 4

Warning: main() [function.include]: Failed opening ‘C: mpp\htdocs\openemr/library/classes/Filtreatment_class.php’ for inclusion (include_path=’.;C:\xampp\php\pear’) in C:\xampp\htdocs\OpenEMR\interface\login\login_frame.php on line 4

Fatal error: Cannot instantiate non-existent class: filtreatment in C:\xampp\htdocs\OpenEMR\interface\login\login_frame.php on line 12

drbowen wrote on Wednesday, September 26, 2007:

Dear cmshaw:

This could be a path error.

In the file globals.php

C:\xampp\htdocs\OpenEMR\interface\globals.php

What do you have for lines #8 and #14?

Sam Bowen, MD

cmshaw wrote on Wednesday, September 26, 2007:

I am counting lines excluding comments: 

Line #8 -
the require_once (dirname(__File__) . "C:\xampp\htdocs\OpenEMR\includes\config.php"

Line #14 -

$webserver_root = "C:\xampp\htdocs\OpenEMR";

In an attempt to solve I also set

$web_root = "c:\xampp\htdocs\openemr";

I now get the following error on line 36

Warning: main(C:\xampp\htdocs\OpenEMR\interfaceC: mpp\htdocs\OpenEMR\includes\config.php) [function.main]: failed to open stream: Invalid argument in C:\xampp\htdocs\OpenEMR\interface\globals.php on line 36

Line 36 - is
$GLOBALS[‘webroot’] = $web_root;

Thanks for the response.

Fatal error: main() [function.require]: Failed opening required ‘C:\xampp\htdocs\OpenEMR\interfaceC: mpp\htdocs\OpenEMR\includes\config.php’ (include_path=’.;C:\xampp\php\pear’) in C:\xampp\htdocs\OpenEMR\interface\globals.php on line 36

drbowen wrote on Wednesday, September 26, 2007:

The lines I am am referring to are the definitions of $webserver_root  and $web_root.  I think the correct settings for globals.php should be:

$webserver_root = "C:\xampp\htdocs\OpenEMR";

$web_root = "\openemr";

You may need:

$webserver_root = "C:\\xampp\\htdocs\\OpenEMR";

$web_root = "\\OpenEMR";

Do you have IIS running on your server? 

You can not run Apache and IIS at the same time.  You will need to stop IIS for Apache to run correctly.  They both compete for port 80.

Windows SBS 2003 has not been previously tested and I am not sure if it will work.  (My set up was on Windows 2003 Server Enterprise Edition.)

Sam Bowen, MD

cmshaw wrote on Thursday, September 27, 2007:

o.k. - I have it running and this is what I had to do to fix my problem. 

I made sure the settings for $webserver_root = "C:\xampp\htdocs\OpenEMR"; and

$web_root = "\openemr"; I tried to run and it was still giving me the error. 

So then I thought it was possibly Windows Server SBS 2003 so I installed it on a new PC with XP.  Same issue.  Then I realized that I was using older instructions.

After stopping Apache - I reran the ApacheFriends - PHP Switch program and changed it back to "5".  (I had been changing it to "4" from the older instructions).  This fixed the problem.  The login screen appeared on both PC setups.  So I am back to the server setup for now.  Thanks for your help and the logs to look at for problems.