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```
[
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.
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.