netzmacht / contao-leaflet-maps

Leaflet maps extension for Contao CMS
12 stars 8 forks source link

[TEST-2] Leaflet Maps wird nicht installiert | Contao 4.13.15 #124

Open webprintz opened 1 year ago

webprintz commented 1 year ago

Leaflet Maps wird nicht installiert unter Contao 4.13.15

Hier das Konsolenergebnis:

`PHP Warning:  Undefined array key "LEAFLET_LIBRARIES" in /var/www/html/WerbeGemeinschaft-Projekt/vendor/netzmacht/contao-leaflet-maps/src/Frontend/Assets/LibrariesConfiguration.php on line 54

20:06:21 CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "ArrayIterator::__construct(): Argument #1 ($array) must be of type array, null given" ["exception" => TypeError { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "ArrayIterator::__construct(): Argument #1 ($array) must be of type array, null given"]

In LibrariesConfiguration.php line 54:

  ArrayIterator::__construct(): Argument #1 ($array) must be of type array, n  

  ull given                                                                    

cache:warmup [--no-optional-warmers]

20:06:21 CRITICAL  [console] An error occurred while using the console. Message: "An error occurred while executing the "/usr/bin/php8.0 -dmemory_limit=-1 /var/www/html/WerbeGemeinschaft-Projekt/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command: PHP Warning:  Undefined array key "LEAFLET_LIBRARIES" in /var/www/html/WerbeGemeinschaft-Projekt/vendor/netzmacht/contao-leaflet-maps/src/Frontend/Assets/LibrariesConfiguration.php on line 54

20:06:21 CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "ArrayIterator::__construct(): Argument #1 ($array) must be of type array, null given" ["exception" => TypeError { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "ArrayIterator::__construct(): Argument #1 ($array) must be of type array, null given"]

In LibrariesConfiguration.php line 54:

  ArrayIterator::__construct(): Argument #1 ($array) must be of type array, n  

  ull given                                                                    

cache:warmup [--no-optional-warmers]

" ["exception" => RuntimeException { …},"message" => """  An error occurred while executing the "/usr/bin/php8.0 -dmemory_limit=-1 /var/www/html/WerbeGemeinschaft-Projekt/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod --no-ansi" command: PHP Warning:  Undefined array key "LEAFLET_LIBRARIES" in /var/www/html/WerbeGemeinschaft-Projekt/vendor/netzmacht/contao-leaflet-maps/src/Frontend/Assets/LibrariesConfiguration.php on line 54\n  20:06:21 CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "ArrayIterator::__construct(): Argument #1 ($array) must be of type array, null given" ["exception" => TypeError { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "ArrayIterator::__construct(): Argument #1 ($array) must be of type array, null given"]\n  \n  In LibrariesConfiguration.php line 54:\n                                                                                 \n    ArrayIterator::__construct(): Argument #1 ($array) must be of type array, n  \n    ull given                                                                    \n                                                                                 \n  \n  cache:warmup [--no-optional-warmers]\n  \n  """]

In ContaoSetupCommand.php line 120:

  An error occurred while executing the "/usr/bin/php8.0 -dmemory_limit=-1 /v  

  ar/www/html/WerbeGemeinschaft-Projekt/vendor/contao/manager-bundle/bin/cont  

  ao-console cache:warmup --env=prod --no-ansi" command: PHP Warning:  Undefi  

  ned array key "LEAFLET_LIBRARIES" in /var/www/html/WerbeGemeinschaft-Projek  

  t/vendor/netzmacht/contao-leaflet-maps/src/Frontend/Assets/LibrariesConfigu  

  ration.php on line 54                                                        

  20:06:21 CRITICAL  [console] Error thrown while running command "cache:warm  

  up --env=prod --no-ansi". Message: "ArrayIterator::__construct(): Argument   

  #1 ($array) must be of type array, null given" ["exception" => TypeError {   

  …},"command" => "cache:warmup --env=prod --no-ansi","message" => "ArrayIter  

  ator::__construct(): Argument #1 ($array) must be of type array, null given  

  "]                                                                           

  In LibrariesConfiguration.php line 54:                                       

    ArrayIterator::__construct(): Argument #1 ($array) must be of type array,  

   n                                                                           

    ull given                                                                  

  cache:warmup [--no-optional-warmers]                                         

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`
zonky2 commented 1 year ago

@webprintz mehrere Zeilen Code mit jeweils drei Backticks "einrahmen"...

https://docs.github.com/de/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code

cmette commented 1 year ago

gibt es einen schnellen Hack, um das bis zum Update zu umgehen?

igi-1w3r53n commented 1 year ago

An anderer Stelle wurde geschrieben, dass man die Variable $GLOBALS['TL_CONFIG']['LEAFLET_LIBRARIES'] = []; anlegen soll (system/config/localconfig.php). Hat bei mir geholfen.