fatal error allowed memory size wpstarter

A ‘Allowed Memory Size of Bytes Exhausted‘ happens when a PHP script tries to use more memory than the limit set by WordPress’ server configuration. This limit is frequently set by the memory_limit directive in the server’s PHP setup.

You have the following options for handling Allowed Memory Size of Bytes Exhausted issue:


Check your site’s.htaccess file for any custom memory limit configurations. Incorrect modifications in this file may have an impact on PHP’s memory allocation.

wp-config.php (WordPress Configuration File)

In your wp-config.php file, look for the WP_MEMORY_LIMIT constant. You can increase the memory limit by specifying a larger value for this constant, such as

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

You can add it before the line
/*That's all, stop editing! Happy Blogging. */

Server Restrictions

Check with your web hosting company to see if there are any restrictions on increasing RAM limits at the server side.

Allowed Memory Size of Bytes Exhausted

Some shared hosting configurations may have constraints that you are unable to bypass.

image 4


Use caching technologies to reduce server load and enhance overall speed. Caching plugins can aid in the efficient storage and delivery of frequently accessed data. fatal error due to memory will reduce. Link added on caching.

Image Optimization

Large photos can take up a lot of memory. Reduce the file size of your photographs for the web by using compression tools or plugins.

Database Optimization

Maintain your WordPress database on a regular basis by optimizing and cleaning it. WP-Optimize and other plugins can help with this.

Analyze Resource Usage Plugins: Identify and reconsider the use of plugins that are known to consume a lot of resources. Alternative plugins may provide similar functionality while requiring fewer resources.

Monitoring Server Memory

Use server monitoring tools to keep track on memory usage over time. This can aid in identifying trends or spikes that may be associated with memory problems.

Upgrade PHP Version

Make sure you’re running the most recent and supported version of PHP. Newer PHP versions frequently include performance enhancements and improved memory management.

Profiling Tools

Use profiling tools such as Xdebug or Query Monitor to examine your WordPress site’s memory use and identify particular areas that require optimization.

Remember to take action with care(Allowed Memory Size of Bytes Exhausted) and always keep a backup of your website before making changes to configurations or code.

Alternative Name-
wordpress fatal error out of memory
wordpress fatal error allowed memory size of bytes exhausted

Leave a Reply

Your email address will not be published. Required fields are marked *

2 × 2 =

Web.com Site Builder Coral Draw - thewpstarter
You May Also Like

WordPress Beginner: WordPress fatal error cannot login

Table of Contents Hide Check WordPress fatal error cannot login Message:Accessing Error…

Unlock Solutions: PHP Fatal Error – Cannot Redeclare Function Previously Declared WordPress

Table of Contents Hide To solve ‘Cannot redeclare function’ problem, take the…