- Posts: 2
- Home
- Forum
- Community Forum
- General discussions
- Extras with radio button
- Forum
- Community Forum
- Report bugs
- MailCatcher v2 : error in administrator/components/com_mailcatcher/src/Controll…
MailCatcher v2 : error in administrator/components/com_mailcatcher/src/Controll…
- arnaud@agdg.fr
- Topic Author
- Offline
Less
More
4 days 17 hours ago #21773
by arnaud@agdg.fr
MailCatcher v2 : error in administrator/components/com_mailcatcher/src/Controll… was created 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.
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.
- solidres
-
- Offline
Less
More
- Posts: 3046
3 days 23 hours ago #21774
by solidres
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
Replied by solidres on topic MailCatcher v2 : error in administrator/components/com_mailcatcher/src/Controll…
Hi,
Thank you for your update, a new Mail Catcher version would be released soon to fix this issue.
Regards,
Thank you for your update, a new Mail Catcher version would be released soon to fix this issue.
Regards,
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
Please Log in or Create an account to join the conversation.
Moderators: solidres