Ergebnis 1 bis 4 von 4

Thema: con4gis: Tables lassen sich nicht ändern

  1. #1
    Contao-Fan
    Registriert seit
    28.02.2011.
    Beiträge
    796

    Standard con4gis: Tables lassen sich nicht ändern

    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
    Geändert von conter (19.08.2024 um 15:03 Uhr)

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    37.310
    Partner-ID
    10107

    Standard

    Poste deine composer.json
    » sponsor me via GitHub or Revolut

  3. #3
    Contao-Fan
    Registriert seit
    28.02.2011.
    Beiträge
    796

    Standard

    composer.json

    Code:
    {
        "name": "contao/managed-edition",
        "type": "project",
        "description": "Contao Managed Edition",
        "license": "LGPL-3.0-or-later",
        "require": {
            "con4gis/reservation": "^2.4",
            "contao/calendar-bundle": "4.13.*",
            "contao/comments-bundle": "4.13.*",
            "contao/conflicts": "*@dev",
            "contao/faq-bundle": "4.13.*",
            "contao/listing-bundle": "4.13.*",
            "contao/manager-bundle": "4.13.*",
            "contao/news-bundle": "4.13.*",
            "contao/newsletter-bundle": "4.13.*",
            "delahaye/dlh_googlemaps": "^2.4",
            "erdmannfreunde/optimist-theme-bundle": "1.1.9",
            "jrgregory/m17-sticky-backend-footer": "^2.0",
            "madeyourday/contao-rocksolid-custom-elements": "^2.3",
            "madeyourday/contao-rocksolid-frontend-helper": "^2.0",
            "terminal42/notification_center": "^1.5"
        },
        "conflict": {
            "contao-components/installer": "<1.3"
        },
        "extra": {
            "contao-component-dir": "assets"
        },
        "scripts": {
            "post-install-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ],
            "post-update-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ]
        },
        "config": {
            "allow-plugins": {
                "contao-components/installer": true,
                "php-http/discovery": true,
                "contao/manager-plugin": true,
                "contao-community-alliance/composer-plugin": true,
                "erdmannfreunde/optimist-theme-bundle": true
            }
        }
    }

  4. #4
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    37.310
    Partner-ID
    10107

    Standard

    Die neueste Version von con4gis/reservation ist 3.6.34
    » sponsor me via GitHub or Revolut

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •