tdoescher / contao-googlemaps-bundle

1 stars 0 forks source link

Case mismatch: GooglemapsHtmlController.php vs. GooglemapsHTMLController.php #3

Open V15 opened 5 months ago

V15 commented 5 months ago

Bei dem Versuch die Erweiterung in Contao 5.3.1 und PHP 8.2 zu installieren, bricht die Installation mit der folgenden Fehlermeldung ab:

Case mismatch between class and real file names: "Controller/ContentElement/GooglemapsHtmlController.php" vs "Controller/ContentElement/GooglemapsHTMLController.php" in "/vendor/tdoescher/googlemaps-bundle/src/".

tdoescher commented 5 months ago

Das kann ich leider nicht reproduzieren. Handelt es sich vielleicht um ein Update des Bundles? Oder um eine Neuinstallation?

Ich habe die Klasse irgendwann Umbenannt um diese der Pascal case Konvention anzupassen.

V15 commented 5 months ago

Eine Neuinstallation.

tdoescher commented 5 months ago

Ich habe es gerade getestet, die Installation läuft mit der Version 3.0.0 sauber durch.

V15 commented 5 months ago

Ich habe nun noch mal versucht die Erweiterung mit der expliziten Angabe 3.0.0 zu installieren: Gleicher Fehler. Ich nutze MAMP lokal auf meinem Rechner - macht das einen Unterschied? Ich teste es gleich auch mal auf dem Server.

$ /Applications/MAMP/bin/php/php8.2.0/bin/php -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=UTC /xxx/public/cm.php composer require tdoescher/googlemaps-bundle=3.0.0 --no-update --no-scripts --prefer-stable --sort-packages --no-ansi --no-interaction

/xxx/composer.json has been updated

Process terminated with exit code 0

Result: OK

Resolving dependencies using Composer Cloud v3.7.0

[6.8MiB/0.26s] Loading composer repositories with package information [89.5MiB/15.11s] Updating dependencies [32.9MiB/16.94s] Lock file operations: 1 install, 0 updates, 0 removals [32.9MiB/16.94s] - Locking tdoescher/googlemaps-bundle (3.0.0) [32.2MiB/16.96s] Writing lock file [16.4MiB/17.00s] Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead. [16.6MiB/17.26s] No security vulnerability advisories found. [17.1MiB/17.28s] Memory usage: 17.06MB (peak: 217.64MB), time: 17.29s. [17.1MiB/17.28s] Finished Composer Cloud resolving.

Job ID OlaahdNl6orV1kTJhpk8iFMwlU1P9huulnn4lXo8QRPEcvzgSbV3577lvqPaH7F7ZEWmVuDdyg33UjjVxQtN9Z completed in 12 seconds

Memory usage: 17.06MB (peak: 217.64MB), time: 17.29s.

$ /Applications/MAMP/bin/php/php8.2.0/bin/php -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=UTC /xxx/public/cm.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 php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead. Generating optimized autoload files contao/manager-plugin: Dumping generated plugins file... contao/manager-plugin: ...done dumping generated plugins file Class tdoescher\GooglemapsBundle\Controller\ContentElement\GooglemapsHtmlController located in ./vendor/tdoescher/googlemaps-bundle/src/Controller/ContentElement/GooglemapsHTMLController.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. 107 packages you are using are looking for funding. Use the composer fund command to find out more!

@php vendor/bin/contao-setup Added the bin/console file. Added the public/preview.php file. Added the public/index.php file.

Trying to install assets as relative symbolic links.


  Bundle                        Method / Error    

✔ ContaoCoreBundle relative symlink
✔ RockSolidColumnsBundle relative symlink
✔ ContaoNewsBundle relative symlink
✔ ContaoComponentStyleManager relative symlink


[OK] All assets were successfully installed.


  Symlink                                     Target / Error                                    

✔ public/files/daten files/daten
✔ public/files/data files/data
✔ public/system/modules/mobile_menu/assets system/modules/mobile_menu/assets
✔ system/themes/flexible vendor/contao/core-bundle/contao/themes/flexible
✔ public/assets assets
✔ public/system/themes system/themes
✔ system/logs var/logs
✔ public/vendor/scrivo/highlight_php/styles vendor/scrivo/highlight.php/styles


// Clearing the cache for the prod environment with debug false

[OK] Cache for the "prod" environment (debug=false) was successfully cleared.

In DebugClassLoader.php line 354:

Case mismatch between class and real file names: "Controller/ContentElement
/GooglemapsHtmlController.php" vs "Controller/ContentElement/GooglemapsHTML
Controller.php" in "/xxx/vendor/tdoescher/googlemaps-
bundle/src/".

08:44:21 CRITICAL [console] An error occurred while using the console. Message: "An error occurred while executing the "/Applications/MAMP/bin/php/php8.2.0/bin/php -dmemory_limit=-1 /xxx/vendor/contao/manager-bundle/bin/contao-console cache:clear --no-warmup --env=dev --no-ansi" command: In DebugClassLoader.php line 354:

Case mismatch between class and real file names: "Controller/ContentElement
/GooglemapsHtmlController.php" vs "Controller/ContentElement/GooglemapsHTML
Controller.php" in "/xxx/vendor/tdoescher/googlemaps-
bundle/src/".

" ["exception" => RuntimeException { …},"message" => """ An error occurred while executing the "/Applications/MAMP/bin/php/php8.2.0/bin/php -dmemory_limit=-1 /xxx/vendor/contao/manager-bundle/bin/contao-console cache:clear --no-warmup --env=dev --no-ansi" command: \n In DebugClassLoader.php line 354:\n \n Case mismatch between class and real file names: "Controller/ContentElement \n /GooglemapsHtmlController.php" vs "Controller/ContentElement/GooglemapsHTML \n Controller.php" in "/xxx/vendor/tdoescher/googlemaps- \n bundle/src/". \n \n \n """]

In ContaoSetupCommand.php line 142:

An error occurred while executing the "/Applications/MAMP/bin/php/php8.2.0/
bin/php -dmemory_limit=-1 /xxx/vendor/contao/manager-
bundle/bin/contao-console cache:clear --no-warmup --env=dev --no-ansi" comm
and:
In DebugClassLoader.php line 354:

Case mismatch between class and real file names: "Controller/ContentEleme  

nt
/GooglemapsHtmlController.php" vs "Controller/ContentElement/GooglemapsHT
ML
Controller.php" in "/xxx/vendor/tdoescher/googlemap
s-
bundle/src/".

contao:setup

Script @php vendor/bin/contao-setup handling the post-install-cmd event returned with error code 1

Process terminated with exit code 1

Result: General error

tdoescher commented 5 months ago

Bitte mal den Composer Cache auf Ihrem Rechner löschen, vielleicht ist hier das Problem. Ansonsten erstelle ich eine neue Version 3.0.1.

V15 commented 5 months ago

Das löschen des Composer Cache hat leider auch nicht geholfen.

tdoescher commented 5 months ago

Ich habe nun die Version 3.0.1 erstellt, ohne Änderungen. Ich hoffe nun zieht sich Ihr Computer die Daten neu. Der Klassenname GooglemapsHTMLController existiert nicht mehr in meinem Bundle, daher kann es eigentlich nur ein Caching Problem sein.

V15 commented 5 months ago

Ich habe deine Erweiterung gerade problemlos auf einem Server installieren können. Lokal mit MAMP habe ich gerade noch mal den Composer Cache den Cache erneuert MAMP neu gestartet und die Installation hat wegen dem gleichen Fehler wieder nicht geklappt. Liegt also vermutlich irgendwie an MAMP. Ich versuche es noch mal mit einem anderen lokalen Projekt.

Danke für deine Mühe!