The following debug stack trace appears. I've got the latest Joomla 4 and jDownloads installed, but the last Joomla update broke the email monitoring function of jDownloads. I've have and had Joomla SMTP mail configured.
Joomla\CMS\Mail\MailerFactory::createMailer(): Return value must be of type Joomla\CMS\Mail\MailerInterface, Joomla\CMS\Mail\Mail returned
/home/........./public_html/libraries/src/Mail/MailerFactory.php:106
Call stack
# Function Location
1 () JROOT/libraries/src/Mail/MailerFactory.php:106
2 Joomla\CMS\Mail\MailerFactory->createMailer() JROOT/libraries/src/Factory.php:708
3 Joomla\CMS\Factory::createMailer() JROOT/libraries/src/Factory.php:490
4 Joomla\CMS\Factory::getMailer() JROOT/components/com_jdownloads/src/Helper/JDHelper.php:3586
5 JDownloads\Component\JDownloads\Site\Helper\JDHelper::sendMailDownload() JROOT/components/com_jdownloads/src/Controller/DownloadController.php:935
6 JDownloads\Component\JDownloads\Site\Controller\DownloadController->send() JROOT/libraries/src/MVC/Controller/BaseController.php:693
7 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
8 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/components/com_jdownloads/src/Dispatcher/Dispatcher.php:60
9 JDownloads\Component\JDownloads\Site\Dispatcher\Dispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
10 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
11 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
12 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
13 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
14 require_once() JROOT/index.php:32
Hi
Thanks for the postand error report.
When you say the latest do you mean jD4.0.36 and Joomla 4.4.0 ? - Not sure that jD works in all aspects with Joomla 5
Which jD mail item were you using?
Have you set up the PHP mail function in the Joomla Global Configuration? Is that what you meant when you said "I've have and had Joomla SMTP mail configured."
I will do some testing as I have not checked email items for some time!!!
Colin
Yes, let me write down some more details:
- Joomla 4.4
- jDownloads 4.0.36
- E-Mail Configuration for Downloads: Enabled
On second notice, I just went back to Joomla to write the details above. Then I tried the Joomla "send test mail", which failed. So, let me also investigate some more. Somehow I updated to J4.4, updated to PHP8.1 and JD4036. All to get it to work, but something else might still be wrong. I'll get back here as well.
Update: Seems, more reports are coming in: https://issues.joomla.org/tracker/joomla-cms/42164
Sorry, not your fault at all. It appeared the website was missing an update of AcyMailing, which broke the Joomla Mail Function.
So, all is good again.