Kuestenschmiede / PwaBundle

Adds PWA functionality to a contao application.
https://con4gis.org
9 stars 1 forks source link

Fehler beim Contao-Update auf 4.9.14 #16

Closed johannes-bittner closed 3 years ago

johannes-bittner commented 3 years ago

Das Update von Contao 4.9.12 auf 4.9.14 schlägt mit der folgenden Meldung fehl:

`[...] In ScriptHandler.php line 89:

An error occurred while executing the "contao:install-web-dir" command:
In Configuration.php line 416:

Either explicitly define entity managers in all doctrine-bundle configuration files, or in none of them   

[...]`

siehe: https://community.contao.org/de/showthread.php?81040-4-9-x-Fehler-bei-Update-4-9-12-gt-4-9-14

coastforge-mei commented 3 years ago

Der Fehler, der durch ein Doctrine Update entstanden ist, ist mit der 2.3.1 behoben. Und nur als Hinweis: das Problem trat auch in anderen con4gis Bundles mit orm mapping auf. Danke fürs Melden.

johannes-bittner commented 3 years ago

Vielen Dank für den schnellen Fix!

katgirl commented 3 years ago

Bei mir tritt das ist einer 4.11 mit con4maps noch immer auf

coastforge-mei commented 3 years ago

Das sollte eigentlich nicht so sein. Aus meiner Sicht waren nur Core, Import, Export, PWA und IOTravelCosts betroffen. Wenn diese Bundles aktuell sind, dann sollte der Fehler nicht mehr auftreten. Ist ggf. con4gis/core in Deiner Umgebung nicht mit aktualisiert worden?

coastforge-mei commented 3 years ago

Nur zur Info: Habe gerade mal eine lokale Umgebung mit Maps und PWA von 4.9 auf 4.11.3 hochgezogen. Der Fehler tritt nicht auf.

katgirl commented 3 years ago
/usr/bin/php74 web/contao-manager.phar.php composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 6 installs, 0 updates, 0 removals
  - Locking bugbuster/contao-mobiledetection-bundle (1.0.2)
  - Locking con4gis/core (v3.3.19)
  - Locking con4gis/maps (v6.3.1)
  - Locking doctrine/data-fixtures (1.5.0)
  - Locking mobiledetect/mobiledetectlib (2.8.37)
  - Locking phayes/geophp (1.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
  - Downloading phayes/geophp (1.2)
  - Downloading con4gis/core (v3.3.19)
  - Downloading con4gis/maps (v6.3.1)
  - Installing mobiledetect/mobiledetectlib (2.8.37): Extracting archive
  - Installing bugbuster/contao-mobiledetection-bundle (1.0.2): Extracting archive
  - Installing phayes/geophp (1.2): Extracting archive
  - Installing doctrine/data-fixtures (1.5.0): Extracting archive
  - Installing con4gis/core (v3.3.19): Extracting archive
  - Installing con4gis/maps (v6.3.1): Extracting archive
6 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package league/uri-hostname-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 patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
91 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
Please edit your root composer.json and set "post-update-cmd" to "@php vendor/bin/contao-setup --ansi" instead of using "ScriptHandler::initializeApplication()".

In Configuration.php line 416:

  Either explicitly define entity managers in all doctrine-bundle configurati  
  on files, or in none of them    

compser.json

{
    "type": "project",
    "require": {
    "con4gis/maps": "^6.3",
        "contao-monitoring/bundle-client-all": "^1.0",
        "contao/calendar-bundle": "4.11.*",
        "contao/conflicts": "*@dev",
        "contao/manager-bundle": "4.11.*",
        "erdmannfreunde/euf_contact": "^1.0",
        "erdmannfreunde/euf_grid": "^2.2",
        "erdmannfreunde/euf_hero": "^1.0",
        "erdmannfreunde/euf_nutshell": "^0.4",
        "erdmannfreunde/onepage-navigation": "^1.1",
        "erdmannfreunde/theme-toolbox": "^1.0",
        "heimrichhannot/font-awesome": "^4.7",
        "isotope/isotope-core": "2.7.x-dev as 2.7.2",
        "madeyourday/contao-rocksolid-custom-elements": "^2.2",
        "oneup/contao-mailchimp": "^4.4",
        "trilobit-gmbh/contao-calculator-bundle": "^1.2"
    },
    "extra": {
        "contao-component-dir": "assets"
    },
    "scripts": {
        "post-install-cmd": [
            "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
        ],
        "post-update-cmd": [
            "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
        ]
    }
}

Fehler tritt leider noch immer auf.

coastforge-mei commented 3 years ago

Okay, wir haben das nur im aktuellen Stand behoben (core 5, maps 8). Ist es möglich, dass Du auf "con4gis/maps": "^8.0" wechselst?

coastforge-mei commented 3 years ago

Hier ein paar Infos zum Update von Version 6 auf 7. Da gab es dann doch ein paar wesentliche Änderungen. Von 7 auf 8 sollte problemlos laufen: https://docs.con4gis.org/updates

katgirl commented 3 years ago

Super, vielen Dank für den Support, hatt nach ein paar Anpassungen jetzt alles geklappt.