Moin Zusammen,
bei einer Anmeldung im FE erscheint die Seite "es ist ein Fehler aufgetreten".
Log-Eintrag:
Code:
[2023-02-07T18:45:59.941167+01:00] request.INFO: Matched route "tl_page.2605.root". {"route":"tl_page.2605.root","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","_format":"html","_canonical_route":"tl_page.2605","parameters":"","pageModel":{"Contao\\PageModel":[]},"_route":"tl_page.2605.root","_route_object":{"Symfony\\Component\\Routing\\Route":[]}},"request_uri":"https://www.xyz.de/","method":"POST"} []
[2023-02-07T18:46:00.473720+01:00] security.INFO: User has been authenticated successfully. {"username":"xyz"} []
[2023-02-07T18:46:00.537742+01:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Contao\CoreBundle\Util\LocaleUtil::formatAsLocale(): Argument #1 ($languageTag) must be of type string, null given, called in /homepages/37/xyz/htdocs/contao413/vendor/contao/core-bundle/src/Resources/contao/library/Contao/InsertTags.php on line 1530" at /homepages/37/d91337534/htdocs/contao413/vendor/contao/core-bundle/src/Util/LocaleUtil.php line 109 {"exception":"[object] (TypeError(code: 0): Contao\\CoreBundle\\Util\\LocaleUtil::formatAsLocale(): Argument #1 ($languageTag) must be of type string, null given, called in /homepages/37/xyz/htdocs/contao413/vendor/contao/core-bundle/src/Resources/contao/library/Contao/InsertTags.php on line 1530 at /homepages/37/xyz/htdocs/contao413/vendor/contao/core-bundle/src/Util/LocaleUtil.php:109)"} []
Stacktrace:
Code:
ErrorException:
Warning: Attempt to read property "language" on null
at vendor/contao/core-bundle/src/Resources/contao/library/Contao/InsertTags.php:1530
at Contao\InsertTags->languageMatches('en')
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/InsertTags.php:761)
at Contao\InsertTags->executeReplace('{{iflng::en}}Company{{iflng}}{{iflng::de}}Firma{{iflng}}:', false)
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/InsertTags.php:100)
at Contao\InsertTags->replaceInternal('{{iflng::en}}Company{{iflng}}{{iflng::de}}Firma{{iflng}}:', false)
(vendor/contao/core-bundle/src/InsertTag/InsertTagParser.php:77)
at Contao\CoreBundle\InsertTag\InsertTagParser->callLegacyClass('{{iflng::en}}Company{{iflng}}{{iflng::de}}Firma{{iflng}}:', false)
(vendor/contao/core-bundle/src/InsertTag/InsertTagParser.php:47)
at Contao\CoreBundle\InsertTag\InsertTagParser->replaceInlineChunked('{{iflng::en}}Company{{iflng}}{{iflng::de}}Firma{{iflng}}:')
(vendor/contao/core-bundle/src/InsertTag/InsertTagParser.php:42)
at Contao\CoreBundle\InsertTag\InsertTagParser->replaceInline('{{iflng::en}}Company{{iflng}}{{iflng::de}}Firma{{iflng}}:')
(vendor/contao/core-bundle/src/Resources/contao/forms/Form.php:245)
at Contao\Form->compile()
(vendor/contao/core-bundle/src/Resources/contao/classes/Hybrid.php:230)
at Contao\Hybrid->generate()
(vendor/contao/core-bundle/src/Resources/contao/forms/Form.php:90)
at Contao\Form->generate()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:685)
at Contao\Controller::getForm(62)
(vendor/leadingsystems/contao-merconis/src/Resources/contao/classes/ls_shop_checkoutData.php:428)
at Merconis\Core\ls_shop_checkoutData->getForms()
(vendor/leadingsystems/contao-merconis/src/Resources/contao/classes/ls_shop_checkoutData.php:113)
at Merconis\Core\ls_shop_checkoutData::getInstance()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:272)
at Contao\System::importStatic('Merconis\\Core\\ls_shop_checkoutData')
(vendor/contao/core-bundle/src/Framework/Adapter.php:46)
at Contao\CoreBundle\Framework\Adapter->__call('importStatic', array('Merconis\\Core\\ls_shop_checkoutData'))
(vendor/contao/core-bundle/src/Security/Authentication/AuthenticationSuccessHandler.php:149)
at Contao\CoreBundle\Security\Authentication\AuthenticationSuccessHandler->triggerPostLoginHook()
(vendor/contao/core-bundle/src/Security/Authentication/AuthenticationSuccessHandler.php:110)
at Contao\CoreBundle\Security\Authentication\AuthenticationSuccessHandler->onAuthenticationSuccess(object(Request), object(UsernamePasswordToken))
(vendor/symfony/security-http/Firewall/AbstractAuthenticationListener.php:217)
at Symfony\Component\Security\Http\Firewall\AbstractAuthenticationListener->onSuccess(object(Request), object(UsernamePasswordToken))
(vendor/symfony/security-http/Firewall/AbstractAuthenticationListener.php:143)
at Symfony\Component\Security\Http\Firewall\AbstractAuthenticationListener->authenticate(object(RequestEvent))
(vendor/symfony/security-bundle/Debug/WrappedLazyListener.php:49)
at Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener->authenticate(object(RequestEvent))
(vendor/symfony/security-http/Firewall/AbstractListener.php:26)
at Symfony\Component\Security\Http\Firewall\AbstractListener->__invoke(object(RequestEvent))
(vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php:73)
at Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->callListeners(object(RequestEvent), object(Generator))
(vendor/symfony/security-http/Firewall.php:92)
at Symfony\Component\Security\Http\Firewall->onKernelRequest(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:230)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:59)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(vendor/symfony/http-kernel/HttpKernel.php:139)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(public/index.php:44)
Umgebung:
Hoster: IONOS
PHP 8.1
Contao 4.13.14
Merconis Shop
PCT Eclipse X
Es könnte so aussehen, als würde sich irgendwo ein nicht ausgefülltes Sprachenfeld befinden.
Beim Mitglied ist das Feld "Sprache" bei den Kontaktdaten ausgefüllt.
Hat da jemand eine Idee?
Grüße
Lesezeichen