Error with browser accessing setup.php

alvester wrote on Friday, June 17, 2011:

We have completed the install and configuration and put in http://localhost/openemr/setup.php.

We received the error ’ parse error unexpected T_STRING, expecting T_OLD_FUNCTION  or T_FUNCTION or T_VAR’.

The file at issue is the ‘Installer.class.php’ in the Program FIles (x86)\xampp\htdocs\openemr\library\classes directory.

This prevents us from the GUI setup.

visolveemr wrote on Saturday, June 18, 2011:

Hi,

This error  may be due to php version. See to it you use PHP5, as it is the recommended one for openemr.

Hope this helps.

Thanks
ViCarePlus Team,
www.vicareplus.com

bradymiller wrote on Saturday, June 18, 2011:

More information on this problem sent to me via email:
"
We had completed xampp install and the application, with moving it to the
proper directory after renaming it (openemr).

We launched the browser and put in hhtp://localhost/openemr/setup.php"

Questions:
Did you use a Xampp-OpenEMR package?
IF you installed Xampp separately, followed instructions here (and used xampp version 1.7.3):?
http://www.openmedsoftware.org/wiki/OpenEMR_4.0_Windows_Installation
If you installed Xampp separately, did you set up php configuration settings:
http://www.openmedsoftware.org/wiki/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29_.3F

Also, please paste the full error (usually contains line number in script where the error came from.

-brady

alvester wrote on Saturday, June 18, 2011:

Thanks ViCarePlus Team for your reply.  I did exactly that and we got all the way to the Congratulations screen.  We did receive the following error which appears to be blocking us from the OpenEMR sign-on screen.

Warning: main(C:\Program Files\xampp\htdocs\openemr/sites/default/config.php) : failed to open stream: No such file or directory in C:\Program Files (x86)\xampp\htdocs\openemr\interface\globals.php on line 139

Fatal error: main() : Failed opening required ‘C:\Program Files\xampp\htdocs\openemr/sites/default/config.php’ (include_path=’.;C:\Program Files (x86)\xampp\php\pear’) in C:\Program Files (x86)\xampp\htdocs\openemr\interface\globals.php on line 139