Report errors after 7.0.2 patch 2 update

Situation
From the patient dashboard, when clicking the tab for report the following error occurs

Not Found

The requested URL was not found on this server.

This tab worked before the patch 2 update however, as in a previous post the download pdf function was broken presumably from mpdf incompatability issue with php8.1

OpenEMR Version
I’m using OpenEMR version
7.0.2 patch 2 update

Browser:
I’m using:
chrome/firefox

Operating System
I’m using:
Ubuntu 22 LTS

Search
Did you search the forum for similar questions?
Yes

Logs
Did you check 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

[Wed Nov 06 19:33:54.691710 2024] [php:notice] [pid 577354] [client 72.206.76.140:49966] [2024-11-06T19:33:54.691597-06:00] OpenEMR.DEBUG: buildPatientArray() {"patient_id":"1","provider":"","pat_prov_rel":"primary","start":"","batchSize":"","onlyCount":"","billing_facility":""} [], referer: https://xxx/interface/main/tabs/main.php?token_main=3lOrKMgGeQigF6rflfOzQvDIFRym8VFIOdMQXdeq
[Wed Nov 06 19:33:59.946047 2024] [php:notice] [pid 577354] [client 72.206.76.140:49966] [2024-11-06T19:33:59.945821-06:00] OpenEMR.DEBUG: buildPatientArray() {"patient_id":"1","provider":"","pat_prov_rel":"primary","start":"","batchSize":"","onlyCount":"","billing_facility":""} [], referer: https://xxx/interface/patient_file/summary/demographics.php?set_pid=1
[Wed Nov 06 19:34:00.051492 2024] [php:notice] [pid 578924] [client 72.206.76.140:18023] [2024-11-06T19:34:00.051380-06:00] OpenEMR.DEBUG: buildPatientArray() {"patient_id":"1","provider":"","pat_prov_rel":"primary","start":"","batchSize":"","onlyCount":"","billing_facility":""} [], referer: https://xxx/interface/patient_file/summary/demographics.php?set_pid=1```

This may be because of the way my server is configured. I do not use www.xxxx.com for my address and use xxx.com instead. In the logs I removed my address to avoid being targeted but in the error log its trying to reach www.xxx.com instead of xxx.com. Could this be the issue. I have my prior globals.php file backed up but cant locate where the code for report url is generated. The other functions of my dashboard appear to work as before.

Todd

I have used my backup globals.php and the entire patient_file/report folder into the new patch and the problem remains. Please help as i am now unsure if my url is an issue. I see other logs using the www sub without issue and my www is forwarded to my webroot in virtualhost. This was not an issue before.

Todd

BTW, i have deleted cookies, cache and restarted the browser without resolution of the broken link.

Todd

Did you delete the psr folder ?

Hello and thanks for the reply. Removing psr directory solved the problem posted in the other thread (with mpdf error), but the issue from the patient dashboard report (not reports) tab is still broken (URL not found) after patch 2.

here are the access logs where you can see the url in some services without the www sub and with

72.206.76.140 - - [07/Nov/2024:07:56:00 -0600] "POST /library/ajax/dated_reminders_counter.php HTTP/1.1" 200 1366 "https://xxx/interface/main/tabs/main.php?token_main=g7FYQtQuocfmJR6P12MwAVtwApavJRytrp4NXVCR" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0"
72.206.76.140 - - [07/Nov/2024:07:56:01 -0600] "POST /interface/main/dated_reminders/dated_reminders.php HTTP/1.1" 200 512 "https://xxx/interface/main/messages/messages.php?form_active=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0"
72.206.76.140 - - [07/Nov/2024:07:56:10 -0600] "POST /library/ajax/execute_background_services.php HTTP/1.1" 200 919 "https://xxx/interface/main/tabs/main.php?token_main=g7FYQtQuocfmJR6P12MwAVtwApavJRytrp4NXVCR" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0"
72.206.76.140 - - [07/Nov/2024:07:56:14 -0600] "POST /library/ajax/dated_reminders_counter.php HTTP/1.1" 200 1175 "https://www.xxx/interface/main/tabs/main.php?token_main=lwFr15VRy9do3JzGVfP1LZCJHQMLEyPlIGmYrQD7" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"

sorry i forget the get access ones with failures

72.206.76.140 - - [07/Nov/2024:07:55:37 -0600] "GET /interface/report/patient_report.php HTTP/1.1" 404 1069 "https://www.xxx/interface/main/tabs/main.php?token_main=lwFr15VRy9do3JzGVfP1LZCJHQMLEyPlIGmYrQD7" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
72.206.76.140 - - [07/Nov/2024:07:55:39 -0600] "GET /interface/report/patient_report.php HTTP/1.1" 404 521 "https://www.xxx/interface/main/tabs/main.php?token_main=lwFr15VRy9do3JzGVfP1LZCJHQMLEyPlIGmYrQD7" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"

looks like a problem with the prior auth module, should be

"url": "/interface/patient_file/report/patient_report.php",

I agree. What file contains the code that writes this url. Everything else works and as I have said I swapped the globals, and patient_report.php files with no success.

Todd

Thank you. This fixed the url issue.

Todd

If I remember this was fixed in patch. I think by Sherwin…