Amar Host Helpdesk Amar Host Helpdesk
  • Helpdesk Article
  • Forums
My Account
Amar Host Helpdesk Amar Host Helpdesk
My Account
  • Helpdesk Article
  • Forums
  • banner shape
  • banner shape
  • plus icon
  • plus icon

How to Fix WordPress Memory Exhausted Error: 3 Proven Solutions

Updated on November 17, 2025
2 minutes
WordPress
Share

How to Fix WordPress Memory Exhausted Error: 3 Proven Solutions

Or copy link

Clipboard Icon
82 Views

Struggling with “Fatal error: Allowed memory size of X bytes exhausted” in WordPress? This guide walks you through 3 actionable methods to resolve the issue—no coding expertise required.

 What Causes the Memory Exhausted Error?
The error occurs when WordPress exceeds its allocated PHP memory limit. Common triggers include:
– Large plugin installations/updates
– Media-heavy sites (high-resolution images/videos)
– Complex themes or custom code
– Shared hosting with low default limits

 Method 1: Increase Memory Limit in `wp-config.php`
This method sets a site-specific memory limit. Ideal for quick fixes without server access.

 Steps:

1. Log into your cPanel → Open File Manager.
2. Navigate to your WordPress root folder (usually `public_html/`).
3. Locate and edit `wp-config.php` (right-click → “Edit”).

WordPress Memory Exhausted Error
4. Add this line before `/* That’s all, stop editing! Happy publishing. */`:

define(‘WP_MEMORY_LIMIT’, ‘256M’);

 

WordPress Memory Exhausted Error
5. Save changes. Refresh your site to test.

Method 2: Update PHP Memory Limit in cPanel
Adjusts the server-wide PHP memory limit for your account. Works if Method 1 fails.

Steps:

1. In cPanel, go to Software → Select PHP Version.

WordPress Memory Exhausted Error
2. Click the Options tab.

WordPress Memory Exhausted Error
3. Under “Memory Limit,” set a higher value (e.g., `512M`).

WordPress Memory Exhausted Error
4. Click **Save**. Test your site.

 

 Method 3: Use MultiPHP INI Manager (Advanced)
Fine-tunes memory limits for specific domains (ideal for multi-site setups).

Steps :

1. In cPanel, navigate to Software → MultiPHP INI Manager.
2. Select your domain from the dropdown.
3. Scroll to “memory_limit” and update the value (e.g., `512M`).

WordPress Memory Exhausted Error
4. Click Apply. Check your site for resolution.

—

Additional Tips

– Test After Each Step: Reload your site to confirm the error is gone.
– Contact Hosting Support: If limits remain unchanged, your host may need to adjust server configs.
– Optimize Plugins/Themes: Remove unused plugins/themes to reduce memory usage.

By following these steps, you’ll resolve the memory exhausted error and restore full functionality to your WordPress site.

Related Post

How to Protect Your Website from SQL Injection, XSS, DDoS, and Hacking
4 minutes WordPress

How to Protect Your Website from SQL Injectio

WordPress is the most popular content management system...

6 minutes WordPress

Which Is the absolute best web hosting 2025 f

Which Is the absolute best web hosting 2025 for WordPre...

Leave a Comment Cancel reply

Recent Posts

How to Connect GitHub Repositories to cPanel: Public & Private Guide
3 minutes February 14, 2026
SMTP Integration Guide with AmarHost
4 minutes January 19, 2026
How to Access Amarhost Shared Hosting via SSH using PuTTY
3 minutes January 19, 2026
VIP Member at AmarHost
Become a VIP Member at AmarHost and Unlock Exclusive Deals & Discounts
3 minutes January 9, 2026

Recent Comments

    Categories

    • AlmaLinux
    • Cloudflare
    • cPanel
    • Domain
    • Domain Guide
    • Getting Started
    • Hosting
    • Hosting Guide
    • Hosting Offer
    • Laravel
    • Script
    • Server
    • Server Guide
    • SMTP
    • Website & Apps
    • Webuzo
    • WHM
    • WordPress

    Tags

    .COM Domain Affordable Domains Affordable Pricing AlmaLinux Amar Hoster Buy .COM CDN Cheap Domains Cloudflare Cloudflare tutorial cPanel cPanel Email database DNS setup Domain Names Domain Registration Domain Transfer Email Configuration Email Deliverability Hosting Provider https://www.amar.host/affordable-com-domain-registration-starting-at-1099-tk-with-amar-hoster/ Installation guide Local Hosting PHPMailer Port 465 Port 587 Register Domain security Server setup setup guide SMTP Settings SPF and DKIM SSD Hosting SSL TLD Registration Transactional Email VPS hosting Web Hosting Web Hosting Guide website performance website security website speed whm WordPress SMTP WP Mail SMTP
    February 2026
    SMTWTFS
    1234567
    891011121314
    15161718192021
    22232425262728
    « Jan    
    Leaf Illustration

    © 2025 All Rights Reserved by Amar Host