Hi. I’ve set up a cron job to process email, but as soon as I run the PHP script I get an email notifying me that
“Due to repeated event failures, your Test FUS campaign has been unpublished. The failing event is named Email Number one.”
That email is the first in a test follow-up sequence I’ve set up. The first email should go out immediately to a new user upon registering.
When I run the PHP file directly, it outputs the following line:
“Command ‘php bin/console messenger:messages:send’ failed with return code 1. Output:”
Error log shows the following line:
“[2025-01-18T00:02:07.042357+01:00] mautic.ERROR: Symfony\Component\Console\Exception\NamespaceNotFoundException: There are no commands defined in the “messenger:messages” namespace. Did you mean one of these? mautic:messages messenger messenger:failed (uncaught exception) at /home/clients/b93156fc8077f844c065e6ca9fd131b7/sites/list.cyberfreedom.club/vendor/symfony/console/Application.php line 650 while running console command
UNKNOWN
[stack trace] #0…”
Email settings are set to use my host’s SMTP. This is working fine for test emails.
Could a non-existent email address cause a failure here? I’m doubtful.
Any other ideas please? I’m stuck at this point.
Your software
My Mautic version is: v5.1.1
My PHP version is: 8.1.29
My Database type and version is: MariaDB 10.6.19