MailCatcher v2 : error in administrator/components/com_mailcatcher/src/Controll…

More
4 days 17 hours ago #21773 by arnaud@agdg.fr
Joomla 6.1.0
MailCatcher v2.0

in administrator/components/com_mailcatcher/src/Controller/DisplayController.php:

error "Call to protected method Joomla\CMS\Application\CMSApplication::getContainer() from scope Joomla\Component\Mailcatcher\Administrator\Controller\DisplayController"

I had to change (line 33):

$db = $this->app->getContainer()->get(DatabaseInterface::class);

to :

use Joomla\CMS\Factory;
$db = Factory::getDbo();

Works properly now.
Please tell if it helps.

Please Log in or Create an account to join the conversation.

More
3 days 23 hours ago #21774 by solidres
Hi,

Thank you for your update, a new Mail Catcher version would be released soon to fix this issue.

Regards,

Please Log in or Create an account to join the conversation.

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?