Your site has a heavy backpack. With a memory limit below 128MB, WordPress struggles to run plugins, process uploads, and handle admin operations — leading to white screens and timeouts.
Why This Matters
WordPress loads plugins, themes, and processes content in memory. Modern sites with page builders, WooCommerce, or multiple active plugins easily need 128MB or more. When memory runs out:
- White Screen of Death — PHP runs out of memory mid-execution
- Failed plugin updates — not enough memory to unzip and install
- Media upload failures — large images can't be processed
- Slow admin panel — WordPress constantly hitting memory ceiling
How to Fix It
Safe Practice: Before making any technical changes, ensure you have a full backup of your site (files and database) via your hosting control panel or a dedicated plugin like UpdraftPlus.
Method 1: wp-config.php (Recommended)
Add this line to wp-config.php, before the line that says /* That's all, stop editing! */:
define('WP_MEMORY_LIMIT', '256M');For admin operations (recommended if you use page builders):
define('WP_MAX_MEMORY_LIMIT', '512M');Method 2: php.ini
If you have access to php.ini (dedicated servers or some shared hosts):
memory_limit = 256MMethod 3: .htaccess
For Apache servers, add to your .htaccess file:
php_value memory_limit 256MMethod 4: Hosting Control Panel
Many hosts let you change the PHP memory limit directly:
- cPanel → Select PHP Version → PHP Options → memory_limit
- SiteGround → PHP Manager → PHP Variables
- Cloudways → Application Settings → PHP
What to Watch For
- Your hosting plan has a hard memory ceiling. If your host only allocates 128MB to your plan, setting 256M in wp-config won't work. You'd need to upgrade your hosting plan.
- If you consistently need more than 256MB, it might indicate a plugin memory leak or an overly complex site setup.
- Check Tools → Site Health → Info → Server to verify your current memory limit after making changes. Alternatively, Dravasite can show you this and provide actionable insights in seconds.
- WooCommerce with many products generally needs 256MB minimum. Sites with page builders and WooCommerce together should target 512MB.