Undefined variable $spammaster_status

Created on 16 February 2025, about 2 months ago

Problem/Motivation

When I execute "drush cr", I am receiving the following warning:

"Warning: Undefined variable $spammaster_status in Drupal\spammaster\SpamMasterCronService->spamMasterWeeklyCron() (line 140 of /var/www/html/sunraz-dev/web/modules/contrib/spammaster/src/SpamMasterCronService.php) #0 /var/www/html/sunraz-dev/web/core/includes/bootstrap.inc(166): _drupal_error_handler_real()"

The entire warning thread is as follows:

" [warning] Warning: Undefined variable $spammaster_status in Drupal\spammaster\SpamMasterCronService->spamMasterWeeklyCron() (line 140 of /var/www/html/sunraz-dev/web/modules/contrib/spammaster/src/SpamMasterCronService.php) #0 /var/www/html/sunraz-dev/web/core/includes/bootstrap.inc(166): _drupal_error_handler_real()
#1 /var/www/html/sunraz-dev/web/modules/contrib/spammaster/src/SpamMasterCronService.php(140): _drupal_error_handler()
#2 /var/www/html/sunraz-dev/web/modules/contrib/spammaster/spammaster.module(68): Drupal\spammaster\SpamMasterCronService->spamMasterWeeklyCron()
#3 /var/www/html/sunraz-dev/web/core/lib/Drupal/Core/Cron.php(337): spammaster_cron()
#4 /var/www/html/sunraz-dev/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(395): Drupal\Core\Cron->Drupal\Core\{closure}()
#5 /var/www/html/sunraz-dev/web/core/lib/Drupal/Core/Cron.php(321): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#6 /var/www/html/sunraz-dev/web/core/lib/Drupal/Core/Cron.php(161): Drupal\Core\Cron->invokeCronHandlers()
#7 /var/www/html/sunraz-dev/web/core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
#8 /var/www/html/sunraz-dev/web/core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php(65): Drupal\Core\ProxyClass\Cron->run()
#9 [internal function]: Drupal\automated_cron\EventSubscriber\AutomatedCron->onTerminate()
#10 /var/www/html/sunraz-dev/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#11 /var/www/html/sunraz-dev/vendor/symfony/http-kernel/HttpKernel.php(115): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#12 /var/www/html/sunraz-dev/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(66): Symfony\Component\HttpKernel\HttpKernel->terminate()
#13 /var/www/html/sunraz-dev/web/core/lib/Drupal/Core/DrupalKernel.php(715): Drupal\Core\StackMiddleware\StackedHttpKernel->terminate()
#14 /var/www/html/sunraz-dev/vendor/drush/drush/src/Boot/DrupalBoot8.php(312): Drupal\Core\DrupalKernel->terminate()
#15 [internal function]: Drush\Boot\DrupalBoot8->terminate()"

Steps to reproduce

Execute "drush cr".

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.57

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States robertmartin1961

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

Comments & Activities

Production build 0.71.5 2024