Is your WordPress website throwing an “Allowed memory size exhausted” error? This common problem means your WordPress installation is running out of the memory it needs to function properly. Don’t panic – we’ve got you covered. Here’s a comprehensive guide on how to troubleshoot and increase WordPress memory limit.
Method 1: Edit file wp-config.php
Add the following to wp-config.php
define( 'WP_MEMORY_LIMIT', '256M' );
(usually place under define(WP_DEBUG, true);
)
Read more here.
Method 2: Edit file .htaccess
Make sure you back up .htaccess before you edit it.
Add the following to .htaccess:
php_value memory_limit 128M
Method 3: Edit php.ini
Add the following to php.ini:
memory_limit=128M
Read more here.
If you’ve tried all methods and still get errors, please contact your hosting administrator to resolve this issue.
Learn More from ThimPress Knowledge Base Articles:
- How to Share WordPress Site Access with Thimpress Support Securely
- How To Troubleshoot ActionScheduler Errors: Step-by-Step Guide
- How to Update WordPress Theme Safely: A Step-by-Step Guide
- How to Update Your PHP Version (and Why It’s Crucial)
- Loco Translate Guide: How to Translate Your WordPress Theme
- How to Fix “Broken Theme and/or Stylesheets Missing” Error in WordPress
- One-Click Installation: Launch A WordPress Site in Minutes
- How to Extend Support for ThimPress Product on ThemeForest
- ThimPress’s Documentation Portal
- Outdated Template in WordPress Themes: How to Fix It?
Contact US | ThimPress:
Website: https://thimpress.com/
Fanpage: https://www.facebook.com/ThimPress
YouTube: https://www.youtube.com/c/ThimPressDesign
Twitter (X): https://twitter.com/thimpress