Twig/Loader/Filesystem.php on line 145 - Allowed memory size exhausted
Hallo,
nach dem letzten Contao 4.4.26 Update bekomme ich folgende Fehlermeldung bei cache:warmup (Filesystem.php):
Code:
(13:23:41) [contao] php7-71STABLE-CLI vendor/bin/contao-console cache:warmup
// Warming up the cache for the prod environment with debug false
Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 19337016 bytes) in /../contao/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 145
In Filesystem.php line 145:
Error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 19337016 bytes)
Manchmal auch (Lexer.php):
Code:
(13:43:23) [contao] php7-71STABLE-CLI vendor/bin/contao-console cache:warmup
// Warming up the cache for the prod environment with debug
// false
Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 1716224 bytes) in /../contao/vendor/twig/twig/lib/Twig/Lexer.php on line 178
In Lexer.php line 178:
Error: Allowed memory size of 104857600 bytes exhausted (tried to allocate
1716224 bytes)
Verbose:
Code:
(13:22:16) [contao] php7-71STABLE-CLI vendor/bin/contao-console cache:warmup -v
// Warming up the cache for the prod environment with debug false
Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 19337016 bytes) in /../contao/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 145
In Filesystem.php line 145:
[Symfony\Component\Debug\Exception\OutOfMemoryException]
Error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 19337016 bytes)
Ich habe in der php.ini das memory limit bereits auf 256M erhöht (memory_limit = 256M). Hat jemand einen Tipp was es mit Twig/Loader/Filesystem.php aufsich hat?
Kann es sein, dass es bei Domainfactory in der Konsole eine andere Begrenzung gibt?
Vielen Dank
Micha
Install Tool lässt sich auch nicht mehr öffnen
Ich kann auch das Install Tool nicht mehr öffnen, in den logs kommt dann der folgende fehler:
php memory_limit= 256M
Code:
[2018-09-30 13:49:39] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction","_route":"contao_install"},"request_uri":"[...]/contao/install","method":"HEAD"} []
[2018-09-30 13:49:39] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction","_route":"contao_install"},"request_uri":"[...]/contao/install","method":"GET"} []
[2018-09-30 13:49:41] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\OutOfMemoryException(code: 0):
Error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1126400 bytes) at /../contao/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:145)"} []
php memory_limit= 1024M
Code:
[2018-09-30 13:52:53] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction","_route":"contao_install"},"request_uri":"[...]/contao/install","method":"HEAD"} []
[2018-09-30 13:52:53] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction","_route":"contao_install"},"request_uri":"[...]/contao/install","method":"GET"} []
[2018-09-30 13:52:57] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\OutOfMemoryException(code: 0):
Error: Out of memory (allocated 458723328) (tried to allocate 4000728 bytes) at /../contao/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:145)"} []
Nach Paketaktualisierung in 4.4.24 kein Leeren des CM-Caches mehr möglich
Hallo zusammen,
ich wollte heute in lokaler Installation (MAMP) mit Contao Manager 1.04 von 4.4.24 auf 4.4.26 aktualisieren. Diese Aktualisierung bricht aber mit folgender Fehlermeldung ab:
Code:
$ /Applications/MAMP/bin/php/php7.2.8/bin/php '-q' '/Applications/MAMP/htdocs/websitename/contao-4.4/web/contao-manager.phar.php' 'composer' 'update' 'contao/manager-bundle' '--with-dependencies' '--prefer-dist' '--no-dev' '--no-progress' '--no-suggest' '--no-ansi' '--no-interaction' '--optimize-autoloader' 2>&1
Loading composer repositories with package information
Updating dependencies
Package operations: 0 installs, 5 updates, 0 removals
- Updating tecnickcom/tcpdf (6.2.17 => 6.2.25): Downloading (100%)
- Updating symfony/symfony (v3.4.15 => v3.4.17): Downloading (100%)
- Updating php-http/client-common (1.7.0 => 1.8.0): Downloading (100%)
- Updating friendsofsymfony/http-cache (2.5.0 => 2.5.2): Downloading (100%)
- Updating friendsofsymfony/http-cache-bundle (2.4.1 => 2.5.1): Downloading (100%)
Writing lock file
Generating optimized autoload files
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
Added/updated the web/app.php file.
Added/updated the web/app_dev.php file.
// Clearing the cache for the prod environment with debug
// false
[OK] Cache for the "prod" environment (debug=false) was successfully cleared.
// Warming up the cache for the prod environment with debug
// false
In Lexer.php line 178:
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate
696320 bytes)
cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-update-cmd event terminated with an exception
In ScriptHandler.php line 113:
An error occurred while executing the "cache:warmup" command:
In Lexer.php line 178:
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 696320 bytes)
cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--
verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--en
v ENV] [--no-debug] [--] <command>
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
# Process terminated with exit code 1
# Result: General error
Den Fehler kann ich online in einer Installation bei all-inkl Premium reproduzieren. Das Leeren des Caches ist nicht mehr möglich! Lokal hat auch eine Erhöhung des PHP memory_limit auf 512M keine Veränderung gebracht.
Hat jemand eine Lösung?
Vielen Dank und Grüße!
//Moderation: Beitrag in bereits vorhandenes Thema mit selber Problemstellung verschoben.
Workaround für Install Tool
ich bekomme das Install Tool wie folgt zum Laufen:
1.) den kompletten templates Ordner verschieben (außerhalb des Contao Ordners)
2.) alles unter var/cache/ löschen
3.) warmup aufrufen (shell)... Achtung! php7-71STABLE-CLI durch eigene Version ersetzen.
Code:
php7-71STABLE-CLI vendor/bin/contao-console cache:warmup
4.) templates Ordner wieder zurück verschieben
Danach kann ich das Install Tool öffnen
Contao Installer von Premium Contao Themes
Am Besten Contao mit dem neuen Contao Installer von Premium Contao Themes installieren. Hier wurde bereits der Bug https://github.com/contao/contao/issues/108 behoben.
https://www.premium-contao-themes.co...-download.html
Schöne Grüße
Tom