PHP Allowed Memory Size Exchausted Fatal Error PHP permitido el tamaño de la memoria Exchausted error fatal
A functional PHP script returns the following error either on the web page or in Apache error log file when it exchausted and used up the default memory requirement of 8 MB memory allocation: Un funcional script PHP devuelve el siguiente error, ya sea en la página web Apache o error en el archivo de registro cuando se exchausted y utilizado por defecto el requisito de memoria de 8 MB de memoria:
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate … bytes) in … PHP Fatal error: Permitido el tamaño de la memoria de 8388608 bytes agotado (tratado de asignar… bytes) a…
The error normally occurs when PHP tries to process a big database records or when importing or exporting. El error normalmente ocurre cuando PHP trata de un gran proceso de base de datos de registros o cuando la importación o exportación. To solve the error, there are two resolutions. Para solucionar el error, hay dos resoluciones. One is to change and increase the memory limit of the particular PHP script by adding or including an additional line at the top of the script: Uno de ellos es el cambio y para aumentar el límite de memoria de la particular script PHP mediante la adición o incluya una línea adicional en la parte superior de la secuencia de comandos:
ini_set(”memory_limit”,”16M”); ini_set ( "memory_limit", "16M");
You can assign the memory limit to any amount you like by changing the 16M to other number, such as 12M or 24M. Puede asignar el límite de memoria para cualquier cantidad que te gusta de cambiar el 16M a otro número, como el 12M o 24m. 16M will set the memory limit to 16 megabytes. 16M establecerá el límite de memoria de 16 megabytes. If this doesn’t work and the PHP error still appearing, increase the memory limit until the PHP scripts running perfectly or the limit of your system hardware. Si esto no funciona y el error de PHP que aparecen aún, aumentar el límite de memoria hasta que la ejecuta scripts PHP o perfectamente el límite de su sistema de hardware.
To change the memory allocation limit permanently for all PHP scripts running on the server, modify the PHP.INI configuration file of the server (location depending on your OS and installation method). Para cambiar el límite de asignación de memoria permanente para todos los scripts PHP se ejecutan en el servidor, modificar el php.ini archivo de configuración del servidor (la ubicación en función de su sistema operativo y el método de instalación). Search for memory_limit after opening the file in an editor. Buscar memory_limit después de abrir el archivo en un editor. If the memory_limit doesn’t exist, add the following line. Si el memory_limit no existe, añada la siguiente línea. If it’s there, modify the value of the memory_limit: Si se trata de ahí, modificar el valor de la memory_limit:
memory_limit = 12M memory_limit = 12M
The 12M sets the limit to 12 megabytes (12582912 bytes). El 12M fija el límite a 12 megabytes (12582912 bytes). Change to the value you desirable. Cambiar para que el valor deseable.
An alternative way is to modify your PHP scripts that generate the error for more efficiency and better data handling. Una forma alternativa consiste en modificar sus scripts PHP que genera el error para obtener más eficiencia y mejor manejo de datos.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Se trata de una máquina que traduzca la página se proporciona "tal cual" sin garantía. Machine translation may be difficult to understand. La traducción automática puede resultar difícil de entender. Please refer to Por favor, consulte original English article artículo original Inglés whenever possible. siempre que sea posible.
Share and contribute or get technical support and help at Compartir y contribuir o recibir apoyo técnico y ayudar a My Digital Life Forums Mi vida digital Foros .
Related Articles Artículos relacionados
- PHP Parse Error: syntax error, unexpected $end PHP Parse error: error de sintaxis, $ final inesperado
- gmmktime Error in WordPress and MagpieRSS gmmktime Error en WordPress y MagpieRSS
- How to Customize, Modify or Change WordPress Database Connection Error Page Cómo personalizar, modificar o cambiar la conexión de bases de datos de WordPress página de error
- PHP Scripts open_basedir Restriction in Effect Error Scripts PHP open_basedir restricción en efecto error
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 de error cuando la exportación de bases de datos
- Comments and Comment Blocks in PHP Comentarios y Observaciones bloques en PHP
- Enable MySQL InnoDB Storage Engine Support in XAMPP Installation Activar MySQL motor de almacenamiento InnoDB apoyo a la instalación de XAMPP
- PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions PHP 5 No se puede abrir la solicitud HTTP Stream con fopen o fsockopen Funciones
- Spb Finance Synchronization Error in Microsoft ActiveSync Spb Finanzas error de sincronización en Microsoft ActiveSync
- Joomla Direct Access to This Location Is Not Allowed Error Joomla acceso directo a esta ubicación no está permitido error







December 19th, 2007 09:58 19 de Diciembre de 2007 09:58
I have same problem with yours. He mismo problema con la suya. Can this problem solved by editing any wordpress file? Este problema puede resolverse mediante la edición de cualquier archivo de wordpress? or…. o….
without configuring php.ini? sin la configuración de php.ini?
thanks before gracias antes de
January 27th, 2008 17:35 27 de Enero, 2008 17:35
I follow your instruction by modifying php.ini and it works. Yo sigo su instrucción de modificar php.ini y funciona. Thanks for sharing this information. Gracias por compartir esta información.
January 31st, 2008 11:20 31 de enero de 2008 11:20
Exactly what I was looking for to solve my problems! Exactamente lo que yo estaba buscando a resolver mis problemas! Thanks for the simple and clear instruction! Gracias por la simple y clara instrucción!
February 16th, 2008 19:50 16 de febrero de 2008 19:50
thanks gracias
March 6th, 2008 10:32 Marzo 6, 2008 10:32
After trying many solutions in order to get Wordpress to co-operate with Microsoft live writer. Después de intentar muchas soluciones con el fin de obtener Wordpress a cooperar con Microsoft vivir escritor. I finally came here and after editing “/wp-admin/includes/image.php”, the problem was solved. Finalmente llegó aquí y después de editar "/ wp-admin/includes/image.php", el problema se resolvió.
I just needed to add… Acabo necesarios para añadir…
ini_set(”memory_limit”,”12M”); ini_set ( "memory_limit", "12M");
… right under the <?php tag … En el marco del derecho <? Php etiqueta
May 1st, 2008 13:34 1 de Mayo, 2008 13:34
where is PHP.INI location??? ¿dónde está la ubicación de php.ini?
May 22nd, 2008 11:15 22 de mayo de 2008 11:15
I have ever got the same problem, but this ini_set(”memory_limit”,”12M”); line could not solved my problems. He recibido el mismo problema, pero esto ini_set ( "memory_limit", "12M"); línea no puede resolver mis problemas. I just removed all waste plugin. Me acaba de quitar todos los residuos plugin. And walah, It worked. Y walah, y funcionó.