Reports, downloading pdf of procedure orders

Situation
when generating a report fromt the encounter, when selecting download pdf I get this error:

Fatal error : Declaration of Mpdf\PsrHttpMessageShim\Request::getRequestTarget() must be compatible with Psr\Http\Message\RequestInterface::getRequestTarget(): string in /var/www/xxxx/openemr/vendor/mpdf/psr-http-message-shim/src/Request.php on line 69
OpenEMR Version
I’m using OpenEMR version
7.0.2 patch 1
Browser:
I’m using: Chrome/Firefox

Operating System
I’m using: Ubuntu22 LTS

Search
Did you search the forum for similar questions?

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

[Thu Oct 17 14:19:25.203504 2024] [php:notice] [pid 157839] [client 72.206.76.140:11565] [2024-10-17T14:19:25.203366-05:00] OpenEMR.DEBUG: TeleconferenceRoomController->dispatch() {"action":"get_telehealth_settings","queryVars":{"action":"get_telehealth_settings","v":"76","pid":"37527","authUser":"xxx"},"isPatient":""} [], referer: https://xxx/interface/main/calendar/add_edit_event.php?date=20241204&eid=3393
[Thu Oct 17 14:22:52.571072 2024] [php:error] [pid 157839] [client 72.206.76.140:33249] PHP Fatal error:  Declaration of Mpdf\\PsrHttpMessageShim\\Request::getRequestTarget() must be compatible with Psr\\Http\\Message\\RequestInterface::getRequestTarget(): string in /var/xxx/openemr/vendor/mpdf/psr-http-message-shim/src/Request.php on line 69, referer: https://www/xxx/interface/patient_file/report/patient_report.php```
[

hi @toddmleleux , when you go to Admin->System->Diagnostics what version of php are you running?

Name Value
CMS Version 0.7.2.6-Phoenix
Sitename
url /interface/main/calendar/
PHP Version 8.1.2-1ubuntu2.19

thanks, guessing the mpdf package might be out of date with php 8.1

Is this something I can update with composer or sudo apt update?

That would be the way to update it, be nice to reproduce this error first off. Do you have any special documents or forms that are selected in that page?

I’ve seen MPDF use Guzzle PSR dependency. I found this when my Fax using Ring Central vendor and module has Guzzle installed in the modules scope! Strange but I had to remove the Guzzle PSR forcing it to use openemr core PSR.
Just saying don’t discount a strangeness with MPDF.
The shim is suppose to solve version compatibility I though but SW is prob right.

its when i try to do the procedure orders for labs. I have not tried others but i can an report back.

yes its all the download links for each section of the reports that errors

This error persists after composer update. On demo with no modules enabled it works. After enabling Fax SMS module it wont generate the report. Perhaps SP is right and there is an issue with PSR guzzle.

Todd

Hi @toddmleleux , this will be fixed in patch 3 due out early December.

I already had this fix in patch 2 so, @toddmleleux are you on patch 2?

Yes im on patch 2 of v 7.0.2

Todd. I can try and disable other modules and test and report back.

Todd

It was brought into the 702 branch just recently after patch 2 went out. I think this is the quick zip fix to tide us over.