Missing text format: full_html + TypeError: Drupal\regcode\RegistrationCode

Created on 24 September 2024, 3 months ago

With D11, 2.0.x-dev and MR16 from issue 3476179 πŸ› Symfony\Component\Routing\Exception\RouteNotFoundException Active applied, Regcode generation throws an error (The website encountered an unexpected error. Try again later.) and generates the following two log entries:

#1
Message
Missing text format: full_html.

#2
Message
TypeError: Drupal\regcode\RegistrationCode::generate(): Argument #1 ($length) must be of type int, string given, called in /var/www/redacted/web/modules/contrib/regcode/src/Form/RegcodeAdminCreateForm.php on line 191 in Drupal\regcode\RegistrationCode->generate() (line 248 of /var/www/redacted/web/modules/contrib/regcode/src/RegistrationCode.php).

Backtrace

#0 /var/www/redacted/web/modules/contrib/regcode/src/Form/RegcodeAdminCreateForm.php(191): Drupal\regcode\RegistrationCode->generate()
#1 [internal function]: Drupal\regcode\Form\RegcodeAdminCreateForm->submitForm()
#2 /var/www/redacted/web/core/lib/Drupal/Core/Form/FormSubmitter.php(105): call_user_func_array()
#3 /var/www/redacted/web/core/lib/Drupal/Core/Form/FormSubmitter.php(43): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers()
#4 /var/www/redacted/web/core/lib/Drupal/Core/Form/FormBuilder.php(589): Drupal\Core\Form\FormSubmitter->doSubmitForm()
#5 /var/www/redacted/web/core/lib/Drupal/Core/Form/FormBuilder.php(321): Drupal\Core\Form\FormBuilder->processForm()
#6 /var/www/redacted/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#7 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#8 /var/www/redacted/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#9 /var/www/redacted/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /var/www/redacted/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#11 /var/www/redacted/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#12 /var/www/redacted/vendor/symfony/http-kernel/HttpKernel.php(183): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /var/www/redacted/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#14 /var/www/redacted/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#15 /var/www/redacted/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#16 /var/www/redacted/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#17 /var/www/redacted/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\ContentLength->handle()
#18 /var/www/redacted/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#19 /var/www/redacted/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#20 /var/www/redacted/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#21 /var/www/redacted/web/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#22 /var/www/redacted/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#23 {main}
πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany neurer

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024