TypeError: Argument 1 passed to Drupal\domain\DomainNegotiator::setActiveDomain() must implement interface Drupal\domain\DomainInterface, null given, called in /home/public_html/modules/contrib/domain_simple_sitemap/src/Plugin/simple_sitemap/UrlGenerator/

Created on 25 May 2021, over 3 years ago
Updated 10 October 2024, about 1 month ago

Issue when clicking rebuild queue.

TypeError: Argument 1 passed to Drupal\domain\DomainNegotiator::setActiveDomain() must implement interface Drupal\domain\DomainInterface, null given, called in /home/public_html/modules/contrib/domain_simple_sitemap/src/Plugin/simple_sitemap/UrlGenerator/DomainEntityUrlGenerator.php on line 124 in Drupal\domain\DomainNegotiator->setActiveDomain() (line 138 of modules/contrib/domain/domain/src/DomainNegotiator.php).

Drupal\domain\DomainNegotiator->setActiveDomain(NULL) (Line: 124)
Drupal\domain_simple_sitemap\Plugin\simple_sitemap\UrlGenerator\DomainEntityUrlGenerator->setSitemapVariant('site0') (Line: 158)
Drupal\simple_sitemap\Queue\QueueWorker->queue(Array) (Line: 201)
Drupal\simple_sitemap\Queue\QueueWorker->rebuildQueue(Array) (Line: 385)
Drupal\simple_sitemap\Simplesitemap->rebuildQueue() (Line: 251)
Drupal\simple_sitemap\Form\SimplesitemapSitemapsForm->rebuildQueue(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: 593)
Drupal\Core\Form\FormBuilder->processForm('simple_sitemap_sitemaps_form', Array, Object) (Line: 321)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
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: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇵🇭Philippines localnetwork

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024