Crashes when configured

Created on 22 December 2023, about 1 year ago

Problem/Motivation

I enabled the module, filled in the Cloudlfare settings, which causes the entire site to fail.
Error message in watchdog:
Error: Call to a member function getRequestUri() on null in Drupal\locale\LocaleLookup->resolveCacheMiss() (line 157 of web/core/modules/locale/src/LocaleLookup.php)
#0 web/core/lib/Drupal/Core/Cache/CacheCollector.php(149): Drupal\locale\LocaleLookup->resolveCacheMiss()
#1 web/core/modules/locale/src/LocaleTranslation.php(121): Drupal\Core\Cache\CacheCollector->get()
#2 web/core/lib/Drupal/Core/StringTranslation/TranslationManager.php(92): Drupal\locale\LocaleTranslation->getStringTranslation()
#3 web/core/lib/Drupal/Core/StringTranslation/TranslationManager.php(140): Drupal\Core\StringTranslation\TranslationManager->getStringTranslation()
#4 /var/www/html/web/core/lib/Drupal/Core/StringTranslation/TranslationManager.php(112): Drupal\Core\StringTranslation\TranslationManager->doTranslate()
#5 /var/www/html/web/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php(190): Drupal\Core\StringTranslation\TranslationManager->translateString()
#6 /var/www/html/web/core/lib/Drupal/Component/Utility/ToStringTrait.php(15): Drupal\Core\StringTranslation\TranslatableMarkup->render()
#7 [internal function]: Drupal\Core\StringTranslation\TranslatableMarkup->__toString()
#8 /var/www/html/web/core/lib/Drupal/Core/Logger/LogMessageParser.php(16): strpos()
#9 /var/www/html/web/core/modules/dblog/src/Logger/DbLog.php(61): Drupal\Core\LoggerLogMessageParser->parseMessagePlaceholders()
#10 /var/www/html/web/core/lib/Drupal/Core/Logger/LoggerChannel.php(127): Drupal\dblog\Logger\DbLog->log()
#11 /var/www/html/vendor/psr/log/Psr/Log/LoggerTrait.php(86): Drupal\Core\Logger\LoggerChannel->log()
#12 /var/www/html/web/modules/contrib/cloudflare/src/CloudFlareMiddleware.php(133): Drupal\Core\Logger\LoggerChannel->warning()
#13 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\cloudflare\CloudFlareMiddleware->handle()
#14 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#15 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#16 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#17 {main}.

Steps to reproduce

Enable module, go to settings, check token, fill in API key (configured for Purge Cache only), check restore client ip address, click next.

Proposed resolution

Better documentation: I followed freetier_setup.md (install with drush)

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Component

Documentation

Created by

🇧🇪Belgium tcorneli Merelbeke

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

Comments & Activities

Production build 0.71.5 2024