Ergebnis 1 bis 4 von 4

Thema: Übernahme Website für Update

  1. #1
    AG Pressearbeit
    Community-Moderator
    Buchautor 'Contao für Webdesigner'
    Avatar von planepix
    Registriert seit
    05.06.2009.
    Ort
    Stuttgart
    Beiträge
    6.470
    Partner-ID
    107
    Contao-Projekt unterstützen

    Support Contao

    Standard Übernahme Website für Update

    Hallo zusammen,

    ich habe versucht eine 4.4 Version umzuziehen um dann später ein Update auf 4.13 zu machen.

    PHP ist 7.4 wie in der bestehenden Website.
    Umzug wie im Handbuch beschrieben.

    - composer.json
    - composer.lock
    - files
    - templates

    Contao Manager gestartet.
    Fehlende Abhängigkeiten anklickt.

    Darauf gibt mir der Manager folgendes aus:
    Code:
    $ /usr/bin/php74 -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/Berlin /www/htdocs/w0065787/domain.com/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 contao-components/compass is abandoned, you should avoid using it. No replacement was suggested.
    Package contao-components/highlight is abandoned, you should avoid using it. No replacement was suggested.
    Package contao-components/html5shiv is abandoned, you should avoid using it. No replacement was suggested.
    Package contao-components/mediaelement is abandoned, you should avoid using it. No replacement was suggested.
    Package contao-components/respimage is abandoned, you should avoid using it. No replacement was suggested.
    Package doctrine/doctrine-cache-bundle is abandoned, you should avoid using it. No replacement was suggested.
    Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
    Package fritzmg/contao-youtube-iframe is abandoned, you should avoid using it. Use fritzmg/contao-youtube-iframe instead.
    Package leafo/scssphp is abandoned, you should avoid using it. Use scssphp/scssphp instead.
    Package league/uri-hostname-parser is abandoned, you should avoid using it. No replacement was suggested.
    Package league/uri-manipulations is abandoned, you should avoid using it. No replacement was suggested.
    Package league/uri-parser is abandoned, you should avoid using it. No replacement was suggested.
    Package league/uri-schemes is abandoned, you should avoid using it. No replacement was suggested.
    Package menatwork/contao-multicolumnwizard is abandoned, you should avoid using it. Use menatwork/contao-multicolumnwizard-bundle instead.
    Package oyejorge/less.php is abandoned, you should avoid using it. No replacement was suggested.
    Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
    Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
    Package sensio/distribution-bundle is abandoned, you should avoid using it. No replacement was suggested.
    Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
    Package sensiolabs/security-checker is abandoned, you should avoid using it. Use https://github.com/fabpot/local-php-security-checker instead.
    Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
    Package symfony/swiftmailer-bundle is abandoned, you should avoid using it. Use symfony/mailer instead.
    Package terminal42/header-replay-bundle is abandoned, you should avoid using it. No replacement was suggested.
    Package true/punycode is abandoned, you should avoid using it. No replacement was suggested.
    Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
    Generating optimized autoload files
    Class Sensio\Bundle\FrameworkExtraBundle\Tests\DependencyInjection\AddParamConverterPassTest located in ./vendor/sensio/framework-extra-bundle/Tests/DependencyInjection/Compiler/AddParamConverterPassTest.php does not comply with psr-4 autoloading standard. Skipping.
    Class Sensio\Bundle\FrameworkExtraBundle\Tests\DependencyInjection\AddExpressionLanguageProvidersPassTest located in ./vendor/sensio/framework-extra-bundle/Tests/DependencyInjection/Compiler/AddExpressionLanguageProvidersPassTest.php does not comply with psr-4 autoloading standard. Skipping.
    Class Sensio\Bundle\FrameworkExtraBundle\Tests\Request\ParamConverter\ArgumentNameConverterTest located in ./vendor/sensio/framework-extra-bundle/Tests/Request/ArgumentNameConverterTest.php does not comply with psr-4 autoloading standard. Skipping.
    ocramius/package-versions: Generating version class...
    ocramius/package-versions: ...done generating version class
    contao/manager-plugin: Dumping generated plugins file...
    contao/manager-plugin: ...done dumping generated plugins file
    Fatal error: Uncaught Error: Undefined class constant 'VERSIONS' in /www/htdocs/w0065787/domain.com/vendor/contao/core-bundle/src/DependencyInjection/Compiler/AddPackagesPass.php:32
    Stack trace:
    #0 /www/htdocs/w0065787/domain.com/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(140): Contao\CoreBundle\DependencyInjection\Compiler\AddPackagesPass->process(Object(Contao\ManagerPlugin\Config\ContainerBuilder))
    #1 /www/htdocs/w0065787/domain.com/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(789): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Contao\ManagerPlugin\Config\ContainerBuilder))
    #2 /www/htdocs/w0065787/domain.com/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(643): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
    #3 /www/htdocs/w0065787/domain.com/vendor/contao/manager-bundle/src/HttpKernel/ContaoKer in /www/htdocs/w0065787/domain.com/vendor/contao/core-bundle/src/DependencyInjection/Compiler/AddPackagesPass.php on line 32
    PHP Fatal error:  Uncaught Error: Undefined class constant 'VERSIONS' in /www/htdocs/w0065787/domain.com/vendor/contao/core-bundle/src/DependencyInjection/Compiler/AddPackagesPass.php:32
    Stack trace:
    #0 /www/htdocs/w0065787/domain.com/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(140): Contao\CoreBundle\DependencyInjection\Compiler\AddPackagesPass->process(Object(Contao\ManagerPlugin\Config\ContainerBuilder))
    #1 /www/htdocs/w0065787/domain.com/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(789): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Contao\ManagerPlugin\Config\ContainerBuilder))
    #2 /www/htdocs/w0065787/domain.com/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(643): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
    #3 /www/htdocs/w0065787/domain.com/vendor/contao/manager-bundle/src/HttpKernel/ContaoKer in /www/htdocs/w0065787/domain.com/vendor/contao/core-bundle/src/DependencyInjection/Compiler/AddPackagesPass.php on line 32
    Class League\Uri\Schemes\AbstractUri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\Data located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\File located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\Ftp located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\Http located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\Uri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\UriException located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class League\Uri\Schemes\Ws located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
    Class Contao\ManagerPlugin\PluginLoader located in ./vendor/contao/manager-plugin/src/Resources/PluginLoader.php does not comply with psr-4 autoloading standard. Skipping.
    53 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    > Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
    Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception
    In ScriptHandler.php line 95:
                                                                                   
      An error occurred while executing the "contao:install-web-dir" command: PHP  
       Fatal error:  Uncaught Error: Undefined class constant 'VERSIONS' in /www/  
      htdocs/w0065787/domain.com/vendor/contao/core-bundle/src/De  
      pendencyInjection/Compiler/AddPackagesPass.php:32                            
      Stack trace:                                                                 
      #0 /www/htdocs/w0065787/domain.com/vendor/symfony/symfony/s  
      rc/Symfony/Component/DependencyInjection/Compiler/Compiler.php(140): Contao  
      \CoreBundle\DependencyInjection\Compiler\AddPackagesPass->process(Object(Co  
      ntao\ManagerPlugin\Config\ContainerBuilder))                                 
      #1 /www/htdocs/w0065787/domain.com/vendor/symfony/symfony/s  
      rc/Symfony/Component/DependencyInjection/ContainerBuilder.php(789): Symfony  
      \Component\DependencyInjection\Compiler\Compiler->compile(Object(Contao\Man  
      agerPlugin\Config\ContainerBuilder))                                         
      #2 /www/htdocs/w0065787/domain.com/vendor/symfony/symfony/s  
      rc/Symfony/Component/HttpKernel/Kernel.php(643): Symfony\Component\Dependen  
      cyInjection\ContainerBuilder->compile()                                      
      #3 /www/htdocs/w0065787/domain.com/vendor/contao/manager-bu  
      ndle/src/HttpKernel/ContaoKer in /www/htdocs/w0065787/domain.com/vendor/contao/core-bundle/src/DependencyInjection/Compiler/AddPackage  
      sPass.php on line 32                                                         
                                                                                   
    install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]
    # Process terminated with exit code 1
    # Result: General error
    Die composer.json:

    Code:
    {
        "type": "project",
        "require": {
            "christianbarkowsky/contao-protectedselect": "^1.1",
            "codefog/contao-mobile_menu": "^2.7",
            "contao/calendar-bundle": "^4.4",
            "contao/comments-bundle": "^4.4",
            "contao/conflicts": "*@dev",
            "contao/faq-bundle": "^4.4",
            "contao/listing-bundle": "^4.4",
            "contao/manager-bundle": "^4.4",
            "contao/news-bundle": "^4.4",
            "contao/newsletter-bundle": "^4.4",
            "do-while/contao-ticker-bundle": "^1.0",
            "friends-of-contao/contao-privacy": "dev-master",
            "fritzmg/contao-sharebuttons": "^2.0",
            "fritzmg/contao-youtube-iframe": "^2.2",
            "madeyourday/contao-rocksolid-columns": "^2.0",
            "madeyourday/contao-rocksolid-slider": "^2.0",
            "netzmacht/contao-leaflet-maps": "^3.0",
            "numero2/contao-marketing-suite": "^1.0",
            "oneup/contao-full-background-images": "dev-master",
            "sioweb/linkedelement": "^0.8.6",
            "swinde/contao4-downloadarchive": "^2.0",
            "terminal42/contao-easy_themes": "^2.2",
            "terminal42/contao-leads": "^1.4",
            "terminal42/notification_center": "^1.4"
        },
        "conflict": {
            "doctrine/dbal": "2.9.* <2.9.3",
            "doctrine/doctrine-migrations-bundle": "<1.1",
            "doctrine/orm": "<2.4",
            "knplabs/knp-time-bundle": "1.9.0",
            "lexik/maintenance-bundle": "2.1.4",
            "monolog/monolog": ">=2",
            "symfony/finder": "3.4.7 || 4.0.7",
            "symfony/framework-bundle": "4.2.7",
            "symfony/security": "3.3.17 || 3.4.7 || 3.4.8 || 3.4.11",
            "symfony/swiftmailer-bundle": "2.6.* <2.6.2",
            "symfony/twig-bundle": "4.1.0",
            "twig/twig": "2.7.0"
        },
        "extra": {
            "branch-alias": {
                "dev-4.4": "4.4.x-dev"
            },
            "contao-component-dir": "assets"
        },
        "scripts": {
            "post-install-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ],
            "post-update-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ]
        }
    }
    Was ich bisher versucht habe:
    - composer.lock deaktiviert
    - vendor Ordner gelöscht
    - Composer Update gestartet

    Jetzt bleibt im Manager die Wahl zwischen Abgesichertem Modus und Reparatur.
    Keine der beiden Optionen führt dazu, voran zu kommen.

    Was habe ich übersehen oder muss ich anpassen?
    Danke für Ideen und Hinweise.
    ---------------------------------
    Beste Grüße planepix
    Contao für Webdesigner (Website), Twitter: @contaowebdesign
    weitzeldesign
    Contao-Sprechstunde
    Contao Schulungen: https://www.weitzeldesign.com/cms-co...chulungen.html
    Contao Jahrbuch: www.contao-jahrbuch.de
    Contao Agenturtag: www.contao-agenturtag.de
    Contao Stammtisch Stuttgart: www.contao-stammtisch-stuttgart.de
    Contao 4 Erfahrungen als Gitbook: https://app.gitbook.com/@planepix/s/...-mit-contao-4/
    Contao 4 & Manager Hosterhinweise: https://github.com/contao/contao-manager/wiki

    Schon wieder ein Update?
    Glücklich sind die, die den Wert erkennen – und wertschätzen.
    „Muss man machen wie beim Zahnarzt. Der bestraft einen auch mit hohen Rechnungen wenn man die Pflege vernachlässigt.”

  2. #2
    Contao-Urgestein
    Registriert seit
    20.09.2012.
    Ort
    Lüneburger Heide
    Beiträge
    1.989
    Partner-ID
    12207
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Moin,

    z.B. das Bundle "numero2/contao-marketing-suite" V. 2.0.6 hat gem. Packagist als Voraussetzung Contao 4.9.

    Dieses hier scheinen gem. Beschreibung nur mit PHP 7 und Contao ^4.4 zu funktionieren:
    https://packagist.org/packages/frien...contao-privacy

    Ich würde jetzt versuchen, diese composer.json auf Contao 4.13 zu ändern und über die Konsole in einem sauberen Verzeichnis zu installieren.

    Wenn es dann Fehler gibt, entweder alle Packages auf Kompatibilität prüfen oder zuerst Contao 4.13 zu installieren und dann ein Bundle nach dem anderen.




    Grüße
    Geändert von tschero (26.01.2023 um 20:50 Uhr)
    Autodidakt und HobbyWebdesigner

    www.webdesign24.biz
    Screencasts zu Contao

  3. #3
    AG Pressearbeit
    Community-Moderator
    Buchautor 'Contao für Webdesigner'
    Avatar von planepix
    Registriert seit
    05.06.2009.
    Ort
    Stuttgart
    Beiträge
    6.470
    Partner-ID
    107
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Danke dir.

    Ja einige müssen aus der composer.json raus.

    Das wäre sicher im nächsten Schritt zu Fehlermeldungen gekommen.

    Die angezeigten Fehler hatte andere Ursachen… ich versuche das mal so wie du es beschrieben hast.
    ---------------------------------
    Beste Grüße planepix
    Contao für Webdesigner (Website), Twitter: @contaowebdesign
    weitzeldesign
    Contao-Sprechstunde
    Contao Schulungen: https://www.weitzeldesign.com/cms-co...chulungen.html
    Contao Jahrbuch: www.contao-jahrbuch.de
    Contao Agenturtag: www.contao-agenturtag.de
    Contao Stammtisch Stuttgart: www.contao-stammtisch-stuttgart.de
    Contao 4 Erfahrungen als Gitbook: https://app.gitbook.com/@planepix/s/...-mit-contao-4/
    Contao 4 & Manager Hosterhinweise: https://github.com/contao/contao-manager/wiki

    Schon wieder ein Update?
    Glücklich sind die, die den Wert erkennen – und wertschätzen.
    „Muss man machen wie beim Zahnarzt. Der bestraft einen auch mit hohen Rechnungen wenn man die Pflege vernachlässigt.”

  4. #4
    Contao-Urgestein
    Registriert seit
    20.09.2012.
    Ort
    Lüneburger Heide
    Beiträge
    1.989
    Partner-ID
    12207
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Hab gerade mal etwas rumprobiert.

    Mit folgender composer.json bekomme ich ein Update auf Contao 4.13 und PHP 8.1.
    Code:
    {
        "type": "project",
        "require": {
            "christianbarkowsky/contao-protectedselect": "^1.1",
            "codefog/contao-mobile_menu": "^2.7",
            "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-ticker-bundle": "^1.0",
            "fritzmg/contao-sharebuttons": "^2.0",
            "fritzmg/contao-youtube-iframe": "^2.2",
            "madeyourday/contao-rocksolid-columns": "^2.0",
            "madeyourday/contao-rocksolid-slider": "^2.0",
            "netzmacht/contao-leaflet-maps": "^3.0",
            "numero2/contao-marketing-suite": "^1.0",
            "oneup/contao-full-background-images": "dev-master",
            "sioweb/linkedelement": "^0.8.6",
            "swinde/contao4-downloadarchive": "^2.0",
            "terminal42/contao-leads": "^1.4",
            "terminal42/notification_center": "^1.4"
        },
        "conflict": {
            "doctrine/dbal": "2.9.* <2.9.3",
            "doctrine/doctrine-migrations-bundle": "<1.1",
            "doctrine/orm": "<2.4",
            "knplabs/knp-time-bundle": "1.9.0",
            "lexik/maintenance-bundle": "2.1.4",
            "symfony/finder": "3.4.7 || 4.0.7",
            "symfony/framework-bundle": "4.2.7",
            "symfony/security": "3.3.17 || 3.4.7 || 3.4.8 || 3.4.11",
            "symfony/swiftmailer-bundle": "2.6.* <2.6.2",
            "symfony/twig-bundle": "4.1.0",
            "twig/twig": "2.7.0"
        },
        "extra": {
            "branch-alias": {
                "dev-4.4": "4.4.x-dev"
            },
            "contao-component-dir": "assets"
        },
        "scripts": {
            "post-install-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ],
            "post-update-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ]
        },
        "config": {
            "allow-plugins": {
                "ocramius/package-versions": true,
                "contao-components/installer": true,
                "contao-community-alliance/composer-plugin": true,
                "contao/manager-plugin": true
            }
        }
    }
    EasyThemes müsste dann noch in Version 3 naxhinstalliert werden und https://packagist.org/packages/frien...contao-privacy müsste noch malgenau getestet qwerden.
    Ich denke, dass die composer.json in den Bereichen "scripts" und "conflicts" noch etwas angepasst werden könnte.

    Alle Test von eben nicht abschließend und nur kurz ausprobiert.

    Grüße
    Autodidakt und HobbyWebdesigner

    www.webdesign24.biz
    Screencasts zu Contao

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
  •