Cannot create patient encounters

Hello,

To explain the problem further, if I click on a patient and go to create a new encounter, I can only get as far as the “New Encounter Form” which has Consultation Brief Description, Visit Category, etc. Upon hitting the save button, I am greeted with a blank screen under the tab “forms” Furthermore, I am unable to review, edit, or even look at past encounters.

The individual in this topic (Difficulty Editing/Creating Encounters) seems to be having a similar problem, however I tried turning off logging as was suggested and nothing changed.

If anyone has any advice I would be grateful,

Also, I’m using Chrome, but I also tried in Internet Explorer and nothing changed. Edit 1: I just tried Firefox that did not work either

  • A

hi @NDCPS, take a look in the php error log for any errors, for ubuntu https://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files

1 Like

@stephenwaite,

I have the error log open but to be honest I’m not completely sure what I should be looking for.

I’m seeing a lot of “Undefined index: formaction in /var/www/openemr/interface/super/edit_list.php on line X” with X being several numbers as this error appears several times

I’m also seeing

“Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0”

and

“A non-numeric value encountered in /var/www/openemr/interface/super/edit_list.php on line X” This specific error appears the most, and the line is usually 67, 68, or 69

If there’s anything I could clarify please let me know and thank you for your help.

ok @NDCPS, it’s usually a fatal error that you’re looking for, looks like you need to tune some settings, https://www.open-emr.org/wiki/index.php/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29.3F

@stephenwaite

Apologies for the late response, I just made those suggested changes and it doesn’t look like the problem is fixed. This is so peculiar I can’t really even find anyone else online with a similar issue.

Well, I found the error

PHP Fatal error: Cannot use result of built-in function in write context in /var/www/openemr/library/classes/Tree.class.php on line 329, —/openemr/interface/patient_file/encounter/encounter_top.php?set_encounter=11

nice, what version of php are you running?

https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page

and OpenEMR version?

The PHP version is 7.2.5-0ubuntu0.18.04.1 and the OpenEMR version is v5.0.0 (6)

hi @NDCPS, pretty sure 5.0.0 is only good on php7.0. Have you thought about upgrading to 5.0.1?

I’ll have to try that. I also saw in another thread (White Screen of death after upgrade) someone with a similar error who said they fixed by switching to php 5.6, which I tried but it wasn’t working.