Contao-Camp 2024
Ergebnis 1 bis 13 von 13

Thema: Nach Umzug auf neuen Server: Compile Error: Cannot declare class tl_theme, because th

  1. #1
    Contao-Nutzer
    Registriert seit
    27.02.2023.
    Beiträge
    2

    Frage Nach Umzug auf neuen Server: Compile Error: Cannot declare class tl_theme, because th

    Moin,

    nachdem ich meine Contao instanz auf einen neuen Hoster (Hetzner) umgezogen habe (bin der Anleitung gefolgt). Php version ist auf beiden Systemen 8.1.

    Eigentlich läuft alles, bis auf folgenden Fehler:
    Code:
    Symfony\Component\ErrorHandler\Error\FatalError:
    Compile Error: Cannot declare class tl_theme, because the name is already in use
    
      
      at Contao\DcaLoader->loadDcaFiles('blnNoCache' => 'FALSE')
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:75)
      at Contao\DcaLoader->load('blnNoCache' => '???')
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:1448)
      at Contao\Controller::loadDataContainer('strTable' => '\'tl_theme\'', 'blnNoCache' => '???')
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:378)
      at Contao\DcaExtractor->createExtract()
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:126)
      at Contao\DcaExtractor->__construct('strTable' => '\'tl_theme\'')
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:148)
      at Contao\DcaExtractor::getInstance('strTable' => '\'tl_theme\'')
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model/QueryBuilder.php:31)
      at Contao\Model\QueryBuilder::find('arrOptions' => '[\'return\' => \'Collection\', \'order\' => \'name\', \'table\' => \'tl_theme\']')
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:1231)
      at Contao\Model::buildFindQuery('arrOptions' => '[\'return\' => \'Collection\', \'order\' => \'name\', \'table\' => \'tl_theme\']')
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:1064)
      at Contao\Model::find('arrOptions' => '[\'return\' => \'Collection\', \'order\' => \'name\']')
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:978)
      at Contao\Model::findAll('arrOptions' => '[\'order\' => \'name\']')
         (vendor/madeyourday/contao-rocksolid-custom-elements/src/Template/CustomTemplate.php:60)
      at MadeYourDay\RockSolidCustomElements\Template\CustomTemplate::getTemplates('template' => '\'rsce_tao_boxes\'', 'format' => '???')
         (vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1441)
      at MadeYourDay\RockSolidCustomElements\CustomElements::loadConfig('bypassCache' => '???')
         (vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1665)
      at MadeYourDay\RockSolidCustomElements\CustomElements->loadLanguageFileHook('name' => '\'default\'', 'language' => '\'en\'', '\'en\'')
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:579)
      at Contao\System::loadLanguageFile('strName' => '\'default\'', 'strLanguage' => '???', 'blnNoCache' => '???')
         (vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1364)
      at MadeYourDay\RockSolidCustomElements\CustomElements::loadConfig('bypassCache' => '???')
         (vendor/contao/core-bundle/src/Framework/ContaoFramework.php:405)
      at Contao\CoreBundle\Framework\ContaoFramework->triggerInitializeSystemHook()
         (vendor/contao/core-bundle/src/Framework/ContaoFramework.php:307)
      at Contao\CoreBundle\Framework\ContaoFramework->initializeFramework()
         (vendor/contao/core-bundle/src/Framework/ContaoFramework.php:122)
      at Contao\CoreBundle\Framework\ContaoFramework->initialize('isFrontend' => '???')
         (vendor/contao/core-bundle/src/HttpKernel/ModelArgumentResolver.php:43)
      at Contao\CoreBundle\HttpKernel\ModelArgumentResolver->supports('request' => 'class Symfony\\Component\\HttpFoundation\\Request { public $attributes = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $query = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $server = class Symfony\\Component\\HttpFoundation\\ServerBag { protected $parameters = [...] }; public $files = class Symfony\\Component\\HttpFoundation\\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $headers = class Symfony\\Component\\HttpFoundation\\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = [0 => \'en_US\', 1 => \'en\']; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = \'/contao/login\'; protected $requestUri = \'/contao/login?_hash=O%2BXb12SZjFpfGyq652m29%2BEgDuJ6yCE2HD%2BnZfSVd%2Fk%3D&redirect=https%3A%2F%2Fwww.oststeinbekersv.de%2Fcontao\'; protected $baseUrl = \'\'; protected $basePath = \'\'; protected $method = \'GET\'; protected $format = NULL; protected $session = class Symfony\\Component\\HttpFoundation\\Session\\Session { protected $storage = class Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage { ... }; private $flashName = \'flashes\'; private $attributeName = \'attributes\'; private $data = [...]; private $usageIndex = 7; private $usageReporter = [...] }; protected $locale = \'en\'; protected $defaultLocale = \'en\'; private $preferredFormat = NULL; private $isHostValid = TRUE; private $isForwardedValid = TRUE; private $isSafeContentPreferred = NULL }', 'argument' => 'class Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata { private $name = \'request\'; private $type = \'Symfony\\\\Component\\\\HttpFoundation\\\\Request\'; private $isVariadic = FALSE; private $hasDefaultValue = FALSE; private $defaultValue = NULL; private $isNullable = FALSE; private $attributes = [] }')
         (vendor/symfony/http-kernel/Controller/ArgumentResolver/TraceableValueResolver.php:43)
      at Symfony\Component\HttpKernel\Controller\ArgumentResolver\TraceableValueResolver->supports('request' => 'class Symfony\\Component\\HttpFoundation\\Request { public $attributes = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $query = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $server = class Symfony\\Component\\HttpFoundation\\ServerBag { protected $parameters = [...] }; public $files = class Symfony\\Component\\HttpFoundation\\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $headers = class Symfony\\Component\\HttpFoundation\\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = [0 => \'en_US\', 1 => \'en\']; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = \'/contao/login\'; protected $requestUri = \'/contao/login?_hash=O%2BXb12SZjFpfGyq652m29%2BEgDuJ6yCE2HD%2BnZfSVd%2Fk%3D&redirect=https%3A%2F%2Fwww.oststeinbekersv.de%2Fcontao\'; protected $baseUrl = \'\'; protected $basePath = \'\'; protected $method = \'GET\'; protected $format = NULL; protected $session = class Symfony\\Component\\HttpFoundation\\Session\\Session { protected $storage = class Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage { ... }; private $flashName = \'flashes\'; private $attributeName = \'attributes\'; private $data = [...]; private $usageIndex = 7; private $usageReporter = [...] }; protected $locale = \'en\'; protected $defaultLocale = \'en\'; private $preferredFormat = NULL; private $isHostValid = TRUE; private $isForwardedValid = TRUE; private $isSafeContentPreferred = NULL }', 'argument' => 'class Symfony\\Component\\HttpKernel\\ControllerMetadata\\ArgumentMetadata { private $name = \'request\'; private $type = \'Symfony\\\\Component\\\\HttpFoundation\\\\Request\'; private $isVariadic = FALSE; private $hasDefaultValue = FALSE; private $defaultValue = NULL; private $isNullable = FALSE; private $attributes = [] }')
         (vendor/symfony/http-kernel/Controller/ArgumentResolver.php:51)
      at Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments('request' => 'class Symfony\\Component\\HttpFoundation\\Request { public $attributes = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $query = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $server = class Symfony\\Component\\HttpFoundation\\ServerBag { protected $parameters = [...] }; public $files = class Symfony\\Component\\HttpFoundation\\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $headers = class Symfony\\Component\\HttpFoundation\\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = [0 => \'en_US\', 1 => \'en\']; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = \'/contao/login\'; protected $requestUri = \'/contao/login?_hash=O%2BXb12SZjFpfGyq652m29%2BEgDuJ6yCE2HD%2BnZfSVd%2Fk%3D&redirect=https%3A%2F%2Fwww.oststeinbekersv.de%2Fcontao\'; protected $baseUrl = \'\'; protected $basePath = \'\'; protected $method = \'GET\'; protected $format = NULL; protected $session = class Symfony\\Component\\HttpFoundation\\Session\\Session { protected $storage = class Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage { ... }; private $flashName = \'flashes\'; private $attributeName = \'attributes\'; private $data = [...]; private $usageIndex = 7; private $usageReporter = [...] }; protected $locale = \'en\'; protected $defaultLocale = \'en\'; private $preferredFormat = NULL; private $isHostValid = TRUE; private $isForwardedValid = TRUE; private $isSafeContentPreferred = NULL }', 'controller' => '[0 => class Contao\\CoreBundle\\Controller\\BackendController { protected $container = class Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocator { ... } }, 1 => \'loginAction\']')
         (vendor/symfony/http-kernel/Controller/TraceableArgumentResolver.php:38)
      at Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver->getArguments('request' => 'class Symfony\\Component\\HttpFoundation\\Request { public $attributes = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $query = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $server = class Symfony\\Component\\HttpFoundation\\ServerBag { protected $parameters = [...] }; public $files = class Symfony\\Component\\HttpFoundation\\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $headers = class Symfony\\Component\\HttpFoundation\\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = [0 => \'en_US\', 1 => \'en\']; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = \'/contao/login\'; protected $requestUri = \'/contao/login?_hash=O%2BXb12SZjFpfGyq652m29%2BEgDuJ6yCE2HD%2BnZfSVd%2Fk%3D&redirect=https%3A%2F%2Fwww.oststeinbekersv.de%2Fcontao\'; protected $baseUrl = \'\'; protected $basePath = \'\'; protected $method = \'GET\'; protected $format = NULL; protected $session = class Symfony\\Component\\HttpFoundation\\Session\\Session { protected $storage = class Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage { ... }; private $flashName = \'flashes\'; private $attributeName = \'attributes\'; private $data = [...]; private $usageIndex = 7; private $usageReporter = [...] }; protected $locale = \'en\'; protected $defaultLocale = \'en\'; private $preferredFormat = NULL; private $isHostValid = TRUE; private $isForwardedValid = TRUE; private $isSafeContentPreferred = NULL }', 'controller' => '[0 => class Contao\\CoreBundle\\Controller\\BackendController { protected $container = class Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocator { ... } }, 1 => \'loginAction\']')
         (vendor/symfony/http-kernel/HttpKernel.php:155)
      at Symfony\Component\HttpKernel\HttpKernel->handleRaw('request' => 'class Symfony\\Component\\HttpFoundation\\Request { public $attributes = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $query = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $server = class Symfony\\Component\\HttpFoundation\\ServerBag { protected $parameters = [...] }; public $files = class Symfony\\Component\\HttpFoundation\\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $headers = class Symfony\\Component\\HttpFoundation\\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = [0 => \'en_US\', 1 => \'en\']; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = \'/contao/login\'; protected $requestUri = \'/contao/login?_hash=O%2BXb12SZjFpfGyq652m29%2BEgDuJ6yCE2HD%2BnZfSVd%2Fk%3D&redirect=https%3A%2F%2Fwww.oststeinbekersv.de%2Fcontao\'; protected $baseUrl = \'\'; protected $basePath = \'\'; protected $method = \'GET\'; protected $format = NULL; protected $session = class Symfony\\Component\\HttpFoundation\\Session\\Session { protected $storage = class Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage { ... }; private $flashName = \'flashes\'; private $attributeName = \'attributes\'; private $data = [...]; private $usageIndex = 7; private $usageReporter = [...] }; protected $locale = \'en\'; protected $defaultLocale = \'en\'; private $preferredFormat = NULL; private $isHostValid = TRUE; private $isForwardedValid = TRUE; private $isSafeContentPreferred = NULL }', 'type' => '1')
         (vendor/symfony/http-kernel/HttpKernel.php:75)
      at Symfony\Component\HttpKernel\HttpKernel->handle('request' => 'class Symfony\\Component\\HttpFoundation\\Request { public $attributes = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $query = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $server = class Symfony\\Component\\HttpFoundation\\ServerBag { protected $parameters = [...] }; public $files = class Symfony\\Component\\HttpFoundation\\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $headers = class Symfony\\Component\\HttpFoundation\\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = [0 => \'en_US\', 1 => \'en\']; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = \'/contao/login\'; protected $requestUri = \'/contao/login?_hash=O%2BXb12SZjFpfGyq652m29%2BEgDuJ6yCE2HD%2BnZfSVd%2Fk%3D&redirect=https%3A%2F%2Fwww.oststeinbekersv.de%2Fcontao\'; protected $baseUrl = \'\'; protected $basePath = \'\'; protected $method = \'GET\'; protected $format = NULL; protected $session = class Symfony\\Component\\HttpFoundation\\Session\\Session { protected $storage = class Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage { ... }; private $flashName = \'flashes\'; private $attributeName = \'attributes\'; private $data = [...]; private $usageIndex = 7; private $usageReporter = [...] }; protected $locale = \'en\'; protected $defaultLocale = \'en\'; private $preferredFormat = NULL; private $isHostValid = TRUE; private $isForwardedValid = TRUE; private $isSafeContentPreferred = NULL }', 'type' => '1', 'catch' => 'TRUE')
         (vendor/symfony/http-kernel/Kernel.php:202)
      at Contao\ManagerBundle\HttpKernel\ContaoKernel->handle('request' => 'class Symfony\\Component\\HttpFoundation\\Request { public $attributes = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $query = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $server = class Symfony\\Component\\HttpFoundation\\ServerBag { protected $parameters = [...] }; public $files = class Symfony\\Component\\HttpFoundation\\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\\Component\\HttpFoundation\\InputBag { protected $parameters = [...] }; public $headers = class Symfony\\Component\\HttpFoundation\\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = [0 => \'en_US\', 1 => \'en\']; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = \'/contao/login\'; protected $requestUri = \'/contao/login?_hash=O%2BXb12SZjFpfGyq652m29%2BEgDuJ6yCE2HD%2BnZfSVd%2Fk%3D&redirect=https%3A%2F%2Fwww.oststeinbekersv.de%2Fcontao\'; protected $baseUrl = \'\'; protected $basePath = \'\'; protected $method = \'GET\'; protected $format = NULL; protected $session = class Symfony\\Component\\HttpFoundation\\Session\\Session { protected $storage = class Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage { ... }; private $flashName = \'flashes\'; private $attributeName = \'attributes\'; private $data = [...]; private $usageIndex = 7; private $usageReporter = [...] }; protected $locale = \'en\'; protected $defaultLocale = \'en\'; private $preferredFormat = NULL; private $isHostValid = TRUE; private $isForwardedValid = TRUE; private $isSafeContentPreferred = NULL }', 'type' => '???', 'catch' => '???')
         (public/index.php:44)
      at {main}()
    Könnt ihr mir da weiterhelfen?

    MFG
    Leon

  2. #2
    Contao-Nutzer Avatar von cmrtn
    Registriert seit
    05.10.2017.
    Beiträge
    12

    Standard

    Ich habe aktuell genau dasselbe Problem - gibt es dazu Neues?

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

    Standard

    Postet eure composer.json
    » sponsor me via GitHub or PayPal or Revolut

  4. #4
    Contao-Fan
    Registriert seit
    28.02.2011.
    Beiträge
    675

    Standard Cannot declare class tl_theme, because the name is already in use

    Ich habe das Problem gerade auch nach dem Umzug einer 4.13 auf einen anderen Server mit php8.1

    Der Manager ist erreichbar, aber beim Aufruf von /contao/install kommt oben genannter Fehler im Log.

    Code:
    "Compile Error: Cannot declare class tl_theme, because the name is already in use" at /var/www/clients/client2/web506/web/v1/vendor/contao/core-bundle/src/Resources/contao/dca/tl_theme.php line 0
    Meine composer.json sieht so aus:

    Code:
    {
        "type": "project",
        "require": {
            "alnv/catalog-manager": "^1.32",
            "alnv/catalog-manager-export": "^1.2",
            "alnv/catalog-manager-importer": "^1.3",
            "bugbuster/contao-dlstats-bundle": "^1.3",
            "codefog/contao-news_categories": "^3.4",
            "codefog/tags-bundle": "^3.3",
            "contao/calendar-bundle": "4.13.*",
            "contao/conflicts": "*@dev",
            "contao/manager-bundle": "4.13.*",
            "contao/news-bundle": "4.13.*",
            "contao/newsletter-bundle": "4.13.*",
            "derhaeuptling/contao-mega-menu": "^1.0",
            "dma/dma_simple_grid": "^1.1",
            "erdmannfreunde/theme-toolbox": "^2.2",
            "fritzmg/contao-file-access": "^2.3",
            "fritzmg/contao-news-sorting": "^3.0",
            "fritzmg/contao-sharebuttons": "^2.2",
            "heimrichhannot/contao-filename-sanitizer-bundle": "^2.4",
            "hofff/contao-recursive-download-folder": "^3.2",
            "madeyourday/contao-rocksolid-custom-elements": "^2.3",
            "netzmacht/contao-font-awesome-inserttag": "^2.2",
            "sineos/filemanager-bundle": "^1.0",
            "terminal42/contao-root-protection": "^1.0",
            "terminal42/notification_center": "^1.6"
        },
        "extra": {
            "contao-component-dir": "assets"
        },
        "scripts": {
            "post-install-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ],
            "post-update-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ]
        }
    }
    Viele Grüße,
    conter
    Geändert von conter (07.03.2023 um 16:59 Uhr)

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

    Standard

    Mit dieser composer.json kann ich kein Problem feststellen. Hast du eine vollständige Paketaktualisierung durchgeführt?
    » sponsor me via GitHub or PayPal or Revolut

  6. #6
    Contao-Fan
    Registriert seit
    28.02.2011.
    Beiträge
    675

    Standard

    Ja, installiert habe ich die bundls aus der composer.lock über Systemwartung / Installer ausführen.

    Dann hab ich später beim Fehlersuchen auch noch mal Paket/Pakete aktualisieren / Änderungen anwenden gemacht.

    Das Log aus dem Manager zeigt

    Code:
    > Resolving dependencies using Composer Cloud v3.5.1
    
    [7.6MiB/0.17s] Loading composer repositories with package information
    [81.6MiB/9.42s] Updating dependencies
    [33.9MiB/10.49s] Lock file operations: 3 installs, 95 updates, 0 removals
    [33.9MiB/10.50s]   - Upgrading alnv/catalog-manager (v1.32.29 => v1.32.34)
    [33.9MiB/10.50s]   - Upgrading bugbuster/contao-dlstats-bundle (1.3.6 => 1.3.7)
    [33.9MiB/10.50s]   - Upgrading codefog/contao-haste (4.25.23 => 5.1.3)
    [33.9MiB/10.50s]   - Upgrading codefog/contao-news_categories (3.4.23 => 3.5.1)
    [33.9MiB/10.50s]   - Upgrading codefog/tags-bundle (3.3.5 => 3.3.12)
    [33.9MiB/10.51s]   - Upgrading contao-components/ace (1.15.0 => 1.15.3)
    [33.9MiB/10.51s]   - Upgrading contao/calendar-bundle (4.13.15 => 4.13.16)
    [33.9MiB/10.51s]   - Upgrading contao/conflicts (dev-main 2d8ba56 => dev-main cff8787)
    [33.9MiB/10.51s]   - Upgrading contao/core-bundle (4.13.15 => 4.13.16)
    [33.9MiB/10.51s]   - Upgrading contao/installation-bundle (4.13.15 => 4.13.16)
    [33.9MiB/10.51s]   - Upgrading contao/manager-bundle (4.13.15 => 4.13.16)
    [33.9MiB/10.51s]   - Upgrading contao/news-bundle (4.13.15 => 4.13.16)
    [33.9MiB/10.51s]   - Upgrading contao/newsletter-bundle (4.13.15 => 4.13.16)
    [33.9MiB/10.51s]   - Upgrading dasprid/enum (1.0.3 => 1.0.4)
    [33.9MiB/10.51s]   - Upgrading doctrine/annotations (1.14.2 => 1.14.3)
    [33.9MiB/10.51s]   - Upgrading doctrine/dbal (3.5.3 => 3.6.1)
    [33.9MiB/10.52s]   - Upgrading doctrine/doctrine-bundle (2.8.2 => 2.8.3)
    [33.9MiB/10.52s]   - Upgrading doctrine/persistence (2.5.6 => 2.5.7)
    [33.9MiB/10.52s]   - Upgrading egulias/email-validator (3.2.5 => 4.0.1)
    [33.9MiB/10.52s]   - Upgrading friendsofsymfony/http-cache-bundle (2.14.0 => 2.15.0)
    [33.9MiB/10.52s]   - Upgrading heimrichhannot/contao-ajax-bundle (1.1.3 => 1.2.0)
    [33.9MiB/10.52s]   - Locking heimrichhannot/contao-encore-contracts (1.0.2)
    [33.9MiB/10.52s]   - Upgrading heimrichhannot/contao-multi-column-editor-bundle (2.13.11 => 2.14.1)
    [33.9MiB/10.52s]   - Upgrading heimrichhannot/contao-utils-bundle (2.225.0 => 2.226.0)
    [33.9MiB/10.52s]   - Upgrading jaybizzle/crawler-detect (v1.2.112 => v1.2.113)
    [33.9MiB/10.52s]   - Upgrading laminas/laminas-code (4.7.1 => 4.9.0)
    [33.9MiB/10.52s]   - Upgrading lcobucci/clock (2.0.0 => 2.3.0)
    [33.9MiB/10.52s]   - Upgrading league/commonmark (2.3.8 => 2.3.9)
    [33.9MiB/10.53s]   - Upgrading league/flysystem (2.5.0 => 3.12.3)
    [33.9MiB/10.53s]   - Upgrading madeyourday/contao-rocksolid-custom-elements (v2.4.2 => v2.4.3)
    [33.9MiB/10.53s]   - Upgrading maennchen/zipstream-php (2.2.6 => v2.4.0)
    [33.9MiB/10.53s]   - Upgrading matthiasmullie/scrapbook (1.4.9 => 1.5.1)
    [33.9MiB/10.53s]   - Upgrading menatwork/contao-multicolumnwizard-bundle (3.5.8 => 3.5.9)
    [33.9MiB/10.53s]   - Upgrading monolog/monolog (2.8.0 => 2.9.1)
    [33.9MiB/10.53s]   - Upgrading nelmio/cors-bundle (2.2.0 => 2.3.1)
    [33.9MiB/10.53s]   - Upgrading nette/utils (v3.2.9 => v4.0.0)
    [33.9MiB/10.53s]   - Upgrading nikic/php-parser (v4.15.3 => v4.15.4)
    [33.9MiB/10.53s]   - Upgrading php-http/discovery (1.14.3 => 1.15.2)
    [33.9MiB/10.53s]   - Upgrading phpoffice/phpspreadsheet (1.27.0 => 1.28.0)
    [33.9MiB/10.54s]   - Upgrading psr/cache (1.0.1 => 2.0.0)
    [33.9MiB/10.54s]   - Locking psr/clock (1.0.0)
    [33.9MiB/10.54s]   - Upgrading psr/simple-cache (1.0.1 => 3.0.0)
    [33.9MiB/10.54s]   - Upgrading spatie/schema-org (3.9.0 => 3.14.0)
    [33.9MiB/10.54s]   - Locking stella-maris/clock (0.1.7)
    [33.9MiB/10.54s]   - Upgrading symfony/asset (v5.4.19 => v5.4.21)
    [33.9MiB/10.54s]   - Upgrading symfony/cache (v5.4.19 => v5.4.21)
    [33.9MiB/10.54s]   - Upgrading symfony/config (v5.4.19 => v5.4.21)
    [33.9MiB/10.54s]   - Upgrading symfony/console (v5.4.19 => v5.4.21)
    [33.9MiB/10.54s]   - Upgrading symfony/css-selector (v5.4.19 => v5.4.21)
    [33.9MiB/10.54s]   - Upgrading symfony/debug-bundle (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/dependency-injection (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/deprecation-contracts (v2.5.2 => v3.2.1)
    [33.9MiB/10.55s]   - Upgrading symfony/doctrine-bridge (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/dom-crawler (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/dotenv (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/error-handler (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/event-dispatcher (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/event-dispatcher-contracts (v2.5.2 => v3.2.1)
    [33.9MiB/10.55s]   - Upgrading symfony/expression-language (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/filesystem (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/finder (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/framework-bundle (v5.4.19 => v5.4.21)
    [33.9MiB/10.55s]   - Upgrading symfony/http-client (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/http-foundation (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/http-kernel (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/intl (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/lock (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/mailer (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/mime (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/monolog-bridge (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/options-resolver (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/password-hasher (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/process (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/property-access (v5.4.19 => v5.4.21)
    [33.9MiB/10.56s]   - Upgrading symfony/property-info (v5.4.19 => v6.2.7)
    [33.9MiB/10.56s]   - Upgrading symfony/proxy-manager-bridge (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/routing (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/security-bundle (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/security-core (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/security-csrf (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/security-guard (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/security-http (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/stopwatch (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/string (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/templating (v5.4.19 => v6.2.7)
    [33.9MiB/10.57s]   - Upgrading symfony/translation (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/twig-bridge (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/twig-bundle (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/uid (v5.4.19 => v5.4.21)
    [33.9MiB/10.57s]   - Upgrading symfony/var-dumper (v5.4.19 => v5.4.21)
    [33.9MiB/10.58s]   - Upgrading symfony/var-exporter (v5.4.19 => v6.2.7)
    [33.9MiB/10.58s]   - Upgrading symfony/web-profiler-bundle (v5.4.19 => v5.4.21)
    [33.9MiB/10.58s]   - Upgrading symfony/yaml (v5.4.19 => v5.4.21)
    [33.9MiB/10.58s]   - Upgrading terminal42/dcawizard (2.5.0 => 2.6.1)
    [33.9MiB/10.58s]   - Upgrading terminal42/notification_center (1.6.14 => 1.7.1)
    [33.9MiB/10.58s]   - Upgrading thecodingmachine/safe (v1.3.3 => v2.4.0)
    [33.9MiB/10.58s]   - Upgrading twig/extra-bundle (v3.5.0 => v3.5.1)
    [33.9MiB/10.58s]   - Upgrading twig/twig (v3.5.0 => v3.5.1)
    [33.0MiB/10.59s] Writing lock file
    [17.7MiB/10.62s] Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
    [18.0MiB/10.86s] No security vulnerability advisories found
    [18.5MiB/10.86s] Memory usage: 18.54MB (peak: 214.26MB), time: 10.86s.
    [18.5MiB/10.86s] Finished Composer Cloud resolving.
    
    
    # Job ID 20Jj0CZMVSXDYVwnbr6ijofrpL44oLS1FoMDCwe1u6RXV06Ith96UTsBXHp8hElDhwHO5BIfj16IMTcljz3K9tV2TLu completed in 14 seconds
    # Memory usage: 18.54MB (peak: 214.26MB), time: 10.86s.
    Aber bei
    Code:
    vendor/bin/contao-console contao:maintenance-mode enable
    composer install
    vendor/bin/contao-console contao:maintenance-mode disable
    ist je Zeile ein rotes x abgebildet statt des grünen Hakens

    Und der "Compile Error: Cannot declare class tl_theme ..." wird angezeigt.

  7. #7
    Contao-Nutzer
    Registriert seit
    27.02.2023.
    Beiträge
    2

    Standard

    Meine
    Code:
    composer.json
    Code:
    {
        "type": "project",
        "require": {
            "cgoit/contao-calendar-ical-php8-bundle": "^4.4",
            "codefog/contao-news_categories": "^3.5",
            "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.*",
            "heimrichhannot/contao-filename-sanitizer-bundle": "^2.4",
            "linking-you/easy_exclude": "^2.0",
            "madeyourday/contao-rocksolid-antispam": "^2.1",
            "madeyourday/contao-rocksolid-columns": "^2.1",
            "madeyourday/contao-rocksolid-custom-elements": "^2.4",
            "madeyourday/contao-rocksolid-frontend-helper": "^2.2",
            "madeyourday/contao-rocksolid-icon-picker": "^2.1",
            "madeyourday/contao-rocksolid-mega-menu": "^2.2",
            "madeyourday/contao-rocksolid-slider": "^2.2",
            "madeyourday/contao-rocksolid-theme-assistant": "^2.1",
            "mediamotionag/contao-backend-optim-bundle": "^2.0",
            "oveleon/contao-cookiebar": "^1.12",
            "pdir/animated-timeline-bundle": "^1.2",
            "pdir/social-feed-bundle": "^2.12",
            "sineos/filemanager-bundle": "^1.0",
            "terminal42/contao-folderpage": "^3.0",
            "terminal42/notification_center": "^1.7",
            "trilobit-gmbh/contao-constants-bundle": "^2.0"
        },
        "extra": {
            "public-dir": "public",
            "contao-component-dir": "assets"
        },
        "scripts": {
            "post-install-cmd": [
                "@php vendor/bin/contao-setup"
            ],
            "post-update-cmd": [
                "@php vendor/bin/contao-setup"
            ]
        }
    }
    Wenn ich
    Code:
    vendor/bin/contao-console contao:maintenance-mode enable
    composer install
    vendor/bin/contao-console contao:maintenance-mode disable
    ausführe läuft er problemlos durch.

    Ich bekomme den Fehler, wenn ich den Debug-Modus im Frontend anmache und dann in diesem Symphony debugger bin.
    Screenshot 2023-03-10 at 17.52.06.png

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

    Standard

    Diese composer.json benötigt mindestens PHP 8.1. Unter PHP 8.1 funktioniert aber bspw. folgendes Paket nicht: linking-you/easy_exclude
    Code:
    ErrorException:
    Warning: Undefined array key "admin"
    
      at vendor\contao\core-bundle\src\Resources\contao\classes\BackendUser.php:168
      at Contao\BackendUser->__get('isAdmin')
         (vendor\linking-you\easy_exclude\src\Backend\EasyExclude.php:218)
    » sponsor me via GitHub or PayPal or Revolut

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

    Standard

    Zum anderen Fehler: vermutlich ist das hier die Ursache: https://github.com/oveleon/contao-cookiebar/pull/154
    » sponsor me via GitHub or PayPal or Revolut

  10. #10
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    33.896
    Partner-ID
    10107
    » sponsor me via GitHub or PayPal or Revolut

  11. #11
    Contao-Nutzer
    Registriert seit
    02.09.2022.
    Beiträge
    14

    Standard

    Hallo miteinander

    Gibt es zwischenzeitlich etwas Neues zu diesem Thema? Ich habe bei einer Contao 4.13-Installation, welche wir regelmässig updaten plötzlich das Problem, das ich die Erweiterung codefog/contao-news_categories nicht mehr aktualisieren (und auch nicht löschen kann). Im Manager erscheint folgende Fehlermeldung:

    Code:
    $ /opt/plesk/php/8.1/bin/php -q -dmax_execution_time=0 -dmemory_limit=-1 -ddisplay_errors=0 -ddisplay_startup_errors=0 -derror_reporting=0 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Zurich /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/contao-manager.phar.php composer install --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader
    
    Installing dependencies from lock file
    
    Verifying lock file contents can be installed on current platform.
    
    Nothing to install, update or remove
    
    Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
    
    Generating optimized autoload files
    
    Class Contao\ManagerPlugin\PluginLoader located in ./vendor/contao/manager-plugin/src/Resources/PluginLoader.php does not comply with psr-4 autoloading standard. Skipping.
    
    110 packages you are using are looking for funding.
    
    Use the `composer fund` command to find out more!
    
    contao/manager-plugin: Dumping generated plugins file...
    
    contao/manager-plugin: ...done dumping generated plugins file
    
    Deprecated: Return type of Netzmacht\Contao\Leaflet\Frontend\Assets\LibrariesConfiguration::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/netzmacht/contao-leaflet-maps/src/Frontend/Assets/LibrariesConfiguration.php on line 74
    
    > @php vendor/bin/contao-setup
    
    Added the /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/app.php file.
    
    Added the /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/preview.php file.
    
    Added the /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/web/index.php file.
    
    Trying to install assets as relative symbolic links.
    
    --- ----------------------------------- ------------------
    
    Bundle Method / Error
    
    --- ----------------------------------- ------------------
    
    ? ContaoCoreBundle relative symlink
    
    ? ContaoFilesmanagerFileusageBundle relative symlink
    
    ? RockSolidCustomElementsBundle relative symlink
    
    ? LeafletGeocodeWidgetBundle relative symlink
    
    ? MultiColumnWizardBundle relative symlink
    
    ? ContaoFaqBundle relative symlink
    
    ? CodefogHasteBundle relative symlink
    
    ? RockSolidColumnsBundle relative symlink
    
    ? ContaoCommentsBundle relative symlink
    
    ? TrilobitAjaxPaginationBundle relative symlink
    
    ? ContaoNewsBundle relative symlink
    
    ? PdirContentMigrationBundle relative symlink
    
    ? RockSolidFrontendHelperBundle relative symlink
    
    ? RockSolidMegaMenuBundle relative symlink
    
    ? RockSolidThemeAssistantBundle relative symlink
    
    ? ContaoCalendarBundle relative symlink
    
    ? ContaoNewsletterBundle relative symlink
    
    ? RockSolidIconPickerBundle relative symlink
    
    ? SoftleisterBackupDbBundle relative symlink
    
    ? CodefogNewsCategoriesBundle relative symlink
    
    ? RockSolidSliderBundle relative symlink
    
    ? NetzmachtContaoLeafletBundle relative symlink
    
    --- ----------------------------------- ------------------
    
    [OK] All assets were successfully installed.
    
    --- -------------------------------------------------- ----------------------------------------------------------------
    
    Symlink Target / Error
    
    --- -------------------------------------------------- ----------------------------------------------------------------
    
    ! web/files/dokumente/intranet Skipped because files/dokumente will be symlinked.
    
    ! web/files/dokumente/intranet/News Skipped because files/dokumente will be symlinked.
    
    ! web/files/dokumente/intranet/Bettenbelegung Skipped because files/dokumente will be symlinked.
    
    ? web/files/bilder files/bilder
    
    ? web/files/media files/media
    
    ? web/files/oneo-intranet files/oneo-intranet
    
    ? web/files/dokumente files/dokumente
    
    ? web/files/oneo files/oneo
    
    ? web/files/design files/design
    
    ? web/system/modules/multicolumnwizard/html system/modules/multicolumnwizard/html
    
    ? web/system/modules/fullcalendar/assets system/modules/fullcalendar/assets
    
    ? web/system/modules/m17StickyBEFooter/assets system/modules/m17StickyBEFooter/assets
    
    ? web/system/modules/_conditionalformfields/assets system/modules/_conditionalformfields/assets
    
    ? web/system/modules/_haste/assets system/modules/_haste/assets
    
    ? web/system/modules/hofff_calendarfield/assets system/modules/hofff_calendarfield/assets
    
    ? web/system/modules/conditionalformfields/assets system/modules/conditionalformfields/assets
    
    ? system/themes/flexible vendor/contao/core-bundle/src/Resources/contao/themes/flexible
    
    ? web/assets assets
    
    ? web/system/themes system/themes
    
    ? system/logs var/logs
    
    ? web/vendor/scrivo/highlight_php/styles vendor/scrivo/highlight.php/styles
    
    --- -------------------------------------------------- ----------------------------------------------------------------
    
    // Clearing the cache for the prod environment with debug
    
    // false
    
    [OK] Cache for the "prod" environment (debug=false) was successfully cleared.
    
    // Clearing the cache for the dev environment with debug
    
    // true
    
    [OK] Cache for the "dev" environment (debug=true) was successfully cleared.
    
    // Warming up the cache for the prod environment with debug
    
    // false
    
    In tl_theme.php line 216:
    
    Compile Error: Cannot declare class tl_theme, because the name is already i
    
    n use
    
    cache:warmup [--no-optional-warmers]
    
    10:04:12 CRITICAL [console] An error occurred while using the console. Message: "An error occurred while executing the "/opt/plesk/php/8.1/bin/php -dmemory_limit=-1 /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command:
    
    In tl_theme.php line 216:
    
    Compile Error: Cannot declare class tl_theme, because the name is already i
    
    n use
    
    cache:warmup [--no-optional-warmers]
    
    " ["exception" => RuntimeException { …},"message" => """ An error occurred while executing the "/opt/plesk/php/8.1/bin/php -dmemory_limit=-1 /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-intranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command: \n In tl_theme.php line 216:\n \n Compile Error: Cannot declare class tl_theme, because the name is already i \n n use \n \n \n cache:warmup [--no-optional-warmers]\n \n """]
    
    In ContaoSetupCommand.php line 146:
    
    An error occurred while executing the "/opt/plesk/php/8.1/bin/php -dmemory_
    
    limit=-1 /home/httpd/vhosts/stiftung-alterszentrum-region-buelach.ch/web-in
    
    tranet-screens.stiftung-alterszentrum-region-buelach.ch/vendor/contao/manag
    
    er-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command:
    
    In tl_theme.php line 216:
    
    Compile Error: Cannot declare class tl_theme, because the name is already
    
    i
    
    n use
    
    cache:warmup [--no-optional-warmers]
    
    contao:setup
    
    Script @php vendor/bin/contao-setup handling the post-install-cmd event returned with error code 1
    
    # Process terminated with exit code 1
    
    # Result: General error
    Im Manager scheint die Erweiterung dann zwar aktualisiert zu sein, aber weder das Frontend, das Backend noch das Install-Tool funktionieren und im Server-Log erscheint der Eintrag:
    Code:
    [2023-08-08T10:25:19.907641+02:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Cannot declare class tl_theme, because the name is already in use" at /home/httpd/vhosts/.../.../vendor/contao/core-bundle/src/Resources/contao/dca/tl_theme.php line 0 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Compile Error: Cannot declare class tl_theme, because the name is already in use at /home/httpd/vhosts/.../.../vendor/contao/core-bundle/src/Resources/contao/dca/tl_theme.php:0)"} []
    Die composer.json lautet wie folgt:
    Code:
    {
        "name": "contao/managed-edition",
        "type": "project",
        "description": "Contao Open Source CMS",
        "license": "LGPL-3.0-or-later",
        "authors": [
            {
                "name": "Leo Feyer",
                "homepage": "https://github.com/leofeyer"
            }
        ],
        "require": {
            "codefog/contao-news_categories": "3.*",
            "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.*",
            "do-while/contao-backupdb-bundle": "^1.3",
            "hofff/contao-calendarfield": "^3.0",
            "jrgregory/m17-sticky-backend-footer": "^2.0",
            "madeyourday/contao-rocksolid-antispam": "^2.0",
            "madeyourday/contao-rocksolid-columns": "^2.0",
            "madeyourday/contao-rocksolid-custom-elements": "2.3.6",
            "madeyourday/contao-rocksolid-frontend-helper": "2.1.1",
            "madeyourday/contao-rocksolid-icon-picker": "^2.0",
            "madeyourday/contao-rocksolid-mega-menu": "2.1.3",
            "madeyourday/contao-rocksolid-slider": "2.1.3",
            "madeyourday/contao-rocksolid-theme-assistant": "2.0.5",
            "marcel-mathias-nolte/contao-filesmanager-fileusage": "^1.0",
            "martin-kozianka/contao-fullcalendar": "^2.0",
            "netzmacht/contao-leaflet-maps": "^3.1",
            "numero2/contao-proper-filenames": "^2.1",
            "pdir/content-migration-bundle": "^1.0",
            "terminal42/contao-conditionalformfields": "^2.3",
            "trilobit-gmbh/contao-ajaxpagination-bundle": "^1.3"
        },
        "conflict": {
            "contao-components/installer": "<1.3",
            "contao/core-bundle": "<4.4.8"
        },
        "extra": {
            "branch-alias": {
                "dev-4.4": "4.4.x-dev"
            },
            "contao-component-dir": "assets",
            "public-dir": "web"
        },
        "scripts": {
            "post-install-cmd": [
                "@php vendor/bin/contao-setup"
            ],
            "post-update-cmd": [
                "@php vendor/bin/contao-setup"
            ]
        }
    }
    Die Installation läuft mit Contao 4.13.29 und PHP 8.1.

    Vielen Dank für eure Hilfe & liebe Grüsse

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

    Standard

    Zitat Zitat von debzoll Beitrag anzeigen
    Gibt es zwischenzeitlich etwas Neues zu diesem Thema?
    Dein Fehler scheint nichts mit diesem Thema zu tun haben. Öffne einen eigenen Thread.
    » sponsor me via GitHub or PayPal or Revolut

  13. #13
    Contao-Nutzer
    Registriert seit
    02.09.2022.
    Beiträge
    14

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Dein Fehler scheint nichts mit diesem Thema zu tun haben. Öffne einen eigenen Thread.
    Ist erledigt, vielen Dank für den Hinweis.

    https://community.contao.org/de/show...ews_categories

Aktive Benutzer

Aktive Benutzer

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

Lesezeichen

Lesezeichen

Berechtigungen

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