Incompatibility with simple_sitemap 4.1.8

Created on 27 February 2024, 9 months ago
Updated 20 March 2024, 8 months ago

Problem/Motivation

1. In the latest version 4.1.8, simple_sitemap module has deprecated method setVariants and the new method is setSitemaps.
2. Related errors in [PR 1165](https://github.com/drunomics/ldp-project/pull/1165)

   Line   drunomics/ldp-core/modules/ldp_article/ldp_article.install         
    ------ ------------------------------------------------------------------- 
     151    Call to deprecated method setVariants() of class                   
            Drupal\simple_sitemap\Manager\EntityManager:                       
            in simple_sitemap:4.1.7 and is removed from simple_sitemap:5.0.0.  
               Use setSitemaps() instead.`
   Fatal error: Trait "Drupal\simple_sitemap\Manager\VariantSetterTrait" not found in /app/web/modules/contrib/simple_sitemap_extensions/src/Controller/DynamicSimplesitemapController.php on line 20
   
   Fatal error: Uncaught RuntimeException: Recursive router rebuild detected. in /app/web/core/lib/Drupal/Core/Routing/RouteBuilder.php:121
   
   Stack trace:
   
   #0 /app/web/core/lib/Drupal/Core/Routing/RouteBuilder.php(210): Drupal\Core\Routing\RouteBuilder->rebuild()
   
   #1 /app/web/core/lib/Drupal/Core/Routing/RouteBuilder.php(222): Drupal\Core\Routing\RouteBuilder->rebuildIfNeeded()
   
   #2 /app/web/core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php(51): Drupal\Core\Routing\RouteBuilder->destruct()
   
   #3 [internal function]: Drupal\Core\EventSubscriber\KernelDestructionSubscriber->onKernelTerminate(Object(Symfony\Component\HttpKernel\Event\TerminateEvent), 'kernel.terminat...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
   
   #4 /app/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\TerminateEvent), 'kernel.terminat...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
   
   #5 /app/vendor/symfony/http-kernel/HttpKernel.php(100): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\TerminateEvent), 'kernel.terminat...')
   
   #6 /app/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(63): Symfony\Component\HttpKernel\HttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Render\HtmlResponse))
   
   #7 /app/web/core/lib/Drupal/Core/DrupalKernel.php(688): Drupal\Core\StackMiddleware\StackedHttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Render\HtmlResponse))
   
   #8 /app/vendor/drush/drush/src/Boot/DrupalBoot8.php(326): Drupal\Core\DrupalKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Render\HtmlResponse))
   
   #9 [internal function]: Drush\Boot\DrupalBoot8->terminate()
   
   #10 {main}
   
     thrown in /app/web/core/lib/Drupal/Core/Routing/RouteBuilder.php on line 121
   script returned exit code 255`
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇸🇮Slovenia useernamee Ljubljana

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