Grow the memory limit in WordPress

Do you have a website that runs with CMS; Maybe this article interests you. One of the common errors in WordPress, especially on that are "overloaded" is that the default memory is not enough to run everything correctly. This is how type errors occur

wp-admin page Fatal error: Allowed memory size of 33554432 bytes exhausted in /myphpfile.php on line 122880

wordpressIf you try to Google to find a solution to , many will direct you to make edits to the wp-config.php file to increase the memory limit set by WordPress. But the WP_MEMORY_LIMIT you are told to "tease" is not in the file. So before you start adding additional code to this file, try opening the default-constants.php file from the path /wp-includes/.

The memory settings that WrrdPress 4 uses and include WP_MEMORY_LIMIT are in default-constants.php. Change the values ​​as shown below and you are ready.

 // set memory limits if ('defined' ('WP_MEMORY_LIMIT')) {if (is_multisite ()) {define ('WP_MEMORY_LIMIT', '64M'); } else {define ('WP_MEMORY_LIMIT', '40M'); }}

Change it to

// set memory limits if ('defined' ('WP_MEMORY_LIMIT')) {if (is_multisite ()) {define ('WP_MEMORY_LIMIT', '64M'); } else {define ('WP_MEMORY_LIMIT', '96M'); }}

If the problem persists, contact the server administrator to change the PHP memory limit.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).