inspiredminds / contao-sibling-navigation

Provides a previous/next navigation for news & events.
GNU Lesser General Public License v3.0
6 stars 0 forks source link

Unterstützung für PHP 8 #15

Closed minstyle closed 7 months ago

minstyle commented 7 months ago

Contao 4.13.40 PHP 8.2

Wenn in Contao der Debug-Modus aktiviert ist und der Bereich Layout > Themes > Frontend-Module aufgerufen wird, wo das Modul Nachrichten Vor-/Zurück-Navigation eingebunden ist, dann erscheint folgende Fehlermeldung im Backend (im Frontend erscheint die Fehlermeldung nicht):

Warning: Attempt to read property "type" on null

Stack Trace

ErrorException:
Warning: Attempt to read property "type" on null

  at vendor/inspiredminds/contao-sibling-navigation/src/Resources/contao/dca/tl_module.php:27
  at Contao\DcaLoader->{closure}()
     (vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:205)
  at Contao\DC_Table->__construct()
     (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:416)
  at Contao\Backend->getBackendModule()
     (vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:168)
  at Contao\BackendMain->run()
     (vendor/contao/core-bundle/src/Controller/BackendController.php:49)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:44)               
fritzmg commented 7 months ago

Fixed in 1.3.7.