Solution: “Allowed Memory Size Of Error” In WordPress – 1 Minute Fix




Solution: Allowed Memory size of Error In WordPress – 1 Minute EasyFix
If you are getting the error like this one Step-by-step instructions are available on my website!
“Fatal error – Allowed memory size of 268435456 bytes exhausted (tried to allocate 35 bytes) in /home/content/28/10588428/html/wp-includes/wp-db.php on line 2255”
There are 2 simple solutions to the Allow memory size error. The first fix includes making a few changes that takes seconds to do.

PHP.INI SOLUTION
Where Is It: Root Folder in your hosting account
File Name: php.ini
Line Number To Change: 4
Solution: Change The Memory Limit
Change The Memory Limit From This: memory_limit = 128M
Change The Memory Limit To This: memory_limit = 256M or To This: memory_limit = 512M

DEFAULT-CONTSTANTS.PHP SOLUTION
Where Is It: wp includes folder
File Name: default-constants.php
Line Numbers to Change: 23 and 28
Change The Memory Limit On Line 23 From This: ‘WP_MEMORY_LIMIT’, ’40M’
Change The Memory Limit On Line 23 To This: ‘WP_MEMORY_LIMIT’, ‘128M’
Then Change The Memory Limit On Line 28 From This: if ( ! defined( ‘WP_MAX_MEMORY_LIMIT’ ) ) {
define( ‘WP_MAX_MEMORY_LIMIT’, ‘128M’ );
Then Change The Memory Limit On Line 28 To This: if ( ! defined( ‘WP_MAX_MEMORY_LIMIT’ ) ) {
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );

Here is what the whole thing looks like put together:
Default Constants Solution Code

21 define(‘WP_MEMORY_LIMIT’, ’64M’);
22 } else {
23 define(‘WP_MEMORY_LIMIT’, ‘128M’);
24 }
25 }
26
27 if ( ! defined( ‘WP_MAX_MEMORY_LIMIT’ ) ) {
28 define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );
29 }

PHP.INI Solution Code
1 register_globals = off
2 llow_url_fopen = off
3
4 memory_limit = 256M
Or
1 register_globals = off
2 llow_url_fopen = off
3
4 memory_limit = 512M


Fuente – Source

Solution: “Allowed Memory Size Of Error” In WordPress – 1 Minute Fix

Necesitas ayuda con wp? Entonces WPVideo es tu sitio.
Encuentra lo que buscas entre cientos de miles de videos y experiencias personales de otros usuarios. Todos los que empezamos con wp deberíamos tener acceso a esta web, ojalá yo hubiera tenido algo así cuando empecé mi camino como webmaster 🙂
Pero ahora quiero y puedo poner esta web a vuestra disposición.
Disfrutadla 😉

Need help with wp? Then WPVideo is your site.
Find what you are looking for among hundreds of thousands of videos and personal experiences of other users. All of us who started with wp should have access to this website, I wish I had something like that when I started my journey as webmaster 🙂
But now I want and I can put this website at your disposal.
Enjoy it 😉

https://www.wpvideo.eu

Publicado en Wordpress y etiquetado .

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *