array_filter(): Argument #1 ($array) must be of type array, null given in array_filter()

Created on 11 December 2023, 12 months ago

Problem/Motivation

The website encountered an unexpected error. Please try again later.
TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 38 of modules\Contrib\auto_close_comments\auto_close_comments.module).
array_filter(NULL) (Line: 38)
auto_close_comments_cron() (Line: 250)
Drupal\Core\Cron->Drupal\Core\{closure}(Object, 'auto_close_comments') (Line: 405)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('cron', Object) (Line: 258)
Drupal\Core\Cron->invokeCronHandlers() (Line: 136)
Drupal\Core\Cron->run() (Line: 75)
Drupal\Core\ProxyClass\Cron->run() (Line: 65)
Drupal\automated_cron\EventSubscriber\AutomatedCron->onTerminate(Object, 'kernel.terminate', Object)
call_user_func(Array, Object, 'kernel.terminate', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.terminate') (Line: 103)
Symfony\Component\HttpKernel\HttpKernel->terminate(Object, Object) (Line: 32)
Stack\StackedHttpKernel->terminate(Object, Object) (Line: 702)
Drupal\Core\DrupalKernel->terminate(Object, Object) (Line: 22)

Steps to reproduce

Install module via composer.
Open this Url : /admin/config/auto-close-comments/settings

🐛 Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

🇮🇳India shalini_jha

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

Comments & Activities

Production build 0.71.5 2024