Manage duplicates- 2 bugs - intermitent authentication error, loose window

(1) intermitently, but frequently, when one does a ‘refresh’ the manage duplicates page crashes leaving a white screen and the message ‘authentication error’. One has to restart from the menu admin/patients/manage duplicates . It seems to happen sometimes if a users’ record in the data base is changed.

(2) when one opens a patient’s dashboard from the duplicates table (by clicking on their pid) a brand new browser window is opened, with the same user logged in. In my opinion this should not happen. See the attached image where two patients’ demographics have been opened - resulting in 3 browser windows onto the same instance of an openemr server:
mulis

I’m using OpenEMR version 7 patch 2
I’m using: firefox
I’m using: docker on suse linux

php logs:
for (1)
[Mon Feb 06 17:46:02.152969 2023] [php:notice] [pid 253] [client 192.168.144.1:53638] OpenEMR CSRF token authentication error, referer: http://localhost:8300/interface/patient_file/manage_dup_patients.php

for (2) loosing the window

[Tue Feb 07 09:10:07.233827 2023] [php:warn] [pid 243] [client 192.168.144.1:37918] PHP Warning:  Undefined variable $frame2target in /var/www/localhost/htdocs/openemr/interface/main/main_screen.php on line 510, referer: http://localhost:8300/interface/patient_file/manage_dup_patients.php
[Tue Feb 07 09:10:07.233844 2023] [php:warn] [pid 243] [client 192.168.144.1:37918] PHP Warning:  Undefined variable $frame2label in /var/www/localhost/htdocs/openemr/interface/main/main_screen.php on line 511, referer: http://localhost:8300/interface/patient_file/manage_dup_patients.php
[Tue Feb 07 09:10:12.301430 2023] [php:notice] [pid 244] [client 192.168.144.1:37932] OpenEMR CSRF token authentication error, referer: http://localhost:8300/interface/patient_file/summary/demographics.php?set_pid=12
[Tue Feb 07 09:10:12.306713 2023] [php:notice] [pid 253] [client 192.168.144.1:37936] OpenEMR CSRF token authentication error, referer: http://localhost:8300/interface/patient_file/summary/demographics.php?set_pid=12 ```

I am getting similar “Authentication Error” messages when navigating to patient information from the quick search and other areas. It doesn’t present itself when I navigate from Patients > New/Search > Click on Patient. But any other navigation path receives the error.

The apache error_log displays:

[Sun Mar 17 18:28:57.909734 2024] [php:notice] [pid 26] [client XXXX:62628] OpenEMR CSRF token authentication error, referer: https://some domain.org/interface/main/tabs/main.php?token_main=1kq78dUeiKGPhVCZ7UIWCAZJjOmYzvmmbil9w0tu
[Sun Mar 17 18:28:57.924637 2024] [php:notice] [pid 28] [client XXXX:62629] OpenEMR CSRF token authentication error, referer: https://some domain.org/interface/main/tabs/main.php?token_main=e2ysHiYQtYqVMS9bHVzmsGe4sI7EVhn9JAQPNs2o

Our instance was upgraded from 7.0.1 to 7.0.2 yesterday.

If I find any details, I will update this thread.