Help : Encounter-form + Documents do not display any more

Situation
Encounter-forms do not display any more (tab says “Forms” instead of “Encounter”) , neither does the Documents section (empty tab titled “Unknown”) nor the SOAP forms. The patient photograph just displays the link instead of the picture in the summary.
All other forms work & the patient encounter history tab is fine. All this happened after moving OpenEMR to a FreeBSD server. I checked the database, all tables are there, all data from the forms mentioned above is also there. Heeelp… someone???

OpenEMR Version
I’m using OpenEMR version 5.0.0.8

Browser:
Firefox 61, also with Brave 0.23.79, same issues

Operating System
Free BSD 11.1

Logs
PHP Fatal error: Cannot use result of built-in function in write context in /var/www/openvemr/library/classes/Tree.class.php on line 329, referer: http://openvemr.lan/interface/patient_file/summary/demographics.php
PHP Fatal error: Cannot use result of built-in function in write context in /var/www/openvemr/library/classes/Tree.class.php on line 329, referer: http://openvemr.lan/interface/patient_file/encounter/encounter_top.php?set_encounter=1435
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/openvemr/interface/patient_file/history/encounters.php on line 89, referer: http://openvemr.lan/interface/main/tabs/main.php

Just updated with the 5.0.0.8 patch, but I don’t think that is the problem. Never had this before in any openemr version. Aiuto aiuto

hi @roland, what php version are you running?

$ php -v

It’s running php version 7.2

ok, thanks @roland, if i remember correctly openemr v5.0.0 requires php <= 7.0

oh dear, I must have missed that. On the linux box there were no problems, that had php 7.0.something. The clinic server runs freebsd with php 7.2. So I guess when I upgrade Oemr 5.0.0.8 to the current 5.0.1 the problems will go away ?

1 Like

thanks, I am not ready to upgrade to 5.0.1 yet, so I downgraded php 7.2 to 7.0. Our parttime sys-admin will crucify me when he comes in on Thursday, but most things works as it should. There is one little problem to solve, there are still no images or documents displayed and the log says :

Php Fatal Error :grimacing: Smarty unable to write to $compile_dir…

what $compile_dir does he mean? are those the edi|era|documents|letter-template directories under sites/default ? Or does he want to write somewhere else to show my patient images and Documents?

Check permissions of the following directories:
…/openemr/interface/main/calendar/modules/PostCalendar/cache
…/openemr/interface/main/calendar/modules/PostCalendar/compiled

Both need to be writable by the web server user (usually httpd, apache2, or www-data)