Problem Undefined global variable $ultimate_cron_shutdown_functions
We have an error on phpunit testing, when running our tests, we get this warnings:
PHP Warning: Undefined global variable $ultimate_cron_shutdown_functions in /var/www/html/web/modules/contrib/ultimate_cron/ultimate_cron.module on line 46
Warning: Undefined global variable $ultimate_cron_shutdown_functions in /var/www/html/web/modules/contrib/ultimate_cron/ultimate_cron.module on line 46
PHP Warning: foreach() argument must be of type array|object, null given in /var/www/html/web/modules/contrib/ultimate_cron/ultimate_cron.module on line 46
Warning: foreach() argument must be of type array|object, null given in /var/www/html/web/modules/contrib/ultimate_cron/ultimate_cron.module on line 46
Dear colleagues, does anyone else have same problem?
Comments
Comment #2
abhishek_gupta1 commentedComment #3
abhishek_gupta1 commented@abelcain , I have fixed the issue and created Patch.
Comment #4
abelcain commentedHi dear abshishek
I have tested and now the message has dissapeared. Thanks a lot for the patch.
I set as tested by community.
Comment #5
abelcain commentedComment #6
berdirConflicted on this. The whole thing seems unnecessary in 2024, should just revert back to using regular drupal shutdown functions, can't imagine that this makes a relevant difference.
Issues/patches to remove all that code very welcome.