- Posts: 22
- Thank you received: 0
J5 - Compile Error Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $
- Jamie Gilbert
-
Topic Author
- Offline
- Junior Member
-
Less
More
1 year 11 months ago #163932
by Jamie Gilbert
J5 - Compile Error Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $ was created by Jamie Gilbert
Hi I have a copy of our website and testing J5, Membership Pro is the latest version.
Not sure if you are aware of this as yet, when creating a new member, on save I get this error
Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): voidSymfony\Component\ErrorHandler\Error\ FatalErrorShow exception propertiesSymfony\Component\ErrorHandler\Error\FatalError {#4073 ▼
-error: array:4 [▶]
}
in /var/www/vhosts/trackyourassets.com.au/hopeful-wing.111-67-29-104.plesk.page/plugins/osmembership/mpdf/mpdf/src/Mpdf.php (line 1558)
Thanks
Jamie
Not sure if you are aware of this as yet, when creating a new member, on save I get this error
Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): voidSymfony\Component\ErrorHandler\Error\ FatalErrorShow exception propertiesSymfony\Component\ErrorHandler\Error\FatalError {#4073 ▼
-error: array:4 [▶]
}
in /var/www/vhosts/trackyourassets.com.au/hopeful-wing.111-67-29-104.plesk.page/plugins/osmembership/mpdf/mpdf/src/Mpdf.php (line 1558)
-
Code:[color=var(--highlight-keyword)] [/color][color=var(--highlight-comment)]/** [/color]
-
Code:[color=var(--highlight-comment)] * @param \Psr\Log\LoggerInterface [/color]
-
Code:[color=var(--highlight-comment)] * [/color]
-
Code:[color=var(--highlight-comment)] * @return \Mpdf\Mpdf [/color]
-
Code:[color=var(--highlight-comment)] */ [/color]
-
Code:[color=var(--highlight-comment)] [/color][color=var(--highlight-keyword)]public function [/color][color=var(--highlight-default)]setLogger[/color][color=var(--highlight-keyword)]([/color][color=var(--highlight-default)]LoggerInterface $logger[/color][color=var(--highlight-keyword)]) [/color]
-
Code:[color=var(--highlight-keyword)] { [/color]
-
Code:[color=var(--highlight-keyword)] [/color][color=var(--highlight-default)]$this[/color][color=var(--highlight-keyword)]->[/color][color=var(--highlight-default)]logger [/color][color=var(--highlight-keyword)]= [/color][color=var(--highlight-default)]$logger[/color][color=var(--highlight-keyword)]; [/color]
-
Code:[color=var(--highlight-keyword)] foreach ([/color][color=var(--highlight-default)]$this[/color][color=var(--highlight-keyword)]->[/color][color=var(--highlight-default)]services [/color][color=var(--highlight-keyword)]as [/color][color=var(--highlight-default)]$name[/color][color=var(--highlight-keyword)]) { [/color]
-
Code:[color=var(--highlight-keyword)] if ([/color][color=var(--highlight-default)]$this[/color][color=var(--highlight-keyword)]->[/color][color=var(--highlight-default)]$name [/color][color=var(--highlight-keyword)]&& [/color][color=var(--highlight-default)]$this[/color][color=var(--highlight-keyword)]->[/color][color=var(--highlight-default)]$name [/color][color=var(--highlight-keyword)]instanceof [/color][color=var(--highlight-default)]\Psr\Log\LoggerAwareInterface[/color][color=var(--highlight-keyword)]) { [/color]
Thanks
Jamie
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
1 year 11 months ago #163933
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic J5 - Compile Error Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $
Hi Jamie
Please update your site to this updated package joomdonation.com/downloads/plg_osmembership_mpdf_joomla5.zip of the plugin. After that, the error will be gone
Regards,
Tuan
Please update your site to this updated package joomdonation.com/downloads/plg_osmembership_mpdf_joomla5.zip of the plugin. After that, the error will be gone
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Jamie Gilbert
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
1 year 11 months ago #163939
by Jamie Gilbert
Replied by Jamie Gilbert on topic J5 - Compile Error Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $
Thanks, that fixed it.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
1 year 11 months ago #163940
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic J5 - Compile Error Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $
Great. Thanks for confirming Jamie !
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Brian Plecas
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
3 days 59 minutes ago - 3 days 43 minutes ago #176345
by Brian Plecas
Replied by Brian Plecas on topic J5 - Compile Error Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $
I am receiving this error in Eventsbooking after a member signups for an event and the ticket is generated and emailed.
Eventsbooking Version: 5.3.1
Joomla Version: 6.01
Compile Error: Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void
Eventsbooking Version: 5.3.1
Joomla Version: 6.01
Compile Error: Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void
Last edit: 3 days 43 minutes ago by Brian Plecas. Reason: added to private message as well
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 days 40 minutes ago #176346
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic J5 - Compile Error Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $
Hi Brian
Just install and use the version of the plugin for Joomla 5/Joomla 6 here joomdonation.com/downloads/plg_osmembership_mpdf_joomla5.zip and it will work well
Regards,
Tuan
Just install and use the version of the plugin for Joomla 5/Joomla 6 here joomdonation.com/downloads/plg_osmembership_mpdf_joomla5.zip and it will work well
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.