daycry / cronjob

- Manage Cron jobs in Codeigniter 4
MIT License
64 stars 20 forks source link

Call to a member function format() on null #1

Closed jozefrebjak closed 3 years ago

jozefrebjak commented 3 years ago

Hello @daycry,

really nice work. I want to use your library. I did everything what was needed to get it run.

I have only one custom command to run. My command ran well but after that I got this errror in a log.

Can you help to solve what is a problem ?

Thank you.

CRITICAL - 2021-10-06 19:17:29 --> Call to a member function format() on null
#0 /var/www/codeigniter4/vendor/daycry/cronjob/src/Commands/Run.php(68): Daycry\CronJob\JobRunner->run()
#1 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CLI/Commands.php(63): Daycry\CronJob\Commands\Run->run()
#2 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CLI/CommandRunner.php(70): CodeIgniter\CLI\Commands->run()
#3 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CLI/CommandRunner.php(56): CodeIgniter\CLI\CommandRunner->index()
#4 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CodeIgniter.php(800): CodeIgniter\CLI\CommandRunner->_remap()
#5 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CodeIgniter.php(399): CodeIgniter\CodeIgniter->runController()
#6 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CodeIgniter.php(317): CodeIgniter\CodeIgniter->handleRequest()
#7 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CLI/Console.php(48): CodeIgniter\CodeIgniter->run()
#8 /var/www/codeigniter4/spark(63): CodeIgniter\CLI\Console->run()
#9 {main}
daycry commented 3 years ago

Hi,

I have tried to reproduce the error and have not succeeded, I will look at other options to see what happens.

Thanks

El mié, 6 oct 2021 a las 19:29, Jozef Rebjak @.***>) escribió:

Hello,

really nice work. I want to use your library. I did everything what was needed to get it run.

I have only one custom command to run. My command ran well but after that I got this errror in a log.

Can you help to solve what is a problem ?

Thank you.

CRITICAL - 2021-10-06 19:17:29 --> Call to a member function format() on null#0 /var/www/codeigniter4/vendor/daycry/cronjob/src/Commands/Run.php(68): Daycry\CronJob\JobRunner->run()#1 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CLI/Commands.php(63): Daycry\CronJob\Commands\Run->run()#2 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CLI/CommandRunner.php(70): CodeIgniter\CLI\Commands->run()#3 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CLI/CommandRunner.php(56): CodeIgniter\CLI\CommandRunner->index()#4 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CodeIgniter.php(800): CodeIgniter\CLI\CommandRunner->_remap()#5 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CodeIgniter.php(399): CodeIgniter\CodeIgniter->runController()#6 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CodeIgniter.php(317): CodeIgniter\CodeIgniter->handleRequest()#7 /var/www/codeigniter4/vendor/codeigniter4/framework/system/CLI/Console.php(48): CodeIgniter\CodeIgniter->run()#8 /var/www/codeigniter4/spark(63): CodeIgniter\CLI\Console->run()#9 {main}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/daycry/cronjob/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ5DP2NAXZAV6MHIAZ7RVTUFSBQBANCNFSM5FPG6KVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

jozefrebjak commented 3 years ago

Are you using latest CI 4.1.4 ?

daycry commented 3 years ago

Hi,

I have been able to reproduce the error, I will try to fix it.

El jue, 14 oct 2021 a las 18:01, Jozef Rebjak @.***>) escribió:

Are you using latest CI 4.1.4 ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/daycry/cronjob/issues/1#issuecomment-943496490, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ5DPZAJGPXT5JNJMKSCM3UG35FJANCNFSM5FPG6KVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

daycry commented 3 years ago

Fix It