friends-of-contao / contao-privacy

This extension provides some privacy features to Contao 3.5.x and 4.4.x (4.5.x). If you have some ideas which we should add or change in the mentioned Contao versions, feel free to create an issue.
22 stars 5 forks source link

Übersicht: Call to a member function next() on null #34

Open joke1 opened 6 years ago

joke1 commented 6 years ago

Tach,

bekomme nach der erfolgreichen Installation der 2.0.0-beta6 (über den Manager), folgende Fehlermeldung, wenn ich den Menüpunkt "Datenschutz Übersicht" klicke: Call to a member function next() on null

Stack Trace:

Symfony\Component\Debug\Exception\FatalThrowableError:
Call to a member function next() on null

  at vendor/friends-of-contao/contao-privacy/src/Modules/PrivacyOverview.php:87
  at Foc\ContaoPrivacyBundle\Modules\PrivacyOverview->getActiveRootPages()
     (vendor/friends-of-contao/contao-privacy/src/Modules/PrivacyOverview.php:33)
  at Foc\ContaoPrivacyBundle\Modules\PrivacyOverview->compile()
     (vendor/contao/core-bundle/src/Resources/contao/classes/BackendModule.php:93)
  at Contao\BackendModule->generate()
     (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:421)
  at Contao\Backend->getBackendModule('focPrivacyOverview', null)
     (vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:131)
  at Contao\BackendMain->run()
     (vendor/contao/core-bundle/src/Controller/BackendController.php:50)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/app_dev.php:67)

PS: War meine erste Manager-Nutzung, sonst immer nur Konsole. Ich hatte es erst über die Contao Cloud versucht (weil voreingestellt), was allerdings zu anderen Fehlern bzgl. Abhängigkeiten führte. Gleicher Fehler kam aber auch bei einer anderen Erweiterung... Nachdem ich es ohne die Cloud gemacht hatte, ging die Installation dann. Kann mir das zwar nicht als Grund für die obige Fehlermeldung vorstellen, aber wer weiß.

Symfony 3.4.12, Contao 4.5.10, PHP 7.1.16