Contao-Camp 2024
Ergebnis 1 bis 11 von 11

Thema: 4.9.x Fehler im Contao Manager - wer kann helfen?

  1. #1
    Contao-Fan Avatar von tobihessen
    Registriert seit
    01.04.2010.
    Beiträge
    311
    Partner-ID
    8827

    Standard 4.9.x Fehler im Contao Manager - wer kann helfen?

    Hallo Gemeinde,

    wir wollen bei einer externen Installation eine Erweiterung installieren, bekommen aber nur eine Fehlermeldung angezeigt.
    Wer kann mir sagen, was diese Fehlermeldung bedeutet??

    Contao 4.9.9
    PHP 7.3
    Die Installation liegt bei domainfactory

    Code:
    $ /usr/local/bin/php7-73LATEST-CLI -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /xxx/web/contao-manager.phar.php composer require derhaeuptling/contao-mega-menu --no-suggest --no-update --no-scripts --prefer-stable --sort-packages --no-ansi --no-interaction
    
    Using version ^1.0 for derhaeuptling/contao-mega-menu
    /xxx/composer.json has been updated
    
    # Process terminated with exit code 0
    # Result: OK
    
    
    $ /usr/local/bin/php7-73LATEST-CLI -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /xxx/web/contao-manager.phar.php composer update derhaeuptling/contao-mega-menu contao/conflicts --with-dependencies --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader --dry-run
    
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - laminas/laminas-code 4.1.x-dev requires php ^7.4 || ~8.0.0 -> your PHP version (7.3.23) does not satisfy that requirement.
        - laminas/laminas-code 4.0.x-dev requires php ^7.4 || ~8.0.0 -> your PHP version (7.3.23) does not satisfy that requirement.
        - laminas/laminas-code 4.0.0 requires php ^7.4 || ~8.0.0 -> your PHP version (7.3.23) does not satisfy that requirement.
        - ocramius/proxy-manager 2.10.0 requires composer-runtime-api ^2.0.0 -> no matching package found.
        - ocramius/proxy-manager 2.10.0 requires php ~7.4.1 -> your PHP version (7.3.23) does not satisfy that requirement.
        - Conclusion: don't install laminas/laminas-code 3.5.1
        - friendsofphp/proxy-manager-lts 1.x-dev requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[3.4.1, 3.4.x-dev, 4.0.0, 4.0.x-dev, 4.1.x-dev].
        - friendsofphp/proxy-manager-lts v1.0.2 requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[3.4.1, 3.4.x-dev, 4.0.0, 4.0.x-dev, 4.1.x-dev].
        - Can only install one of: laminas/laminas-code[3.4.1, 3.5.1].
        - Can only install one of: laminas/laminas-code[3.4.x-dev, 3.5.1].
        - Can only install one of: laminas/laminas-code[4.0.x-dev, 3.5.1].
        - Can only install one of: laminas/laminas-code[3.4.x-dev, 3.5.1].
        - Installation request for laminas/laminas-code (locked at 3.5.1) -> satisfiable by laminas/laminas-code[3.5.1].
        - Installation request for ocramius/proxy-manager (locked at 2.10.0) -> satisfiable by friendsofphp/proxy-manager-lts[1.x-dev, v1.0.2], ocramius/proxy-manager[2.10.0].
    
    Potential causes:
     - A typo in the package name
     - The package is not available in a stable-enough version according to your minimum-stability setting
       see  for more details.
     - It's a private package and you forgot to add a custom repository to find it
    
    Read  for further common problems.
    Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
    
    # Process terminated with exit code 2
    # Result: Misuse of shell builtins
    DANKE!
    Geändert von Spooky (13.01.2021 um 11:37 Uhr) Grund: added [code] tags

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

    Standard

    Führe mal eine komplette Paketaktualisierung durch.

  3. #3
    Contao-Fan Avatar von tobihessen
    Registriert seit
    01.04.2010.
    Beiträge
    311
    Partner-ID
    8827

    Standard

    Hallo Spooky,

    dann kommt annäherend die gleiche Meldung ...

    Code:
    $ /usr/local/bin/php7-73LATEST-CLI -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /xxx/web/contao-manager.phar.php composer update codefog/contao-news_categories dieschittigs/contao-content-api dieschittigs/contao-dieschittigs-helpers-bundle dieschittigs/contao-shopware-products-bundle inspiredminds/contao-wordpressimport terminal42/contao-changelanguage contao/conflicts --with-dependencies --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader --dry-run
    
    Dependency "contao/news-bundle" is also a root requirement, but is not explicitly allowed. Ignoring.
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - laminas/laminas-code 4.1.x-dev requires php ^7.4 || ~8.0.0 -> your PHP version (7.3.23) does not satisfy that requirement.
        - laminas/laminas-code 4.0.x-dev requires php ^7.4 || ~8.0.0 -> your PHP version (7.3.23) does not satisfy that requirement.
        - laminas/laminas-code 4.0.0 requires php ^7.4 || ~8.0.0 -> your PHP version (7.3.23) does not satisfy that requirement.
        - ocramius/proxy-manager 2.10.0 requires composer-runtime-api ^2.0.0 -> no matching package found.
        - ocramius/proxy-manager 2.10.0 requires php ~7.4.1 -> your PHP version (7.3.23) does not satisfy that requirement.
        - Conclusion: don't install laminas/laminas-code 3.5.1
        - friendsofphp/proxy-manager-lts 1.x-dev requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[3.4.1, 3.4.x-dev, 4.0.0, 4.0.x-dev, 4.1.x-dev].
        - friendsofphp/proxy-manager-lts v1.0.2 requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[3.4.1, 3.4.x-dev, 4.0.0, 4.0.x-dev, 4.1.x-dev].
        - Can only install one of: laminas/laminas-code[3.4.1, 3.5.1].
        - Can only install one of: laminas/laminas-code[3.4.x-dev, 3.5.1].
        - Can only install one of: laminas/laminas-code[4.0.x-dev, 3.5.1].
        - Can only install one of: laminas/laminas-code[3.4.x-dev, 3.5.1].
        - Installation request for laminas/laminas-code (locked at 3.5.1) -> satisfiable by laminas/laminas-code[3.5.1].
        - Installation request for ocramius/proxy-manager (locked at 2.10.0) -> satisfiable by friendsofphp/proxy-manager-lts[1.x-dev, v1.0.2], ocramius/proxy-manager[2.10.0].
    
    Potential causes:
     - A typo in the package name
     - The package is not available in a stable-enough version according to your minimum-stability setting
       see  for more details.
     - It's a private package and you forgot to add a custom repository to find it
    
    Read  for further common problems.
    Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
    
    # Process terminated with exit code 2
    # Result: Misuse of shell builtins

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

    Standard

    Poste deine composer.json.

  5. #5
    Contao-Fan Avatar von tobihessen
    Registriert seit
    01.04.2010.
    Beiträge
    311
    Partner-ID
    8827

    Standard

    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": {
            "php": "^7.2",
            "contao/conflicts": "*@dev",
            "contao/faq-bundle": "^4.9",
            "contao/listing-bundle": "^4.9",
            "contao/manager-bundle": "4.9.*",
            "contao/news-bundle": "^4.9",
            "dieschittigs/contao-content-api": "dev-dev",
            "dieschittigs/contao-shopware-products-bundle": "@dev",
            "inspiredminds/contao-wordpressimport": "^1.1",
            "dieschittigs/contao-dieschittigs-helpers-bundle": "^0.6.3",
            "terminal42/contao-changelanguage": "^3.1",
            "codefog/contao-news_categories": "^3.4"
        },
        "conflict": {
            "contao-components/installer": "<1.3"
        },
        "extra": {
            "contao-component-dir": "assets",
            "symfony": {
                "require": "^4.4"
            }
        },
        "scripts": {
            "post-install-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ],
            "post-update-cmd": [
                "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            ]
        },
        "repositories": [
            {
                "type": "path",
                "url": "./bundles/DieSchittigs/contao-shopware-products-bundle"
            }
        ],
        "require-dev": {},
        "minimum-stability": "dev",
        "prefer-stable": true
    }

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

    Standard

    Da du leider ein lokales Bundle verwendest, kann ich diese composer.json nicht komplett mit PHP 7.3 testen. Ohne dem lokalen Bundle kann aber mit dieser composer.json unter PHP 7.3 auf jeden Fall eine Aktualisierung durchgeführt werden - evt. hat es daher mit dem lokalen Bundle zu tun.

    Alternativ kannst du auch einfach auf PHP 7.4 aktualisieren (solltest du ohnehin machen).

  7. #7
    Contao-Fan Avatar von tobihessen
    Registriert seit
    01.04.2010.
    Beiträge
    311
    Partner-ID
    8827

    Standard

    Das mit dem lokalen Bundle habe ich mir fast gedacht
    Kann man das irgendwie umgehen?

    domainfactory stellt für diesen Account leider noch kein PHP 7.4 zur Verfügung.

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

    Standard

    Zitat Zitat von tobihessen Beitrag anzeigen
    Das mit dem lokalen Bundle habe ich mir fast gedacht
    Kann man das irgendwie umgehen?
    Poste mal die composer.json des lokalen Bundles.

  9. #9
    Contao-Fan Avatar von tobihessen
    Registriert seit
    01.04.2010.
    Beiträge
    311
    Partner-ID
    8827

    Standard

    Code:
    {
        "name": "dieschittigs/contao-shopware-products-bundle",
        "description": "contao modules for shopware products",
        "type": "contao-bundle",
        "keywords": [
            "contao",
            "shopware",
            "products",
            "modules",
            "bundle"
        ],
        "version": "1.0.0",
        "require": {
            "php": "^7.1",
            "contao/core-bundle": "^4.9",
            "guzzlehttp/guzzle": "^6.3",
            "dieschittigs/contao-content-api": "dev-dev"
        },
        "license": "MIT-0",
        "authors": [
            {
                "name": "Martin Schittig",
                "email": "martin@dieschittigs.de"
            }
        ],
        "autoload": {
            "psr-4": {
                "DieSchittigs\\ShopwareProductsBundle\\": "src/"
            },
            "classmap": [
                "src/Resources/contao/"
            ],
            "exclude-from-classmap": [
                "src/Resources/contao/config/",
                "src/Resources/contao/dca/",
                "src/Resources/contao/languages/"
            ]
        },
        "extra": {
            "contao-manager-plugin": "DieSchittigs\\ShopwareProductsBundle\\ContaoManager\\Plugin"
        }
    }

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

    Standard

    Auch da kann ich ein composer update durchführen mit PHP 7.3.

    Übrigens laut der Konsolenausgabe hast du keine vollständige Paketaktualisierung durchgeführt. Führe ein vollständige Paketaktualisierung durch.

  11. #11
    Contao-Fan Avatar von tobihessen
    Registriert seit
    01.04.2010.
    Beiträge
    311
    Partner-ID
    8827

    Standard

    Spooky du bist der Beste. Jetzt läuft es einfach. ABER warum zeigte er mir bei einem Testlauf immer diesen Fehler an?
    Ich bin ganz ehrlich. Das Projekt steht kurz vor Livegang und ich habe mich schlicht nicht getraut das Update in echt zu machen, weil beim Testlauf immer Fehler kamen. Außerdem bin ich da erst nachträglich reingerutscht, die Installation und alles ist nicht von mir.
    Jetzt habe ich es einfach gemacht, ich danke wir 1000fach!!

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
  •