i run a test/development system, v 7.0.4-dev, under docker. recently, after updating from master, i’m getting the following message when i log in as admin:
as i only have made up test data i don’t want to submit usage data, but there seems to be no way to say so - i untick the consent box and press ‘submit’ but nothing happens - ‘ask again later’ gets rid of the message but only till i next log on. This feels like a bug? i’ll investigate, unless anyone has an answer
ah yes, it produces an error in the logs
[Tue Apr 29 17:49:45.981080 2025] [php:warn] [pid 385:tid 385] [client 172.18.0.1:36290] PHP Warning: Undefined array key “telemetry_disabled” in /var/www/localhost/htdocs/openemr/interface/product_registration/product_registration_controller.php on line 28, referer: http://localhost:8300/interface/main/tabs/main.php?token_main=GU84iwtiEAlibeeXKR1EgRlB8EHmOIjsOzrmpOaa
ah, i hadn’t updated my db. That has sorted the logs php error warning above .
but getting another error. In the db table ‘product registration’ which was updated the field ‘telemetry disabled’ had been left as ‘null’.
not sure how to get it set via the user interface, but using phpmyadmin to give it the value ‘1’ (telemetry disabled) stops the message above from being displayed during admin log on, but there is still an error message in the logs:
[Wed Apr 30 15:08:25.483636 2025] [php:warn] [pid 276:tid 276] [client 172.18.0.1:44350] PHP Warning: session_destroy(): Trying to destroy uninitialized session in /var/www/localhost/htdocs/openemr/src/Common/Session/SessionUtil.php on line 324, referer: http://localhost:8300/interface/login/login.php?site=default
null is wanted and needed to present dialog for telemetry. null show dilog for telemetry, 0 is optin, 1 optout.
I’ve tested the original a dozen times on windows and linux even if sql_update wasn’t ran. The problem cleared itself once db update was ran. Manually modify database was not needed if you either gave an email and selected optin/out of telemetry.
Not clicking submit will keep showing module until the dialog is answered.
There was a bug Brady fixed that would showed the Product Is Registered regardless its correct state.
thanks. i was clearing the tick box and then clicking ‘submit’, but that did not get rid of the message. so that’s why i manually changed the db. in the db the item’s defined as int, so phpmyadmin won’t let me put ‘null’ back to retest it. I’m on ubuntu linux.
i didn’t see an opportunity to give an email address, i didn’t really want to hit ‘submit’ with the box ticked, as i don’t want to take part.
so, in any case, it’s no longer bothering me, and i’m sure it’ll be sorted. thanks for your help
ah thanks. Yes, reset to null. Now the message is appearing again. unticked the consent box, pressed ‘submit’ and nothing happens. meanwhile the same warning in the logs
[Wed Apr 30 18:47:31.641409 2025] [php:warn] [pid 276:tid 276] [client 172.18.0.1:53376] PHP Warning: session_destroy(): Trying to destroy uninitialized session in /var/www/localhost/htdocs/openemr/src/Common/Session/SessionUtil.php on line 324, referer: http://localhost:8300/interface/login/login.php?site=default