Warning: Undefined variable $text in Drupal\quant_purger\Controller\QuantPurgerController->content()

Created on 2 November 2023, about 1 year ago
Updated 20 January 2024, 10 months ago

Problem/Motivation

Enabled purge and quant_purge module on Drupal 10.1 and got warning on /admin/config/quant/purger:

Warning: Undefined variable $text in Drupal\quant_purger\Controller\QuantPurgerController->content() (line 30 of modules/contrib/quantcdn/modules/quant_purger/src/Controller/QuantPurgerController.php).
Drupal\quant_purger\Controller\QuantPurgerController->content()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 182)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 68)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 53)
Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 116)
Drupal\quant_purger\StackMiddleware\UrlRegistrar->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

  • Install Drupal
  • Install/configure quant/quant_api
  • Install purge and quant_purge modules
  • Go to: /admin/config/quant/purger
  • Result: warning message: Warning: Undefined variable $text in Drupal\quant_purger\Controller\QuantPurgerController->content()

Proposed resolution

Debug and fix :)

Remaining tasks

  • Update code
  • Review and test
  • Commit :)

User interface changes

No error ;)

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

Production build 0.71.5 2024