Unfortunately when I try to login one of my WordPress website, there is an error inside the wp-admin page Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 56383 bytes) in /custom.php on line 125. Or you may found similar error most of the times, Don’t worry all are WordPress Memory Limit error.
Crypto and Banking
We recommend the following high-quality options for secure Bitcoin transactions and online banking services:
BTC and ETH QR code generator websites
CRA Login Canada Revenue Agency
MyCRA Login | CRA Tax Refund | MyCRA | CRA My Account
MyCRA Login | CRA Tax Return | MyCRA | CRA My Account
RBC Royal Bank Login
RBC Canada | RBC Online Banking Sign In| Royal Bank Canada Business Login
CIBC Online Banking Login/span>
TD EasyWeb Canada Trust Login
TD EasyWeb Login | TD EasyWeb Banking Login | TD Canada EasyWeb Login| Login TD EasyWeb | TD Online Banking Login
WordPress Memory Limit & Max Memory Limit
First, open your root directory of WordPress and find for “wp-config.php“ file and open file in your editor. Then add the following lines inside the main PHP tag:
define('WP_MEMORY_LIMIT', '256M'); define( 'WP_MAX_MEMORY_LIMIT' , '512M' );
We increased the memory limit to 256MB and Maximum memory limit to 512MB.
If you don’t want to change your wp-config.php file then you can choose the second option also.
For that, you need to update your php.ini file which is also located in the root directory of WordPress (If not exist then simply create php.ini file using FTP).
Now add the following line of code within your php.ini file.
memory_limit = 256M
These both would increase the memory limit to 256 MB.
If you still get the error after these solutions, then please contact your hosting provider.
Note: If you have other solutions for increasing the memory limit, then let us know in the comments below.
- Tags:
- Development ,
- How to
Leave a Comment
sing in to post your comment or sign-up if you dont have any account.