Solution: "Allowed Memory Size Of Error" In Wordpress – 1 Minute Fix
У вашего броузера проблема в совместимости с HTML5
Solution: Allowed Memory size of Error In Wordpress – 1 Minute EasyFix
If you are getting the error like this one http://musicbeats.net/solution-fatal-error-allowed-memory-size-x-bytes/ 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