heimrichhannot / contao-google-maps-bundle

This bundle adds google maps integration to Contao.
2 stars 8 forks source link

Fehler bei der Installation (1.4.1 oder 2.0) #3

Closed operatorone closed 4 years ago

operatorone commented 4 years ago

Hallo, leider erhalte ich bei der Installation folgende Fehler und kann die Erweiterung nicht nutzen. Was kann ich hier tun?

$ /usr/bin/php73 -q /home/www/contao_live/web/contao-manager.phar.php composer require heimrichhannot/contao-google-maps-bundle --no-suggest --no-update --no-scripts --prefer-stable --sort-packages --no-ansi --no-interaction

Using version dev-master for heimrichhannot/contao-google-maps-bundle /home/www/contao_live/composer.json has been updated

Process terminated with exit code 0 Result: OK

Resolving dependencies using Composer Cloud v2.2.7

[7.3MiB/0.22s] Loading composer repositories with package information [7.7MiB/0.29s] Updating dependencies [3365.6MiB/42.88s] Your requirements could not be resolved to an installable set of packages. [3365.6MiB/42.88s] Problem 1

[3366.4MiB/42.89s] 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. [591.9MiB/45.92s] Memory usage: 591.93MB (peak: 3368.7MB), time: 45.93s. [591.9MiB/45.93s] Finished Composer Cloud resolving.

Cloud Job ID BXusXLgE1F3E9TNN0kkTISMYskdg7C7cCRvAH6PQiunMNQmyQ8B637kNEgRLKK4YXlA3owumAA535uzSzn2jx5s2WfxeXtJKqEtnA7SmzMaXH4pDbBL2GWZie7n0oVO failed


Der Hintergrundprozess wurde unerwartet beendet

operatorone commented 4 years ago

Contao Version ist 4.9.2

Defcon0 commented 4 years ago

Wir haben die Version für contao 4.9 erst vor ein paar Tagen released. Da hat das Installieren jedenfalls funktioniert.

Laut Log ist es das hier

Installation request for symfony/property-access (locked at v5.0.8)

Kann es sein, dass du irgendwie Symfony 5 installiert hast?

Ich habe auch gesehen, dass du den Cloud Resolver nutzt. Dort haben wir das ganze nicht getestet.

operatorone commented 4 years ago

Symfony 5 habe ich jetzt nicht bewusst installiert, kann sicherlich durch eine andere Erweiterung installiert worden sein. Ich kann es aber auch noch mal über die CLI probieren, sofern das funktioniert bezüglich RAM.

Defcon0 commented 4 years ago

Arbeitest du nicht lokal? Sowas live zu machen ist keine gute Idee ;-)

operatorone commented 4 years ago

Normalerweise schon, das ist im Moment aber eine Instanz auf einem Entwicklungsserver.

Defcon0 commented 4 years ago

Bitte poste auch mal deine composer.json

operatorone commented 4 years ago

Gerne.

{ "type": "project", "minimum-stability": "stable", "require": { "codefog/contao-cookiebar": "^2.2", "contao/conflicts": "@dev", "contao/listing-bundle": "4.9.", "contao/manager-bundle": "4.9.*", "craffft/contao-logo": "^1.4", "do-while/contao-backupdb-bundle": "^1.4", "erdmannfreunde/theme-toolbox": "^1.0", "fritzmg/contao-lightcase": "^2.2", "fritzmg/contao-sharebuttons": "^2.1", "heimrichhannot/contao-filename-sanitizer-bundle": "^2.0", "heimrichhannot/contao-upload_filename_sanitizer": "^1.0", "hofff/contao-shariff": "^3.0", "hypergalaktisch/contao-animate": "^2.0", "hypergalaktisch/contao-parallax": "^2.0", "madeyourday/contao-rocksolid-antispam": "^2.0", "madeyourday/contao-rocksolid-columns": "^2.0", "madeyourday/contao-rocksolid-custom-elements": "^2.2", "madeyourday/contao-rocksolid-frontend-helper": "^2.0", "madeyourday/contao-rocksolid-icon-picker": "^2.0", "omosde/contao-om-backend": "^1.6", "oveleon/contao-component-style-manager": "^2.3", "premium-contao-themes/pct_device_visibility": "^1.1", "terminal42/contao-ajaxform": "^1.1", "terminal42/contao-node": "^1.1", "terminal42/contao-pageimage": "^3.4", "heimrichhannot/contao-google-maps-bundle": "^1.4" }, "extra": { "contao-component-dir": "assets" }, "scripts": { "post-install-cmd": [ "Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication" ], "post-update-cmd": [ "Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication" ] } }

Defcon0 commented 4 years ago

Auf jeden Fall solltest du erst mal Version ^2.0 require’n.

Defcon0 commented 4 years ago

Und es kann natürlich sein, dass irgendeine deiner Erweiterungen den Konflikt bewirkt. Leider gibt es bei composer bis heute keine verwertbaren Fehlermeldungen.

operatorone commented 4 years ago

Ja, das ist sehr lästig, dass man nicht sehen kann, an was es immer hakt. Ich probiere mal ^2.0 im Contao Manager.

operatorone commented 4 years ago

Aber kann ich das, wenn meine minimumm stability nicht auf dev steht?

Defcon0 commented 4 years ago

Gute Frage. Auf jeden Fall können wir das nicht als 2.0 releasen, da es noch nicht genug getestet wurde.

Evtl. musst du die minimum stability runterstellen, ja.

operatorone commented 4 years ago

Habe ich auch mal auf DEV gestellt. Leider das gleiche Ergebnis.

Defcon0 commented 4 years ago

Dann versuche es bitte mal in einer frischen 4.9. Wenn es dort geht, musst du leider Schritt für Schritt deine Erweiterungen durchgehen.

Ich komme erst am Montag dazu selbst zu schauen.

operatorone commented 4 years ago

Bin grade bei einer neuen Installation zu installieren

operatorone commented 4 years ago

Dies ist die aktuelle composer.json des neuen Systems. Nur damit du sehen kannst von wo es startet.

{ "type": "project", "require": { "contao/calendar-bundle": "4.9.", "contao/comments-bundle": "4.9.", "contao/conflicts": "@dev", "contao/faq-bundle": "4.9.", "contao/listing-bundle": "4.9.", "contao/manager-bundle": "4.9.", "contao/news-bundle": "4.9.", "contao/newsletter-bundle": "4.9." }, "extra": { "contao-component-dir": "assets" }, "scripts": { "post-install-cmd": [ "Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication" ], "post-update-cmd": [ "Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication" ] } }

operatorone commented 4 years ago

Hat leider nicht geklappt. Ich hänge dir die Fehlermeldung mal lieber als TXT-Datei an. error_gmb.txt

operatorone commented 4 years ago

Irgendwie finde ich im Moment keine GoogleMaps Erweiterung die für 4.9.2 funktioniert. Bei eurer anderen heimrichhannot/dlh_googlemaps und der von Christian de la Haye krieg ich immer den Fehler

util.js:232 Google Maps JavaScript API warning: NoApiKeys

und kann dann die Karte nicht anzeigen :-(

operatorone commented 4 years ago

Aber ich helfe gerne beim Testen.

Defcon0 commented 4 years ago

Ich schaue es mir am Montag mal an.

operatorone commented 4 years ago

Das wäre klasse. Danke dir 👍

Defcon0 commented 4 years ago

OK, ich habe es getestet und es geht ohne Probleme. Ich nehme an, du fixierst durch deinen Composer-Aufruf oder den vom Contao Manager deine Dependencies.

Wenn ich ein frisches 4.9.2 aufsetze und dann nur minimum-stability: dev, prefer-stable: true und die Erweiterung setze, kommt beim update dry-run folgendes:

  - Installing soundasleep/html2text (1.1.0)
  - Installing symfony/css-selector (v5.0.8)
  - Installing tijsverkoyen/css-to-inline-styles (2.2.2)
  - Installing wa72/htmlpagedom (v1.3.1)
  - Updating symfony/property-access (v5.0.8) to symfony/property-access (v4.4.8)
  - Installing heimrichhannot/contao-request-bundle (1.1.0)
  - Installing hackzilla/password-generator (1.5.0)
  - Installing heimrichhannot/contao-utils-bundle (2.162.0)
  - Installing anisimov/json-builder (3.0.1)
  - Installing anisimov/google-map (2.0.4)
  - Installing anisimov/google-map-bundle (3.0.4)
  - Installing heimrichhannot/contao-google-maps-bundle (2.0.0-beta1)
wa72/htmlpagedom suggests installing wa72/html-pretty-min (Minify or indent HTML documents)
heimrichhannot/contao-utils-bundle suggests installing mpdf/mpdf (Required by huh.utils.pdf.writer service in version ^7.0)
heimrichhannot/contao-utils-bundle suggests installing setasign/fpdi-tcpdf (Required by huh.utils.pdf.fpdi-writer service in version ^2.2)
heimrichhannot/contao-utils-bundle suggests installing spatie/pdf-to-image (Optional requirement for huh.utils.pdf.preview in version ^1.8. Please read the docs.)
heimrichhannot/contao-utils-bundle suggests installing alchemy/ghostscript (Optional requirement for huh.utils.pdf.preview in version ^4.1. Please read the docs.)
anisimov/google-map suggests installing egeloen/serializer (Allows to use http services)

Der entscheidende Teil ist der hier:

  - Updating symfony/property-access (v5.0.8) to symfony/property-access (v4.4.8)

Wenn du das durch die Art, wie du updatest, lockst, geht es nicht. Du musst also genau das hier ausführen ohne irgendwelche Extra-Befehle: composer update.

Hier zum Abgleich noch die composer.json:

{
    "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/calendar-bundle": "^4.9",
        "contao/comments-bundle": "^4.9",
        "contao/conflicts": "@dev",
        "contao/faq-bundle": "^4.9",
        "contao/listing-bundle": "^4.9",
        "contao/manager-bundle": "4.9.*",
        "contao/news-bundle": "^4.9",
        "contao/newsletter-bundle": "^4.9",
        "heimrichhannot/contao-google-maps-bundle": "^2.0"
    },
    "conflict": {
        "contao-components/installer": "<1.3"
    },
    "minimum-stability": "dev",  
    "prefer-stable": true,
    "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"
        ]
    }
}
operatorone commented 4 years ago

Hi, vielen Dank für deinen Test und die Rückmeldung. Ich kann leider nicht bestimmen, was diesen Lock auslöst. Im Contao Manager kann ich das ja nicht beeinflussen. Es wird wahrscheinlich eine Erweiterung sein. Console kann ich hier zwar nutzen, aber der RAM reicht nicht. Ich habe mir die Instanz nun mal lokal aufgebaut und versuche es hier zu installieren.

Defcon0 commented 4 years ago

Das wird das beste sein, genau. Was hilfreich ist: du kannst mit composer why symfony/property-access testen, was die Erweiterung sein könnte, die das enforcet.

operatorone commented 4 years ago

Also, so langsam habe ich es hinbekommen. Ich habe eine Karte angelegt und sie erscheint auch. War wohl auch noch meine API agelaufen, aber nun kann ich die Karte sehen. Gibt es hier eigentlich auch einen Datenschutzmodus, in dem man erst eine Confirm-Message wegklickt. Sont ist das doch nicht DSGVO-konform, oder?

Defcon0 commented 4 years ago

So ist es nicht DSGVO-konform, richtig. Für den Fall bieten wir in Zukunft auch ein Datenschutz-Center als Erweiterung an. Das wird allerdings eine Bezahl-Erweiterung. Diese deckt dann auch nicht nur dieses Bundle hier ab, sondern quasi alles, was datenschutzrelevant ist (Cookies, localStorage, iFrames, Maps, externe Links, ...).

operatorone commented 4 years ago

Und hast du ggf. eine Idee für die Zwischenzeit? Kann ich den Datenschutz-Teil aus der alten googlemaps Erweiterung nutzen?

Defcon0 commented 4 years ago

Naja, ausgegeben wird das ganze in einem Twig-Template. Du könntest bspw. dort drin beliebiges JavaScript nutzen.

operatorone commented 4 years ago

Danke, ich werde es mal probieren.