Callback arguments don't work for ultimate_cron-2

Created on 31 December 2019, over 5 years ago
Updated 8 January 2025, 3 months ago

Hello,

In ultimate_cron.job.inc file, line 329-332,

$arguments = array($this->hook['callback arguments']);
if ($this->hook['pass job argument']) {
  array_unshift($arguments, $this);
}
$result = call_user_func_array($this->hook['callback'], $arguments);

The call_user_func_array expects an array of arguments, but gets an array containing an array with the actual arguments and an object.

P.S. I could create a patch for that, sorry that I don't but currently the schedule is really tight..

🐛 Bug report
Status

Closed: outdated

Version

2.8

Component

Code

Created by

🇬🇷Greece crstnkal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇰Denmark arnested

    I'm closing this since Drupal 7 is now unsupported and there will be no more development on the Drupal 7 branch of Ultimate Cron either.

    Thank you for taking the time and effort in reporting this issue, even though it never got resolved.

Production build 0.71.5 2024