Error in Eye Exam Module

Situation
Eye Exam module not loading correctly.
Shows these errors:
Warning : Trying to access array offset on value of type bool in D:\xampp\htdocs\openemr\interface\forms\eye_mag\php\eye_mag_functions.php on line 4146

Warning : Trying to access array offset on value of type bool in D:\xampp\htdocs\openemr\interface\forms\eye_mag\php\eye_mag_functions.php on line 4146

Warning : Trying to access array offset on value of type bool in D:\xampp\htdocs\openemr\interface\forms\eye_mag\php\eye_mag_functions.php on line 4146

Only the following small forms open - Mental Status, Vision, Tension, Amsler, Fields, Pupils.
There are 2 loading icons above this and 1 below this . Followed by a row of buttons(Defaults, text, draw, quick picks, first visit) and one more loading icon.

Compared with the demo at https://demo.openemr.io/openemr/index.php (which works fine for me)
HPI, PMSFH, External Exam, anterior Segment, Retina, Neuro, Impression/Plan ALL do not load for my local installation.

What might be the problem ? Is it the error ?

I am runnng this on the latest download of XAMPP

OpenEMR Version
7.0.1

Browser:
I’m using: Google Chrome Version 116.0.5845.141 (Official Build) (64-bit)

Operating System
I’m using: Windows 10 Pro 64 bit

Search
Did you search the forum for similar questions? Yes, could not find any solution.

Logs
Did you check the logs? How do I find the logs ?
Was there anything pertinent in them?
Please paste them here (surround with three backticks (```) for readability.
You can also turn on User Debugging under Administration->Globals->Logging User Debugging Options=>All

I tried the same Eye Exam form in https://demo.openemr.io/openemr/index.php on the same browser and same computer. It opens correctly.


Error that I am getting.

Compared to the same page running on same computer and browser.
Version 7.0.1 demo

If the code is same, looks like I have a problem with the XAMPP settings ??
XAMPP for Windows 8.2.4
Apache
MySQL

Some of the PHP error logs:

> [Fri Sep 01 10:34:12.509601 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\php\\eye_mag_functions.php on line 4146, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:12.510600 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\php\\eye_mag_functions.php on line 4146, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:12.510600 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\php\\eye_mag_functions.php on line 4146, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:13.198751 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Undefined variable $no_drugs in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\php\\eye_mag_functions.php on line 5141, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:13.206745 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Undefined variable $current_drugs in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\php\\eye_mag_functions.php on line 5149, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:15.255502 2023] [php:notice] [pid 1104:tid 1840] [client ::1:53658] [2023-09-01T07:04:15.143770+02:00] OpenEMR.ERROR: Not all selected assets were included in header {"selectedAssets":["datetime-picker","purecss","shortcut","opener","dialog"],"foundAssets":["jquery","bootstrap","utility","main-theme","compact-theme","datetime-picker","opener","textformat","dialog","purecss"]} [], referer: http://localhost/openemr/interface/patient_file/encounter/view_form.php?formname=eye_mag&id=1&pid=1
> [Fri Sep 01 10:34:16.279044 2023] [php:warn] [pid 1104:tid 1848] [client ::1:53659] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\js\\eye_base.php on line 3408, referer: http://localhost/openemr/interface/forms/eye_mag/a_issue.php?uniqueID=1771814809&form_type=POH&pid=1&encounter=2&form_id=1
> [Fri Sep 01 10:34:16.280045 2023] [php:warn] [pid 1104:tid 1848] [client ::1:53659] PHP Warning:  Undefined variable $parameters in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\js\\eye_base.php on line 3421, referer: http://localhost/openemr/interface/forms/eye_mag/a_issue.php?uniqueID=1771814809&form_type=POH&pid=1&encounter=2&form_id=1
> [Fri Sep 01 10:34:16.692881 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Undefined variable $arrPLAN in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 3975, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.700878 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Undefined variable $currvalue in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4022, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.715888 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4065, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.715888 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4066, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.715888 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4072, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.723363 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4081, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.732572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4145, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.732572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4148, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.732572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4151, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.733572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4154, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.733572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4157, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.733572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4160, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.733572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4164, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.733572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4167, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.733572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4170, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.733572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4173, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:34:16.733572 2023] [php:warn] [pid 1104:tid 1816] [client ::1:53650] PHP Warning:  Trying to access array offset on value of type bool in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\view.php on line 4176, referer: http://localhost/openemr/interface/patient_file/encounter/load_form.php?formname=eye_mag
> [Fri Sep 01 10:52:23.310653 2023] [php:warn] [pid 1104:tid 1832] [client ::1:53867] PHP Warning:  Undefined variable $ODVA_1 in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\report.php on line 553, referer: http://localhost/openemr/interface/patient_file/encounter/encounter_top.php?set_encounter=2
> [Fri Sep 01 10:52:23.310653 2023] [php:warn] [pid 1104:tid 1832] [client ::1:53867] PHP Warning:  Undefined variable $OSVA_1 in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\report.php on line 553, referer: http://localhost/openemr/interface/patient_file/encounter/encounter_top.php?set_encounter=2
> [Fri Sep 01 10:52:23.311652 2023] [php:warn] [pid 1104:tid 1832] [client ::1:53867] PHP Warning:  Undefined variable $ODNEARVA_1 in D:\\xampp\\htdocs\\openemr\\interface\\forms\\eye_mag\\report.php on line 602, referer: http://localhost/openemr/interface/patient_file/encounter/encounter_top.php?set_encounter=2

Hi DOCTOR_eye,

Its is php version error you can use ini_set(‘display_errors’,false); in globals.php begining of code.

Thanks ,
Param,
help@capminds.com](mailto:help@capminds.com)