Openemr Error

elnaw wrote on Thursday, November 20, 2008:

I have installed Openemr for windows with xampp and it worked till the first time I logged in and I was surprised the next day it gave me this error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in C:\xampp\htdocs\openemr\library\classes\Filtreatment_class.php on line 31

I uninstall the xampp and removed the directory were it was installed and reinstalled it again but the same error is still there. For my installation I followed the installation guide at:

Will somebody please help on this issue.

Thanx,
Yassir

drbowen wrote on Friday, November 21, 2008:

It would be helpful to always post your version of:

PHP
OpenEMR

It looks like your version of PHP is incompatible with the version of the filtreatment_class.php.

Likely you need to upgrade your PHP from PHP4 to PHP5.

Sam Bowen, MD

cfapress wrote on Friday, November 21, 2008:

The Filtreatment class has been problematic in the past. It was rewritten specifically for PHP5 and thus broke OpenEMR for those of us who still use PHP4. More recently I believe it was reworked to suit both PHP4 and PHP5. Which version of OpenEMR are you using?

Jason