OpenSuSe Facilities Error

aperezcrespo wrote on Tuesday, December 21, 2010:

Hi,
  I just restored a 4.0 to OpenSuSe 11.3 and when I clicked on facilities I got the following error.

PHP Parse error:  syntax error, unexpected $end in /srv/www/htdocs/openemr/interface/usergroup/facilities.php on line 156, referer: http://localhost/openemr/interface/main/left_nav.php

Thanks

visolveemr wrote on Tuesday, December 21, 2010:

Hi,

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.

Hope this helps.

Thanks
ViCarePlus Team,
www.vicareplus.com
services@vicareplus.com

imnickiesrib wrote on Friday, April 08, 2011:

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.

Melody

bradymiller wrote on Friday, April 08, 2011:

hi,
Ensure you have the following php settings:
http://www.openmedsoftware.org/wiki/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29_.3F
(note you need to restart the apache server if you change the php settings)

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).

-brady