Ophthalmology-undefined variables -array offset eye_mag_functions.php

Situation
Error messages eye_mag_functions.php

OpenEMR Version
I’m using OpenEMR version 7.0.2

Browser:
I’m using: edge/chrome/firefox

Operating System
I’m using: W11

Search
Forums searched. Solutions included downgrading XAMPP version or entering an ignore line? Not sure of correct solution?

Logs
Extract form logs included here?
Pasted here (``` [Mon Jan 15 10:03:01.297670 2024] [php:warn] [pid 25296:tid 1900] [client 127.0.0.1:61308] PHP Warning: Trying to access array offset on value of type bool in C:\xampp\htdocs\openEMR\interface\forms\eye_mag\php\eye_mag_functions.php on line 3791, referer: http://localhost/openEMR/interface/patient_file/encounter/encounter_top.php?set_encounter=7
[Mon Jan 15 10:03:02.045116 2024] [php:warn] [pid 25296:tid 1900] [client 127.0.0.1:61308] PHP Warning: Undefined variable $k in C:\xampp\htdocs\openEMR\interface\forms\eye_mag\php\eye_mag_functions.php on line 4911, referer: http://localhost/openEMR/interface/patient_file/encounter/encounter_top.php?set_encounter=7
[Mon Jan 15 10:03:02.045116 2024] [php:warn] [pid 25296:tid 1900] [client 127.0.0.1:61308] PHP Warning: Undefined variable $k in C:\xampp\htdocs\openEMR\interface\forms\eye_mag\php\eye_mag_functions.php on line 4922, referer: http://localhost/openEMR/interface/patient_file/encounter/encounter_top.php?set_encounter=7
[Mon Jan 15 10:03:04.832844 2024] [php:notice] [pid 25296:tid 1104] [client 127.0.0.1:61310] [2024-01-15T10:03:04.828162+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=3

hi @jonjof , have a PR up right now that will clean up these warnings and fix the tension graphing.

Thanks Stephen
Does this mean there is a new file I can use to replace the current one, or that only changes can eb currently replaced? I see some other messages such as this one. Is this a related issue or might there be a problem on my actual installation?
"“Trying to access array offset on value of type bool in C:\xampp\htdocs\openEMR\interface\forms\eye_mag\php\eye_mag_functions.php on line 3791"”

they’re just warnings that affect everyone however they don’t interfere with functioning so no need to fix

the changes to the charting will need to be fixed as well as other issues that you may note relating to the functionality

thanks - noted
another thing I notice on the eye section, there does not appear to be any “Save” option. I assume entries made are immediately applied or am I missing somethng?

1 Like

Appreciated – thanks

~WRD157.jpg