Verwendung: Probleme mit Weiterlesen bei Nachrichten
Produkt: Tao Contao
Contao-Version: 4.13
Browser und Browserversionen: alle
Während das Weiterlesen bei Terminen unproblematisch funktioniert, liefert das Weiterlesen bei Nachrichten error 404. Ich bekomme dabei die als Anlage beigefügte Fehlermeldung (Internal Server Error). Module und Weiterleitungsseiten wurden überprüft bzw. neu aufgesetzt ohne Verbesserung. Was übersehe ich da?
Rufe ich https://si-mz-rosengarten.de/news_detail ohne den Namen des News Beitrags auf, erhalte ich ohne Fehlermeldung den letzten Eintrag. Bei https://si-mz-rosengarten.de/news_detail/10-jahre-si-mainz-rosengarten kommt error 404, auch bei den entsprechend anderen Einträgen.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by RockSolid Theme... on 08 May, 2024 12:15 PM
Vielen Dank für Ihre Frage.
Dieser Fehler ist aus der Ferne schwer zu diagnostizieren. Bitte senden Sie uns die Log-Dateien aus dem Ordner
var/logs
auf Ihrem Webspace.Eventuell wird eine bessere Fehlermeldung angezeigt wenn Sie den Debug-Modus aktivieren.
2 Posted by jelingnau on 13 May, 2024 07:05 AM
Vielen Dank für die Rückfrage - hier ist der entsprechende Log-Eintrag.
Gruss J. Lingnau
[2024-05-13T09:02:11.910595+02:00] request.INFO: Matched route
"tl_page.1.root".
{"route":"tl_page.1.root","route_parameters":{"_token_check":true,"_controll
er":"Contao\\CoreBundle\\Controller\\Page\\RootPageController","_scope":"fro
ntend","_locale":"de","_format":"html","_canonical_route":"tl_page.1","param
eters":"","pageModel":{"Contao\\PageModel":[]},"_route":"tl_page.1.root","_r
oute_object":{"Symfony\\Component\\Routing\\Route":[]}},"request_uri":"https
://si-mz-rosengarten.de/","method":"GET"} []
[2024-05-13T09:02:11.935498+02:00] security.INFO: Populated the TokenStorage
with an anonymous Token. [] []
[2024-05-13T09:02:12.007181+02:00] app.ERROR: RuntimeException: Failed to
start the session because headers have already been sent by
"/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Res
ponse.php" at line 1250. in
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Storage/NativeSessionStorage.php:145 Stack trace: #0
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Storage/NativeSessionStorage.php(352):
Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start
() #1
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Session.php(261):
Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBa
g('flashes') #2
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Session.php(273):
Symfony\Component\HttpFoundation\Session\Session->getBag('flashes') #3
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Resou
rces/contao/library/Contao/Message.php(104):
Symfony\Component\HttpFoundation\Session\Session->getFlashBag() #4
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Resou
rces/contao/library/Contao/Message.php(36): Contao\Message::add('Facebook is
cur...', 'TL_ERROR', 'FE') #5
/home/6939/home/www.si-mz-rosengarten.de/vendor/pdir/social-feed-bundle/src/
Importer/Importer.php(50): Contao\Message::addError('Facebook is cur...') #6
/home/6939/home/www.si-mz-rosengarten.de/vendor/pdir/social-feed-bundle/src/
EventListener/CronListener.php(88):
Pdir\SocialFeedBundle\Importer\Importer->getInstagramPosts(NULL, 1, 20) #7
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Cron/
LegacyCron.php(87):
Pdir\SocialFeedBundle\EventListener\CronListener->getInstagramPosts() #8
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Cron/
LegacyCron.php(33):
Contao\CoreBundle\Cron\LegacyCron->runLegacyCrons('minutely') #9
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Cron/
CronJob.php(44): Contao\CoreBundle\Cron\LegacyCron->onMinutely('web') #10
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Cron/
Cron.php(131): Contao\CoreBundle\Cron\CronJob->__invoke('web') #11
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Event
Listener/CommandSchedulerListener.php(47):
Contao\CoreBundle\Cron\Cron->run('web') #12
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/event-dispatcher/Eve
ntDispatcher.php(270):
Contao\CoreBundle\EventListener\CommandSchedulerListener->__invoke(Object(Sy
mfony\Component\HttpKernel\Event\TerminateEvent), 'kernel.terminat...',
Object(Symfony\Component\EventDispatcher\EventDispatcher)) #13
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/event-dispatcher/Eve
ntDispatcher.php(230):
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDi
spatcher\{closure}(Object(Symfony\Component\HttpKernel\Event\TerminateEvent)
, 'kernel.terminat...',
Object(Symfony\Component\EventDispatcher\EventDispatcher)) #14
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/event-dispatcher/Eve
ntDispatcher.php(59):
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array,
'kernel.terminat...',
Object(Symfony\Component\HttpKernel\Event\TerminateEvent)) #15
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-kernel/HttpKern
el.php(97):
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\C
omponent\HttpKernel\Event\TerminateEvent), 'kernel.terminat...') #16
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-kernel/Kernel.p
hp(159):
Symfony\Component\HttpKernel\HttpKernel->terminate(Object(Symfony\Component\
HttpFoundation\Request),
Object(Symfony\Component\HttpFoundation\RedirectResponse)) #17
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/manager-bundle/src/Ht
tpKernel/ContaoCache.php(84):
Symfony\Component\HttpKernel\Kernel->terminate(Object(Symfony\Component\Http
Foundation\Request),
Object(Symfony\Component\HttpFoundation\RedirectResponse)) #18
/home/6939/home/www.si-mz-rosengarten.de/web/index.php(48):
Contao\ManagerBundle\HttpKernel\ContaoCache->terminate(Object(Symfony\Compon
ent\HttpFoundation\Request),
Object(Symfony\Component\HttpFoundation\RedirectResponse)) #19 {main} [] []
[2024-05-13T09:02:12.028327+02:00] php.CRITICAL: Uncaught Exception: Failed
to start the session because headers have already been sent by
"/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Res
ponse.php" at line 1250. {"exception":"[object] (RuntimeException(code: 0):
Failed to start the session because headers have already been sent by
\"/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Re
sponse.php\" at line 1250. at
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Storage/NativeSessionStorage.php:145)"} []
[2024-05-13T09:02:12.029369+02:00] request.CRITICAL: Uncaught PHP Exception
RuntimeException: "Failed to start the session because headers have already
been sent by
"/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Res
ponse.php" at line 1250." at
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Storage/NativeSessionStorage.php line 145 {"exception":"[object]
(RuntimeException(code: 0): Failed to start the session because headers have
already been sent by
\"/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Re
sponse.php\" at line 1250. at
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Storage/NativeSessionStorage.php:145)"} []
Support Staff 3 Posted by RockSolid Theme... on 13 May, 2024 02:32 PM
Die Fehlermeldung
Failed to start the session because headers have already been sent
wird anscheinend von der Erweiterungpdir/social-feed-bundle
verursacht durch folgende Code-Zeilen:- https://github.com/pdir/social-feed-bundle/blob/2c96acfa0ba380badd79384760c47876c8fa8f67/src/Importer/Importer.php#L50 - https://github.com/pdir/social-feed-bundle/blob/2c96acfa0ba380badd79384760c47876c8fa8f67/src/EventListener/CronListener.php#L88
4 Posted by jelingnau on 13 May, 2024 03:13 PM
Das Entfernen der entsprechenden Erweiterung und Neuaufbau der Caches
(Website und lokal) hat leider nicht zum erwünschten Erfolg geführt. Crawler
liefert weiterhin broken links. Und click auf "weiterlesen" führt zu error
404
RuntimeException: Failed to start the session because headers have already
been sent by
"/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Res
ponse.php" at line 1250. in
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Storage/NativeSessionStorage.php:145 Stack trace: #0
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Storage/NativeSessionStorage.php(352):
Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start
() #1
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Session.php(261):
Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBa
g('flashes') #2
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-foundation/Sess
ion/Session.php(273):
Symfony\Component\HttpFoundation\Session\Session->getBag('flashes') #3
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Resou
rces/contao/library/Contao/Message.php(104):
Symfony\Component\HttpFoundation\Session\Session->getFlashBag() #4
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Resou
rces/contao/library/Contao/Message.php(36): Contao\Message::add('Facebook is
cur...', 'TL_ERROR', 'FE') #5
/home/6939/home/www.si-mz-rosengarten.de/vendor/pdir/social-feed-bundle/src/
Importer/Importer.php(50): Contao\Message::addError('Facebook is cur...') #6
/home/6939/home/www.si-mz-rosengarten.de/vendor/pdir/social-feed-bundle/src/
EventListener/CronListener.php(88):
Pdir\SocialFeedBundle\Importer\Importer->getInstagramPosts(NULL, 1, 20) #7
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Cron/
LegacyCron.php(87):
Pdir\SocialFeedBundle\EventListener\CronListener->getInstagramPosts() #8
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Cron/
LegacyCron.php(33):
Contao\CoreBundle\Cron\LegacyCron->runLegacyCrons('minutely') #9
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Cron/
CronJob.php(44): Contao\CoreBundle\Cron\LegacyCron->onMinutely('web') #10
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Cron/
Cron.php(131): Contao\CoreBundle\Cron\CronJob->__invoke('web') #11
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/core-bundle/src/Event
Listener/CommandSchedulerListener.php(47):
Contao\CoreBundle\Cron\Cron->run('web') #12
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/event-dispatcher/Eve
ntDispatcher.php(270):
Contao\CoreBundle\EventListener\CommandSchedulerListener->__invoke(Object(Sy
mfony\Component\HttpKernel\Event\TerminateEvent), 'kernel.terminat...',
Object(Symfony\Component\EventDispatcher\EventDispatcher)) #13
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/event-dispatcher/Eve
ntDispatcher.php(230):
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDi
spatcher\{closure}(Object(Symfony\Component\HttpKernel\Event\TerminateEvent)
, 'kernel.terminat...',
Object(Symfony\Component\EventDispatcher\EventDispatcher)) #14
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/event-dispatcher/Eve
ntDispatcher.php(59):
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array,
'kernel.terminat...',
Object(Symfony\Component\HttpKernel\Event\TerminateEvent)) #15
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-kernel/HttpKern
el.php(97):
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\C
omponent\HttpKernel\Event\TerminateEvent), 'kernel.terminat...') #16
/home/6939/home/www.si-mz-rosengarten.de/vendor/symfony/http-kernel/Kernel.p
hp(159):
Symfony\Component\HttpKernel\HttpKernel->terminate(Object(Symfony\Component\
HttpFoundation\Request),
Object(Symfony\Component\HttpFoundation\RedirectResponse)) #17
/home/6939/home/www.si-mz-rosengarten.de/vendor/contao/manager-bundle/src/Ht
tpKernel/ContaoCache.php(84):
Symfony\Component\HttpKernel\Kernel->terminate(Object(Symfony\Component\Http
Foundation\Request),
Object(Symfony\Component\HttpFoundation\RedirectResponse)) #18
/home/6939/home/www.si-mz-rosengarten.de/web/index.php(48):
Contao\ManagerBundle\HttpKernel\ContaoCache->terminate(Object(Symfony\Compon
ent\HttpFoundation\Request),
Object(Symfony\Component\HttpFoundation\RedirectResponse)) #19