Allowed Memory Size of Bytes Exhausted WordPress WP Admin
How to Fix It
Few WordPress errors are more frustrating than opening your WP Admin area and being greeted with a message such as Allowed memory size of bytes exhausted. Instead of reaching your dashboard, you may see a blank page, an error screen, or a warning that PHP has run out of memory.
The good news is that this problem is usually fixable.
The allowed memory size of bytes exhausted WordPress WP Admin error generally means that your WordPress installation, a plugin, your theme, or another PHP process has reached the memory limit assigned by your hosting environment.
You do not necessarily need to be a developer to solve it. In this guide, we will explain what the error means, why it happens, and several practical ways to increase WordPress memory safely and restore access to your WP Admin dashboard.

The Core Basics
WordPress runs on PHP, and PHP needs memory to process tasks. Every time WordPress loads your dashboard, activates a plugin, processes an image, runs a database query, or performs another operation, it uses part of the available PHP memory.
Your hosting provider places a limit on how much memory an individual PHP process can use. This is called the PHP memory limit.
For example, your website might have a PHP memory limit of 128 MB. A complicated plugin or resource-heavy operation may require more than that amount. When PHP reaches the limit, it stops processing and produces the Allowed memory size exhausted error.
Several things can cause the problem:
* Too many resource-heavy plugins
* Poorly coded plugins or themes
* Large image-processing operations
* Insufficient PHP memory
* WooCommerce or other complex applications
* Background WordPress tasks
* An outdated PHP environment
* Hosting limitations
* A plugin consuming excessive memory because of a bug
It is important to understand that simply increasing memory does not always solve the underlying problem. If one plugin has a serious memory leak, for example, giving WordPress more memory may only delay the error.
“`
💡 WP Fix It Co Recommendation: If you’re dealing with the allowed memory size of bytes exhausted wordpress wp admin error, choosing a fast, secure WordPress host with sensible server resources can prevent the issue or make it much easier to implement a memory-limit solution smoothly. Get Hostinger WordPress Hosting here.
“`
Step-by-Step Guide to Fix the WordPress Memory Error
1. Increase WordPress Memory in wp-config.php
One of the most common solutions is increasing the memory available to WordPress.
Before editing anything, create a backup of your website. You should also be careful when editing `wp-config.php` because a small syntax mistake can prevent WordPress from loading correctly.
Using your hosting file manager or FTP, locate the WordPress installation directory. Find the file named:
`wp-config.php`
Open it in a text editor and look for the line:
`/* That’s all, stop editing! Happy publishing. */`
Add the following code immediately before that line:
“`php
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘256M’ );
“`
Save the file and try accessing your WordPress dashboard again.
For many websites, 256 MB provides plenty of room for normal administration tasks. However, the amount you actually need depends on your plugins, theme, website size, and hosting configuration.

2. Check Whether Your Host Allows the Increase
There is an important limitation here.
WordPress can request additional memory, but your hosting provider ultimately controls the PHP memory limits available to your account.
If you add:
“`php
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
“`
and nothing changes, your server may be enforcing a lower PHP limit.
You can check the current configuration from WordPress Dashboard → Tools → Site Health → Info → Server if you can access WP Admin.
Look for PHP memory limit.
If WP Admin is inaccessible, your hosting control panel may provide PHP configuration information.
3. Try Increasing the PHP Memory Limit
Depending on your hosting environment, you may be able to increase the PHP memory limit through your hosting panel.
Some servers allow configuration through a `php.ini` file. A common setting is:
“`ini
memory_limit = 256M
“`
Some environments also support `.user.ini`.
However, hosting configurations vary. Do not assume that every server accepts the same configuration method.
If changing the PHP limit through your hosting account is not possible, contact your hosting provider and ask them to increase the PHP memory limit for your WordPress site.

4. Find the Plugin Causing the Problem
Increasing memory is only part of the solution.
If the error appeared immediately after installing or updating a plugin, that plugin should be your first suspect.
If you can access WP Admin, temporarily deactivate recently installed or updated plugins.
If you cannot access the dashboard, you can often deactivate plugins through your hosting file manager.
Navigate to:
`wp-content/plugins`
Then temporarily rename the `plugins` folder to something such as:
`plugins-disabled`
WordPress will no longer find the plugins in their normal location.
Try loading WP Admin.
If the dashboard works, rename the folder back to `plugins`, then activate your plugins individually. Test the website after each activation.
This process can identify the plugin responsible for the memory problem.
5. Check Your Theme
Your theme can also consume excessive PHP memory.
If the problem started after installing or updating a theme, temporarily switch to a default WordPress theme if possible.
Themes that contain excessive functionality, poorly optimized code, or unnecessary features can place additional demands on PHP.
A lightweight, regularly maintained theme is generally a better choice than a theme packed with features you never use.
6. Update PHP and WordPress
Running old software can create compatibility and performance problems.
Check that you are running a current, WordPress-compatible PHP version. Also update WordPress, your plugins, and your theme.
Before major updates, create a complete backup.
Do not update everything blindly if your site is business-critical. Check compatibility and test important functionality after updating.
7. Reduce Unnecessary Plugin Load
More plugins do not automatically mean a bad website.
However, every plugin adds code and potentially increases server workload.
Review your plugin list and remove plugins that you no longer need.
Pay particular attention to plugins that:
* Process large amounts of data
* Perform complex database operations
* Scan files continuously
* Generate reports
* Compress or manipulate images
* Run scheduled background tasks
* Duplicate functionality provided by another plugin
Deactivating an unused plugin is helpful, but if you no longer need it, deleting it is usually better.
Best Practices and Pro Tips
Preventing the problem is easier than repeatedly fixing it.
Start by choosing hosting with adequate server resources. A fast, secure WordPress environment gives your website more room to handle plugins, updates, traffic spikes, and administrative tasks.
Keep WordPress, PHP, plugins, and themes updated. Developers regularly release performance improvements and security fixes.
You should also maintain regular backups. Ideally, keep more than one backup and store at least one copy separately from your hosting account.
Finally, monitor your website after installing new plugins. If memory usage suddenly increases after an installation, you have an important clue about where to investigate.
For larger websites, consider using staging environments so changes can be tested before being applied to the live site.
Common Mistakes to Avoid
1. Setting an Extremely High Memory Limit
Do not immediately set memory to 512 MB or 1 GB without understanding why the site needs it. More memory is not a substitute for fixing inefficient code.
2. Editing wp-config.php Without a Backup
A simple typo can cause another WordPress error. Always keep a backup before modifying configuration files.
3. Installing More Plugins to Fix the Problem
Adding another optimization plugin may increase memory usage rather than reduce it. Identify the cause first.
4. Ignoring the Hosting Environment
If your host imposes a strict PHP limit, WordPress configuration changes may have little effect. Sometimes the appropriate solution is changing the server configuration or moving to better hosting.
Conclusion and Call to Action
The allowed memory size of bytes exhausted WordPress WP Admin error can look serious, but in many cases it can be resolved with a few careful changes.
Start by checking your PHP memory limit, increase WordPress memory where appropriate, and investigate plugins or themes that may be consuming excessive resources. Do not simply keep increasing memory without looking for the underlying cause.
A reliable hosting environment, current software, regular backups, and a sensible plugin setup can also prevent many future problems.
At WP Fix It Co, our goal is to make WordPress problems easier to understand and fix. If your WordPress website is giving you errors, glitches, or confusing technical messages, keep exploring WP Fix It Co for practical solutions written in plain English.