Support

Admin Tools

#39658 Admintools sending emails gives a 500 error

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.4.0
PHP version
8.1
Admin Tools version
7.4.3

Latest post by tampe125 on Thursday, 19 October 2023 05:34 CDT

activha

Hello

 

Just upgraded to joomla 4.4.0 and it seems that Admintools sends an exception each time that there is an error somewhere.

The issue seems to be with joomla mailer and the stack trace is :

 

TypeError:
Joomla\CMS\Mail\MailerFactory::createMailer(): Return value must be of type Joomla\CMS\Mail\MailerInterface, Joomla\CMS\Mail\Mail returned

  at /var/www/vhosts/cercle.business/html/libraries/src/Mail/MailerFactory.php:106
  at Joomla\CMS\Mail\MailerFactory->createMailer()
     (/var/www/vhosts/cercle.business/html/libraries/src/Factory.php:708)
  at Joomla\CMS\Factory::createMailer()
     (/var/www/vhosts/cercle.business/html/libraries/src/Factory.php:490)
  at Joomla\CMS\Factory::getMailer()
     (/var/www/vhosts/cercle.business/html/plugins/system/admintools/src/Feature/EmailOnPHPException.php:93)
  at Akeeba\Plugin\System\AdminTools\Feature\EmailOnPHPException->onError()
     (/var/www/vhosts/cercle.business/html/plugins/system/admintools/src/Extension/AdminTools.php:747)
  at Akeeba\Plugin\System\AdminTools\Extension\AdminTools->runVoidFeature()
     (/var/www/vhosts/cercle.business/html/plugins/system/admintools/src/Extension/AdminTools.php:301)
  at Akeeba\Plugin\System\AdminTools\Extension\AdminTools->onError()
     (/var/www/vhosts/cercle.business/html/libraries/vendor/joomla/event/src/Dispatcher.php:486)
  at Joomla\Event\Dispatcher->dispatch()
     (/var/www/vhosts/cercle.business/html/libraries/src/Application/EventAware.php:111)
  at Joomla\CMS\Application\WebApplication->triggerEvent()
     (/var/www/vhosts/cercle.business/html/libraries/src/Application/CMSApplication.php:320)
  at Joomla\CMS\Application\CMSApplication->execute()
     (/var/www/vhosts/cercle.business/html/includes/app.php:61)
  at require_once('/var/www/vhosts/cercle.business/html/includes/app.php')
     (/var/www/vhosts/cercle.business/html/index.php:32)   

 

Can you suggest something to fix this ?

Thanks a lot

Regards

Jean

activha

Seems the culprit is Acymailing plugin trying to override joomla emails, nothing to do with Admin Tools

tampe125
Akeeba Staff

Thank you very much for the update!

We will contact AcyMail to report the issue.

Thanks again!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!