Fatal error: Allowed memory size...

Si cuando instalamos drupal en local y activamos varios modulos nos sale éste mensaje de error es porque necesitamos más memoria:
Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 768 bytes) in...etc...

Para ampliar la memoria nos vamos al php.ini del Apacheinfo y con cualquier editor en la línea memory_limit le añadimos 32mb. o más:

memory_limit = 32M

Y además añadimos la siguiente linea en el index.php o en el setting.php de sites/default/settings.php:

ini_set("memory_limit","32M");

Posteriormente reiniciamos el servidor Apache.
En caso de no solucionar el problema añadir la siguiente linea al .htaccess:

php_value memory_limit 32M

Responder

El contenido de este campo se mantiene como privado y no se muestra públicamente.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Saltos automáticos de líneas y de párrafos.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Use the special tag [adsense:format:slot] or [adsense:format:[group]:[channel][:slot]] or [adsense:block:location] to display Google AdSense ads.
  • Glossary terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, h1, h2, pre.

Más información sobre opciones de formato

Powered by Drupal - Modified by Danger4k