Mandrill is not working on the new version

Hello,



Mandrill is not working on the new version. I get the following error: [22-Jun-2015 14:48:09 America/Sao_Paulo] PHP Fatal error: Call to a member function getTranslator() on a non-object in /home/public_html/inboundmarketing/app/bundles/CoreBundle/Swiftmailer/Transport/MandrillTransport.php on line 74



What can I do to correct it?



Thanks

Hello,

Mandrill is not working on the new version. I get the following error: [22-Jun-2015 14:48:09 America/Sao_Paulo] PHP Fatal error: Call to a member function getTranslator() on a non-object in /home/public_html/inboundmarketing/app/bundles/CoreBundle/Swiftmailer/Transport/MandrillTransport.php on line 74

What can I do to correct it?

Thanks

Any word on this? I’m getting the same error using a new install (latest stable) and queued send.

Hi, I configured Mautic to use Mandrill API for email sending, but the email is sent for me without any error in the logs. Could you specify what you mean by “the new version”? Is it 1.1.2 or 1.1.3-dev? Could you describe steps to recreate the issue?

Hi @escopecz

I’m experiencing the same problem sending with Mandrill using version 1.1.2

I can perform a successful “Test connection” so it is configured properly, but when I try to “Send test email” the email is not sent and I see this error in the server’s error_log:

mod_fcgid: stderr: PHP Fatal error:  Call to a member function getTranslator() on a non-object in /var/www/vhosts/mydomain.com/httpdocs/mautic/app/bundles/CoreBundle/Swiftmailer/Transport/MandrillTransport.php on line 74, referer: http://mydomain.com/mautic/s/config/edit

Good evening

@intelligenzia and @escopecz:

Got the same problem and reported it here (last comment):

https://github.com/mautic/mautic/issues/570

Fixed it locally with adding

    $factory = $container->get('mautic.factory');
    if (method_exists($transport, 'setMauticFactory')) {
                    $transport->setMauticFactory($factory);
    } 

to app/bundles/CoreBundle/Command/ProcessEmailQueueCommand.php

Happens in v1.2.1 Queue Mailed sending with Mandrill when you call the command app/console mautic:email:process --env=prod

@seti:

this bug was fixed in this issue https://github.com/mautic/mautic/issues/570 and is part of mautic version 1.1.3 (not official released yet. see https://github.com/mautic/mautic/releases ). Also waiting for the release.

Think they are 10 open bugs to close before they release? https://github.com/mautic/mautic/milestones/1.1.3

Greetings
Sebastian