# Main Tab Report MPDF error

**URL:** <https://community.open-emr.org/t/main-tab-report-mpdf-error/23778>\
**Category:** Support\
**Created:** [November 7, 2024, 1:45am UTC](https://community.open-emr.org/t/main-tab-report-mpdf-error/23778 "2024-11-07T01:45:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![toddmleleux](https://community.open-emr.org/user_avatar/community.open-emr.org/toddmleleux/32/18862_2.png) [@toddmleleux](https://community.open-emr.org/u/toddmleleux)\
**Post date:** [November 7, 2024, 1:45am UTC](https://community.open-emr.org/t/main-tab-report-mpdf-error/23778/1 "2024-11-07T01:45:31Z")

</div>

**Situation**  
From the main tab at top of page, when using reports, black forms, core, demographics the following error occurs

**Fatal error** : Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void in **/var/www/xxx/openemr/vendor/mpdf/psr-log-aware-trait/src/MpdfPsrLogAwareTrait.php** on line **15**

**OpenEMR Version**  
I’m using OpenEMR version  
7.0.2 patch 2  
**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:41:29.874468 2024] [php:error] [pid 575624] [client 72.206.76.140:49617] PHP Fatal error: Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void in /var/www/xxx/openemr/vendor/mpdf/psr-log-aware-trait/src/MpdfPsrLogAwareTrait.php on line 15, referer: [https://xxx/interface/main/tabs/main.php?token\_main=3lOrKMgGeQigF6rflfOzQvDIFRym8VFIOdMQXdeq```](https://xxx/interface/main/tabs/main.php?token_main=3lOrKMgGeQigF6rflfOzQvDIFRym8VFIOdMQXdeq%60%60%60)

---

<div class="post-metadata">

**Author:** ![ninjatx](https://community.open-emr.org/letter_avatar_proxy/v4/letter/n/898d66/32.png) [@ninjatx](https://community.open-emr.org/u/ninjatx)\
**Post date:** [November 7, 2024, 3:39pm UTC](https://community.open-emr.org/t/main-tab-report-mpdf-error/23778/2 "2024-11-07T15:39:20Z")

</div>

@toddmleleux The fix is here: [Unable to create PDF Report, error with Mpdf](https://community.open-emr.org/t/unable-to-create-pdf-report-error-with-mpdf/23729)

---

<div class="post-metadata">

**Author:** ![toddmleleux](https://community.open-emr.org/user_avatar/community.open-emr.org/toddmleleux/32/18862_2.png) [@toddmleleux](https://community.open-emr.org/u/toddmleleux)\
**Post date:** [November 7, 2024, 3:47pm UTC](https://community.open-emr.org/t/main-tab-report-mpdf-error/23778/3 "2024-11-07T15:47:09Z")

</div>

Thank you. I deleted PSR and my main Reports pdf generation was restored.

Todd
