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?

CommentFileSizeAuthor
#3 ultimate_cron-3427652.patch1.12 KBabhishek_gupta1

Comments

abelcain created an issue. See original summary.

abhishek_gupta1’s picture

Assigned: Unassigned » abhishek_gupta1
abhishek_gupta1’s picture

Assigned: abhishek_gupta1 » Unassigned
Status: Active » Needs review
StatusFileSize
new1.12 KB

@abelcain , I have fixed the issue and created Patch.

abelcain’s picture

Hi dear abshishek

I have tested and now the message has dissapeared. Thanks a lot for the patch.

I set as tested by community.

abelcain’s picture

Status: Needs review » Reviewed & tested by the community
berdir’s picture

Status: Reviewed & tested by the community » Fixed

Conflicted 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.

  • berdir committed e7826708 on 8.x-2.x
    Issue #3427652 by abhishek_gupta1: Undefined global variable $...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.