Jump to content

Fatal error - can't open modules page


Recommended Posts

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

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/cli
Loaded 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 by maoma (see edit history)
Link to comment
Share on other sites

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

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 SAPI
max_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-time
max_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-limit
memory_limit = 256M
 

Link to comment
Share on other sites

×
×
  • Create New...