Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
webprintz opened this issue Mar 6, 2023 · 3 comments
Open

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

webprintz opened this issue Mar 6, 2023 · 3 comments

Comments

@webprintz
Copy link

webprintz commented Mar 6, 2023

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`

@webprintz webprintz changed the title Leaflet Maps wird nicht installiert Leaflet Maps wird nicht installiert | Contao 4.13.15 Mar 6, 2023
@dmolineus dmolineus self-assigned this Mar 14, 2023
@dmolineus dmolineus added bug and removed question labels Mar 14, 2023
@zonky2
Copy link

zonky2 commented Mar 15, 2023

@cmette
Copy link

cmette commented Mar 22, 2023

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

@igi-1w3r53n
Copy link

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

zonky2 added a commit to zonky2/contao-leaflet-maps that referenced this issue Jul 1, 2023
@zonky2 zonky2 mentioned this issue Jul 1, 2023
@makeplane makeplane bot changed the title Leaflet Maps wird nicht installiert | Contao 4.13.15 [TEST-2] Leaflet Maps wird nicht installiert | Contao 4.13.15 Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants