contao / contao-manager

Contao Manager
GNU Lesser General Public License v3.0
83 stars 33 forks source link

Problem bei Nachinstallation des Nwesletter-Bundle #797

Closed mlwebworker closed 4 months ago

mlwebworker commented 4 months ago

Affected version(s)

4.13.37

Description

Ich habe in einer Installation, die bisher ohne Newsletter-Bundle betrieben wurde, versucht das Newsletter-Bundle über den Manager nachzuinstallieren. Dabei kommt es zu folgender Fehlermeldung:

$ /bin/php82 -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/xxx/contao_4_13_x/public/cm.phar.php composer require contao/newsletter-bundle --no-update --no-scripts --prefer-stable --sort-packages --no-ansi --no-interaction

Using version ^5.3 for contao/newsletter-bundle
/home/xxx/contao_4_13_x/composer.json has been updated

# Process terminated with exit code 0
# Result: OK

> Resolving dependencies using Composer Cloud v3.7.0

[6.9MiB/0.24s] Loading composer repositories with package information
[93.4MiB/17.18s] Updating dependencies
[191.4MiB/18.48s] Your requirements could not be resolved to an installable set of packages.
[191.4MiB/18.48s] 
  Problem 1
    - symfony/http-kernel[v4.0.0, ..., v4.4.8] require php ^7.1.3 -> your php version (8.2.13.0) does not satisfy that requirement.
    - symfony/http-kernel[v5.0.0, ..., v5.0.8] require php ^7.2.5 -> your php version (8.2.13.0) does not satisfy that requirement.
    - erdmannfreunde/contao-grid-bundle[1.0.2, ..., 1.1.3] require symfony/http-kernel ^3.3 || ^4.0 || ^5.0 -> satisfiable by symfony/http-kernel[v3.3.0, ..., v3.4.49, v4.0.0, ..., v4.4.51, v5.0.0, ..., v5.4.35].
    - You can only install one version of a package, so only one of these can be installed: symfony/http-kernel[v2.1.0, ..., v2.8.52, v3.0.0, ..., v3.4.49, v4.0.0, ..., v4.4.51, v5.0.0, ..., v5.4.35, v6.0.0, ..., v6.4.3, v7.0.0, v7.0.1, v7.0.2, v7.0.3].
    - contao/newsletter-bundle 5.3.0 requires symfony/http-kernel ^6.4 -> satisfiable by symfony/http-kernel[v6.4.0, v6.4.1, v6.4.2, v6.4.3].
    - erdmannfreunde/contao-grid-bundle[1.0.0, ..., 1.0.1] require php ^7.1 -> your php version (8.2.13.0) does not satisfy that requirement.
    - Root composer.json requires contao/newsletter-bundle ^5.3 -> satisfiable by contao/newsletter-bundle[5.3.0].
    - Root composer.json requires erdmannfreunde/contao-grid-bundle ^1.0 -> satisfiable by erdmannfreunde/contao-grid-bundle[1.0.0, ..., 1.1.3].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
[191.4MiB/18.48s] 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.
[59.0MiB/18.59s] Memory usage: 58.95MB (peak: 226.29MB), time: 18.59s.
[59.0MiB/18.59s] Finished Composer Cloud resolving.

# Cloud Job ID aBBjCVMOVuXCVuc8EQXmCGJbL9IqEPvVLqm3kbassNzONClA2M1NE3ZZY6SJGSt2Lk8kPOb1LNgFM4ANNWebjV8cED8JK7T8KRS7bY6R5naAXCnPV12L7vzqwK1 failed

Offensichtlich wird versucht in einer 4.13 das Newsletter-Bundle in der Version für Contao 5.3 zu installieren?

Lösen kann ich das Problem natürlich durch manuellen Eintrag in der composer.json

Aber ich denke das sollte zu nicht sein.

fritzmg commented 4 months ago

I think that's "normal" via the Contao Manager. You will need to specifically require ^4.13 for the contao/newsletter-bundle.

mlwebworker commented 4 months ago

Das geht in dem Fall tatsächlich nur über die composer.json, weil ich in dem Bereich im Manager leider keine Version eingeben kann. Deswegen denke ich es ist etwas unglücklich. Wenn es aber sonst kaum mal jemandem aufgefallen ist, dann ist es auch egal, weil die meisten wohl ohnehin Contao komplett installieren und da tritt es ja nicht auf. Hat mich halt nur verwundert.

fritzmg commented 4 months ago

Das geht in dem Fall tatsächlich nur über die composer.json, weil ich in dem Bereich im Manager leider keine Version eingeben kann.

Are you sure? Since when?

fritzmg commented 4 months ago

In any case, this is not a Contao issue, it's a Contao Manager issue, you will need to create a ticket there.

aschempp commented 4 months ago

How did you add the newsletter bundle? Through search or by clicking the add-button below the Contao package?

mlwebworker commented 4 months ago

Über die Paketsuche

Nachtrag: Ich bin bisher gar nicht auf die Idee gekommen, dass das einen Unterschied machen könnte.

mlwebworker commented 4 months ago

Seit dem die Bundle im Manager "zusammengefasst wurden" und zusammen mit der Contaoversion erscheinen war es m.E. schon immer so, dass die Version der einzelnen Bundle im Manager nicht mehr wählbar war.

mlwebworker commented 4 months ago

@aschempp Ganz schön versteckt diese Funktion. Ich dachte ich kenne den Manager aus dem FF, aber diese Funktionalität hatte ich glaube ich noch nicht am Wickel. Ändert aber nicht viel. Dieses mal getestet in meiner Testinstallation über "Hinzufügen" bei den Details des Contao Cores

$ /usr/bin/php8.2 -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 /srv/www/xxx/public/test/contao_4_13_x/public/cm.phar.php composer require contao/newsletter-bundle --no-update --no-scripts --prefer-stable --sort-packages --no-ansi --no-interaction

Using version ^5.3 for contao/newsletter-bundle
/srv/www/xxx/public/test/contao_4_13_x/composer.json has been updated

# Process terminated with exit code 0
# Result: OK

> Resolving dependencies using Composer Cloud v3.7.0

[6.7MiB/0.26s] Loading composer repositories with package information
[68.6MiB/12.82s] Updating dependencies
[134.2MiB/14.35s] Your requirements could not be resolved to an installable set of packages.
[134.2MiB/14.35s] 
  Problem 1
    - contao/news-bundle[4.13.0, ..., 4.13.37] require symfony/http-kernel ^5.4 -> satisfiable by symfony/http-kernel[v5.4.0, ..., v5.4.35].
    - You can only install one version of a package, so only one of these can be installed: symfony/http-kernel[v2.1.0, ..., v2.8.52, v3.0.0, ..., v3.4.49, v4.0.0, ..., v4.4.51, v5.0.0, ..., v5.4.35, v6.0.0, ..., v6.4.3, v7.0.0, v7.0.1, v7.0.2, v7.0.3].
    - contao/newsletter-bundle 5.3.0 requires symfony/http-kernel ^6.4 -> satisfiable by symfony/http-kernel[v6.4.0, v6.4.1, v6.4.2, v6.4.3].
    - Root composer.json requires contao/newsletter-bundle ^5.3 -> satisfiable by contao/newsletter-bundle[5.3.0].
    - Root composer.json requires contao/news-bundle 4.13.* -> satisfiable by contao/news-bundle[4.13.0, ..., 4.13.37].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
[134.2MiB/14.35s] 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.
[39.8MiB/14.44s] Memory usage: 39.83MB (peak: 171.11MB), time: 14.46s.
[39.8MiB/14.45s] Finished Composer Cloud resolving.

# Cloud Job ID 4ei91Qa3q1d5KHWJujvLGQvQBXchxeQHVFtXUF19bkDYAZzlbkf8jASeamnVO7Bu4W6E0S4tvhZ8V0aHLqVN21rse0OeozEnYzvg5CROyFfBC3HaEWGbon9OmCHdMT1V failed

Kann ich das Ticket in den Manager verschieben oder muss ich dort ein neues aufmachen?

aschempp commented 4 months ago

Fixed in ecd7f5057f57c4de57dec1052645073cb001d8c6