Version 1.1 Cron Jobs

The Campaign cron job to add people in a lead list to a campaign has stopped working since the upgrade… For me anyway.



Running it via a secure shell this is the messaging I get… (It’s correctly identifying 5 people to add, but doesn’t add them…)



Rebuilding leads for campaign 8



Warning: date_default_timezone_get(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/London’ for ‘BST/1.0/DST’ instead in /var/sites/a/abelard-uk.com/public_html/m/app/bundles/CoreBundle/Helper/DateTimeHelper.php on line 68



Warning: date_default_timezone_get(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/London’ for ‘BST/1.0/DST’ instead in /var/sites/a/abelard-uk.com/public_html/m/app/bundles/CoreBundle/Helper/DateTimeHelper.php on line 77

5 total lead(s) to be added in batches of 300

0/5 [>---------------------------] 0%





[Exception]

DateTime::__construct(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/London’ for ‘BST/1.0/DST’ instead



mautic:campaigns:update [-l|–batch-limit[="…"]] [-m|–max-leads[="…"]] [-i|–campaign-id[="…"]] [-f|–force]





Any ideas?

The Campaign cron job to add people in a lead list to a campaign has stopped working since the upgrade… For me anyway.

Running it via a secure shell this is the messaging I get… (It’s correctly identifying 5 people to add, but doesn’t add them…)

Rebuilding leads for campaign 8

Warning: date_default_timezone_get(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/London’ for ‘BST/1.0/DST’ instead in /var/sites/a/abelard-uk.com/public_html/m/app/bundles/CoreBundle/Helper/DateTimeHelper.php on line 68

Warning: date_default_timezone_get(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/London’ for ‘BST/1.0/DST’ instead in /var/sites/a/abelard-uk.com/public_html/m/app/bundles/CoreBundle/Helper/DateTimeHelper.php on line 77
5 total lead(s) to be added in batches of 300
0/5 [>---------------------------] 0%

[Exception]
DateTime::__construct(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/London’ for ‘BST/1.0/DST’ instead

mautic:campaigns:update [-l|–batch-limit[="…"]] [-m|–max-leads[="…"]] [-i|–campaign-id[="…"]] [-f|–force]

Any ideas?

The mail cron job also reports an error…

/usr/bin/php-5.4 [path to my site]/app/console mautic:email:process --env=prod

[SymfonyComponentDependencyInjectionExceptionServiceNotFoundException]
You have requested a non-existent service “swiftmailer.transport.real”.

mautic:send:emails [–message-limit[="…"]] [–time-limit[="…"]] [–do-not-clear] [–recover-timeout[="…"]] [–clear-timeout[="…"]]

@wbuist,

For the date time issue, you may need to set a date.timezone in your php.ini. Or you could try adding date_default_timezone_set (‘UTC’); to the top of app/console after the <?php tag. If adding that code works, we can look at adding that to the core for the next release. We do something similar when accessing through the web but doesn’t like we set it for the console script.

For the mail cron, do you have email set in the configuration to be queued or to send immediately? If sending immediately, you do not need that cron job.

Thanks!
Alan

Thanks Alan, I added that code and the errors are resolved on that cron job, thanks -

You are right about the other one. Sorry for the confusion.

So, I’ve flicked back to queue and the cron job runs but with a fatal error -

Fatal error: Call to a member function getTranslator() on a non-object in [path to site]/app/bundles/CoreBundle/Swiftmailer/Transport/MandrillTransport.php on line 74