Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get a "cron run successfully" below the following stack trace. My notifications remain queued.
Warning: in_array() expects parameter 2 to be array, null given in _notify_send() (line 743 of modules/notify/notify.module).
_notify_send() (Line: 63)
notify_cron()
call_user_func_array('notify_cron', Array) (Line: 391)
Drupal\Core\Extension\ModuleHandler->invoke('notify', 'cron') (Line: 223)
Drupal\Core\Cron->invokeCronHandlers() (Line: 122)
Comment | File | Size | Author |
---|---|---|---|
#6 | 2946151-6.patch | 542 bytes | oriol_e9g |
Comments
Comment #2
rnhunt CreditAttribution: rnhunt as a volunteer commentedOK, so I finally got around to have a look and found the bug. Not set up to patch or commit to git yet (not a trusted bug reporter even) but the change is simple enough,
if (NULL !== ($config->get('notify_skip_comments'))) {
$notify_skip_comments = array();
} else {
should of course be
if (NULL == ($config->get('notify_skip_comments'))) {
$notify_skip_comments = array();
} else {
Line 712 in notify.module.
Items still queued and yet to be sent though.
Comment #3
oriol_e9gComment #4
oriol_e9gThere are the same bug in nodes. Correct fix with the coding standards way.
Comment #5
oriol_e9gNeeds reroll for #2958084: Coding standards
Comment #6
oriol_e9gComment #8
vuilRe-roll the patch and committed to 8.x-1.x dev branch. Thank you!
Comment #9
vuil