Fixing the Drupal Login WSOD Caused by Captcha and Spam Modules
A white screen after login—a classic WSOD—hit a Drupal 9 site recently after updates to the Captcha, Image Captcha, and Spam Master modules. iBuild.PH documented their fix, which could help others facing the same issue across Drupal versions.
The issue was resolved by uninstalling the problematic modules using Composer and Drush: composer remove drupal/captcha drupal/image_captcha drupal/spam_master followed by drush pm:uninstall captcha image_captcha spam_master -y. Once disabled, clearing the cache with drush cr brought the login functionality back.
Optionally, they suggest truncating the flood table (drush sqlq "TRUNCATE flood;") if failed login attempts or IP blocks might be involved. The team also recommends incremental updates to core and contrib modules to prevent compatibility issues.
While this occurred on Drupal 9.x, iBuild.PH notes the same resolution steps apply to Drupal 10 and 11 where login-disrupting spam modules are involved.
