Grow the memory limit in WordPress

Do you have a website? running with WordPress CMS; You may be interested in this article. One of the common mistakes in WordPress, especially on web pages that are "overloaded" is that the default memory is not enough for everything to run properly. This presents type errors

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 of memory used by WordPress 4 and include WP_MEMORY_LIMIT are found in default-constants.php. Change the values ​​as shown below and you're good to go.

 // 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 its administrator to change PHP's 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.).