Problem/Motivation

When a callback doesn't exist anymore, it shows in the cron job list as 'Missing', but an error is still thrown during cron execution:

TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, function "core_event_dispatcher_cron" not found or invalid function name in call_user_func() (line 325 of /var/web/vd29625/deploy/releases/20241217082209/web/modules/contrib/ultimate_cron/src/Entity/CronJob.php)

Proposed resolution

Handle these kind of errors more gracefully.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dieterholvoet created an issue. See original summary.

dieterholvoet’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev

dieterholvoet’s picture

Status: Active » Needs review

  • dieterholvoet committed 259b5512 on 8.x-2.x
    fix: #3497187 call_user_func(): Argument #1 ($callback) must be a valid...
dieterholvoet’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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