Problem/Motivation
White testing for
π
Create Quant 1.5.5 release
Postponed
, got this error when trying to seed:
The website encountered an unexpected error. Please try again later.
Error: Class "Drupal\quant\Taxonomy" not found in Drupal\quant\Seed::getRedirectLocationsFromRedirect() (line 158 of modules/contrib/quantcdn/src/Seed.php).
Drupal\quant\EventSubscriber\CollectionSubscriber->collectRedirects(Object, 'quant.seed.redirects', Object)
call_user_func(Array, Object, 'quant.seed.redirects', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'quant.seed.redirects') (Line: 378)
Drupal\quant\Form\SeedForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('quant_seed_form', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
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: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->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: 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: 692)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Steps to reproduce
- Install/configure quant_api module
- Check redirect and trigger checkboxes on Seed tab and click
Save and Queue
button
- Result: Fatal error above
- Expected result: Seed is processed as expected
Proposed resolution
Fix entity class.
Remaining tasks
- Update code
- Review and test
- Commit :)
User interface changes
No fatal error when seeding.
API changes
Data model changes