maoma Posted February 5, 2015 Share Posted February 5, 2015 Hello. I have problem with my admin page - I can't open modules page and get infrmation on white page: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) in /home/admin/web/gen-parts.pl/public_html/tools/smarty/sysplugins/smarty_internal_templatelexer.php on line 914[PrestaShop] Fatal error in module smarty_internal_templatelexer:Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) on 914 line: $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns I visit many forums, but I didn't get any ideas to resolved this porblem with teplatelexer file, Link to comment Share on other sites More sharing options...
tuk66 Posted February 6, 2015 Share Posted February 6, 2015 Memory. You have 32M for PHP scripts and need at least 64M. Link to comment Share on other sites More sharing options...
maoma Posted February 6, 2015 Author Share Posted February 6, 2015 (edited) I open terminal, and paste sudo php -i | grep 'Configuration File' to recognize my php.ini and I get: Configuration File (php.ini) Path => /etc/php5/cliLoaded Configuration File => /etc/php5/cli/php.ini When I open the correct file /etc/php5/cli/php.ini I don't have line 'memory_limit'. Try to search and get information "not found" Edited February 6, 2015 by maoma (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted February 6, 2015 Share Posted February 6, 2015 It shoul be something like /etc/php5/apache2/php.ini. Try <?php print php_ini_loaded_file(); The default memory limit in PHP before 5.2 was 8M, it was increased to a default of 16M in PHP 5.2.0. It is currently a default of 128M. Link to comment Share on other sites More sharing options...
maoma Posted February 6, 2015 Author Share Posted February 6, 2015 My in /etc/php5/apache2/php.ini memory limit=512M Link to comment Share on other sites More sharing options...
tuk66 Posted February 6, 2015 Share Posted February 6, 2015 You need to find another restriction, because 33554432 bytes is really 32M. Link to comment Share on other sites More sharing options...
maoma Posted February 9, 2015 Author Share Posted February 9, 2015 Resource Limits ;;;;;;;;;;;;;;;;;;;;; Maximum execution time of each script, in seconds; http://php.net/max-execution-time; Note: This directive is hardcoded to 0 for the CLI SAPImax_execution_time = 160; Maximum amount of time each script may spend parsing request data. It's a good; idea to limit this time on productions servers in order to eliminate unexpecte; long running scripts.; Note: This directive is hardcoded to -1 for the CLI SAPI; Default Value: -1 (Unlimited); Development Value: 60 (60 seconds); Production Value: 60 (60 seconds); http://php.net/max-input-timemax_input_time = 120 ; Maximum input variable nesting level; http://php.net/max-input-nesting-level;max_input_nesting_level = 64; How many GET/POST/COOKIE input variables may be accepted; max_input_vars = 1000; Maximum amount of memory a script may consume (128MB); http://php.net/memory-limitmemory_limit = 256M Link to comment Share on other sites More sharing options...
tuk66 Posted February 9, 2015 Share Posted February 9, 2015 I understand what is in the ini file(s), but I have seen that the real values can be different and hidden. You should ask your server administrator. Link to comment Share on other sites More sharing options...
maoma Posted February 9, 2015 Author Share Posted February 9, 2015 administrator confirm the php.ini memory limit Link to comment Share on other sites More sharing options...
Recommended Posts