Hallo zusammen,
ich aktualisiere gerade ein contao mit con4gis von 4.9 auf 4.13.
Einige Tabellen waren auch in der 4.9 schon nicht zu ändern und ich dachte, es läge an contao-und php-Version. Jetzt ist es 4.13 und php8.2.
Aber auch jetzt bleiben die Änderungen übrig.
Code:
ALTER TABLE tl_c4g_reservation CHANGE uuid uuid VARCHAR(128) CHARACTER SET utf8 DEFAULT '' NOT NULL COLLATE `utf8_bin`
ALTER TABLE tl_c4g_reservation_event CHANGE uuid uuid VARCHAR(128) CHARACTER SET utf8 DEFAULT '' NOT NULL COLLATE `utf8_bin`
ALTER TABLE tl_c4g_reservation_object CHANGE uuid uuid VARCHAR(128) CHARACTER SET utf8 DEFAULT '' NOT NULL COLLATE `utf8_bin`
ALTER TABLE tl_c4g_reservation_object_prices CHANGE price price DOUBLE PRECISION DEFAULT '0.00' NOT NULL
ALTER TABLE tl_c4g_reservation_params CHANGE price price DOUBLE PRECISION UNSIGNED DEFAULT '0.00' NOT NULL
ALTER TABLE tl_c4g_reservation_participants CHANGE uuid uuid VARCHAR(128) CHARACTER SET utf8 DEFAULT '' NOT NULL COLLATE `utf8_bin`
ALTER TABLE tl_c4g_reservation_type CHANGE uuid uuid VARCHAR(128) CHARACTER SET utf8 DEFAULT '' NOT NULL COLLATE `utf8_bin`
übrig.
con4gis Dashboard läßt sich nicht aufrufen mit Fehler "Cannot access offset of type string on string"
Error:
Code:
[2024-08-19 15:27:38] request.INFO: Matched route "tl_page.131". {"route":"tl_page.131","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","_route":"tl_page.131"},"request_uri":"http://stellauer-steakhaus.heise-homepage.de/","method":"GET"} []
[2024-08-19 15:27:38] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2024-08-19 15:27:38] request.CRITICAL: Uncaught PHP Exception TypeError: "DateTime::setTimezone(): Argument #1 ($timezone) must be of type DateTimeZone, string given" at /var/www/clients/client3/web343/web/v2/vendor/con4gis/reservation/Classes/C4gReservationDateChecker.php line 31 {"exception":"[object] (TypeError(code: 0): DateTime::setTimezone(): Argument #1 ($timezone) must be of type DateTimeZone, string given at /var/www/clients/client3/web343/web/v2/vendor/con4gis/reservation/Classes/C4gReservationDateChecker.php:31)"} []
[2024-08-19 15:27:49] request.INFO: Matched route "tl_page.131". {"route":"tl_page.131","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","_route":"tl_page.131"},"request_uri":"http://stellauer-steakhaus.heise-homepage.de/","method":"GET"} []
[2024-08-19 15:27:49] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2024-08-19 15:27:49] request.CRITICAL: Uncaught PHP Exception TypeError: "DateTime::setTimezone(): Argument #1 ($timezone) must be of type DateTimeZone, string given" at /var/www/clients/client3/web343/web/v2/vendor/con4gis/reservation/Classes/C4gReservationDateChecker.php line 31 {"exception":"[object] (TypeError(code: 0): DateTime::setTimezone(): Argument #1 ($timezone) must be of type DateTimeZone, string given at /var/www/clients/client3/web343/web/v2/vendor/con4gis/reservation/Classes/C4gReservationDateChecker.php:31)"} []
Stacktrace:
Code:
ErrorException:
Warning: Undefined global variable $CON4GIS
at vendor/con4gis/core/Resources/contao/config/config.php:77
at include('/var/www/clients/client3/web343/web/v2/vendor/con4gis/core/Resources/contao/config/config.php')
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Config.php:198)
at Contao\Config->initialize()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Config.php:163)
at Contao\Config::getInstance()
(vendor/contao/core-bundle/src/Framework/Adapter.php:46)
at Contao\CoreBundle\Framework\Adapter->__call()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:298)
at Contao\CoreBundle\Framework\ContaoFramework->initializeFramework()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:122)
at Contao\CoreBundle\Framework\ContaoFramework->initialize()
(vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:68)
at Contao\CoreBundle\Security\User\ContaoUserProvider->loadUserByIdentifier()
(vendor/contao/core-bundle/src/Security/User/ContaoUserProvider.php:87)
at Contao\CoreBundle\Security\User\ContaoUserProvider->refreshUser()
(vendor/symfony/security-http/Firewall/ContextListener.php:236)
at Symfony\Component\Security\Http\Firewall\ContextListener->refreshUser()
(vendor/symfony/security-http/Firewall/ContextListener.php:137)
at Symfony\Component\Security\Http\Firewall\ContextListener->authenticate()
(vendor/symfony/security-bundle/Debug/WrappedLazyListener.php:49)
at Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener->authenticate()
(vendor/symfony/security-http/Firewall/AbstractListener.php:26)
at Symfony\Component\Security\Http\Firewall\AbstractListener->__invoke()
(vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php:80)
at Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->callListeners()
(vendor/symfony/security-http/Firewall.php:92)
at Symfony\Component\Security\Http\Firewall->onKernelRequest()
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
(vendor/symfony/event-dispatcher/EventDispatcher.php:230)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
(vendor/symfony/event-dispatcher/EventDispatcher.php:59)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
(vendor/symfony/http-kernel/HttpKernel.php:139)
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()
(web/index.php:44)
at require('/var/www/clients/client3/web343/web/v2/web/index.php')
(web/app.php:13)
Kennst jemand das Problem? Oder noch besser die Lösung desselben?
Viele Grüße,
conter