Have you done any changes to the code in facilities.php file? If so it is likely that you might have missed a curly bracket.
This error usually occurs due to a missing curly bracket or due to the usage of short php tags.
When a short php tag is used, it should be enabled by setting short_open_tag = On in php.ini file.
I am having the EXACT error show up when I click on “facilities” in Open EMR.
I am starting from scratch by installing XAMPP 1.7.3, then Open EMR 4.0.0, and then Patch OpenEMR 4.0.0.
I have not touched or changed anything…this is a brand new intall.
I’m pretty sure this is a short_open_tag issue; it should be On.
As expected, there is a short tag that contains a bracket. Will fix this and put it in the next 4.0 patch, but you still need to set short_open_tag to On, which will fix your issue and avoid other problems (OpenEMR is not compatible with turning off the short_open_tag setting yet).