Erro estranho ao adicionar o módulo personalizado à instalação do Drupal

0

Estou adicionando o módulo Event à minha nova instalação do Drupal para obter os recursos do calendário em meu site. O módulo aparece bem na minha página de módulos, mas quando clico em salvar configurações, recebo o seguinte erro:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 24 bytes) in /var/www/church/drupal/includes/database.mysql-common.inc 
on line 41

Eu não tenho ideia do que fazer!

    
por Matt Phillips 17.02.2010 / 16:19

1 resposta

0

Seu limite de memória no PHP é muito baixo. Veja como você pode aumentá-lo.

The standard PHP memory requirements for Drupal core are a bare minimum. Sites that run many contrib modules, or particularly memory-intensive ones, will need more.

...

php.ini

This is the recommended approach if you have access to the server's php.ini. This will not be possible in some shared hosting environments, though your host may be able to adjust it for you. Note that this change will affect all websites and PHP scripts on the server.

  1. Locate the php.ini file used by your web server. You can click the "more information" link on Drupal's status page's PHP section. which shows the phpinfo() page. Locate the Configuration File (php.ini) Path row on that page. During installation Drupal checks the PHP Memory Limit, and if it is less than 32M (16MB for Drupal 6), an error message also provides the path to the php.ini file.

  2. Edit the memory_limit parameter in the php.ini file (usually in a section called Resource Limits) memory_limit = 64M ; Maximum amount of memory a script may consume (64MB) If there is no section already for this, place the above line at the end of the file.

  3. Restart Apache.

    
por 17.02.2010 / 19:42

Tags