Increase the WordPress Memory Limit & Max Memory Limit

  • home
  • /
  • WordPress
  • /
  • Increase the WordPress Memory Limit & Max Memory Limit

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

This collection comprises of a variety of online platforms, designed to generate QR codes for Ethereum (ETH) and Bitcoin (BTC) addresses. These websites offer a user-friendly interface with step-by-step guides to help users create custom QR codes that serve as a direct channel to their crypto wallet addresses. Users could conveniently use these generated QR codes for transactions, thus making the process of sending and receiving cryptocurrencies faster and more efficient. The collection includes online tools with different features such as customization of QR codes, error correction capability, and optional encryption for extra security. The generated QR codes from these sites can be used in print and digital format which are scannable with most smartphone cameras or QR code scanner apps. These websites work as powerful tools for streamlining cryptocurrency transactions and promoting the wider use of digital currencies.

CRA Login Canada Revenue Agency

CRA Login section including CRA My Account login, CRA representing a client, CRA business login, MyCRA Login and more. Canada Revenue Agency.


Last updated: March 20, 2024
by and Alex Morrell is a senior correspondent at Business Insider covering Wall Street at large.
I tried to Search on Google how to increase the WordPress Memory Limit….and I found such a helpful result that solves my problem.
You may find thousands of solutions for that issue but here it is one of the simplest solutions that I want to share with you.

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.

  • Share:

Leave a Comment

sing in to post your comment or sign-up if you dont have any account.

This site uses Akismet to reduce spam. Learn how your comment data is processed.