Openemr 6.1.0 Patch 1 Insurance and Eligibility Tab still missing

The error with the ‘update status’ button is still present and also affects what shows up on the patient dashboard as well.
Notice how nothing after demographics shows up, in particular nothing associated with the insurance tab shows up:

Here are the error logs for your inspection:

[Thu Apr 28 13:11:04.322283 2022] [php:warn] [pid 2259]  PHP Warning:  include(/var/www/localhost/htdocs/openemr/src/Billing/EDI270.php): Failed to open stream: Permission denied in /var/www/localhost/htdocs/openemr/vendor/composer/ClassLoader.php on line 571, referer: https://***/interface/main/tabs/main.php?
[Thu Apr 28 13:11:04.322301 2022] [php:warn] [pid 2259] PHP Warning:  include(): Failed opening '/var/www/localhost/htdocs/openemr/vendor/composer/../../src/Billing/EDI270.php' for inclusion (include_path='/var/www/localhost/htdocs/openemr/vendor/pear/archive_tar:/var/www/localhost/htdocs/openemr/vendor/pear/console_getopt:/var/www/localhost/htdocs/openemr/vendor/pear/pear-core-minimal/src:/var/www/localhost/htdocs/openemr/vendor/pear/pear_exception:.:/usr/share/php8') in /var/www/localhost/htdocs/openemr/vendor/composer/ClassLoader.php on line 571, referer: https://***/interface/main/tabs/main.php?
[Thu Apr 28 13:11:04.322349 2022] [php:error] [pid 2259] PHP Fatal error:  Uncaught Error: Class "OpenEMR\\Billing\\EDI270" not found in /var/www/localhost/htdocs/openemr/interface/patient_file/summary/demographics.php:1042\nStack trace:\n#0 {main}\n  thrown in /var/www/localhost/htdocs/openemr/interface/patient_file/summary/demographics.php on line 1042, referer: https://***/interface/main/tabs/main.php?
[Thu Apr 28 13:12:13.231848 2022] [php:warn] [pid 2290] PHP Warning:  Undefined array key 2 in /var/www/localhost/htdocs/openemr/interface/patient_file/summary/demographics_full.php on line 579, referer: https://***/interface/patient_file/summary/demographics.php?set_pid=79
[Thu Apr 28 13:12:13.231886 2022] [php:warn] [pid 2290] PHP Warning:  Undefined array key 1 in /var/www/localhost/htdocs/openemr/interface/patient_file/summary/demographics_full.php on line 588, referer: https://***/interface/patient_file/summary/demographics.php?set_pid=79
[Thu Apr 28 13:12:13.299259 2022] [php:warn] [pid 2290]  PHP Warning:  Undefined array key 3 in /var/www/localhost/htdocs/openemr/interface/patient_file/summary/demographics_full.php on line 579, referer: https://***/interface/patient_file/summary/demographics.php?set_pid=79
[Thu Apr 28 13:12:13.299294 2022] [php:warn] [pid 2290] PHP Warning:  Undefined array key 2 in /var/www/localhost/htdocs/openemr/interface/patient_file/summary/demographics_full.php on line 588, referer: https://***/interface/patient_file/summary/demographics.php?set_pid=79
[Thu Apr 28 13:12:15.257098 2022] [php:warn] [pid 2290] PHP Warning:  Undefined array key "status_update" in /var/www/localhost/htdocs/openemr/interface/patient_file/summary/demographics.php on line 1028, referer: https://***/interface/patient_file/summary/demographics_full.php
[Thu Apr 28 13:12:15.257184 2022] [php:warn] [pid 2290]  PHP Warning:  include(/var/www/localhost/htdocs/openemr/src/Billing/EDI270.php): Failed to open stream: Permission denied in /var/www/localhost/htdocs/openemr/vendor/composer/ClassLoader.php on line 571, referer: https://***/interface/patient_file/summary/demographics_full.php
[Thu Apr 28 13:12:15.257205 2022] [php:warn] [pid 2290]PHP Warning:  include(): Failed opening '/var/www/localhost/htdocs/openemr/vendor/composer/../../src/Billing/EDI270.php' for inclusion (include_path='/var/www/localhost/htdocs/openemr/vendor/pear/archive_tar:/var/www/localhost/htdocs/openemr/vendor/pear/console_getopt:/var/www/localhost/htdocs/openemr/vendor/pear/pear-core-minimal/src:/var/www/localhost/htdocs/openemr/vendor/pear/pear_exception:.:/usr/share/php8') in /var/www/localhost/htdocs/openemr/vendor/composer/ClassLoader.php on line 571, referer: https://***/interface/patient_file/summary/demographics_full.php
[Thu Apr 28 13:12:15.257272 2022] [php:error] [pid 2290] PHP Fatal error:  Uncaught Error: Class "OpenEMR\\Billing\\EDI270" not found in /var/www/localhost/htdocs/openemr/interface/patient_file/summary/demographics.php:1042\nStack trace:\n#0 {main}\n  thrown in /var/www/localhost/htdocs/openemr/interface/patient_file/summary/demographics.php on line 1042, referer: https://***/interface/patient_file/summary/demographics_full.php

what are your permissions on /var/www/localhost/htdocs/openemr/src/Billing/EDI270.php?

  1. what is the precise way to see the file permission on that file?
  2. what is the exact syntax to give it the proper permissions? (chown?)

one way is ls -lrt /var/www/localhost/htdocs/openemr/src/Billing/EDI270.php

-r-------- 1 root root 53132 Apr 28 13:02 EDI270.php

is this the correct permission for the file? I checked the permission from inside the docker in the Billing folder.

Oh. Apache should have that permission right? How do I give apache permission?

apache should own the file

key steps are

chown apache:root /var/www/localhost/htdocs/openemr/6-0-0-Patch-4.zip
unzip -o /var/www/localhost/htdocs/openemr/6-0-0-Patch-4.zip

So I should re-patch the system and set the file permissions at the same time? Have I caused all the files in this patch to be given a default of root ownership?

1 Like

Lol! Thanks. The patch process I have been using made no mention of addressing the ownership.

When I ran the script as indicated and went to the browser for the patch to complete. I found that the file permission of that file alone was still assigned to root. I sampled several other files that came in and the permissions were apache root as expected.

Result: reinstalled 6.1, re-patched to patch 1, added modifications, and now appears to be working as expected. Thanks!

Unfortunately, while all the other errors are gone, It still has the errors that there is an undefined array key “status_update” in interface/patient_file/summary/demographics.php on line 1028.

It looks like this piece of code:

<button class='btn btn-success btn-sm btn-transmit float-right' name='status_update' value='true'><?php echo xlt("Update Status"); ?></button>

was moved from demographics.php to EDI270.php, this code originally declared “status_update” just prior to the ($_POST [‘status_update’] === ‘true’) usage. It seems like demographics.php can’t see EDI270.php to know ‘status_update’ has been defined.

I can’t make sense of this.

no need to worry about those for now, we’ll get to them when we do a php8.2 clean up

Okay. sounds like a plan.