How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel

  • Published
  • Posted in Troubleshooting
  • Updated

This article explains how to fix “Fatal error: Allowed memory size of bytes exhausted” in cPanel. This usually happens if the memory of your website is too low. Here are two fixes you can try:

  1. Increase your memory size in cPanel
  2. Increase your memory size in wp-config using the file manager

Follow the video below, where we go through both ways. If the video is too fast, you can follow our step-by-step tutorial below with screenshots of every step.


Video version: how to fix “Fatal error: Allowed memory size of bytes exhausted” in cPanel

Fix 1: Increase memory size in cPanel

1. Login to cPanel.

2. Search for “ini” and Select MultiPHP INI Editor.

, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

3. Select your domain, mine is found-t.com.

, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

4. Update your memory to “512M”.

, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

5. Click Apply to save the changes.

, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

Done.

If this doesn’t fix the error, try Fix 2. That is a better way of fixing the fatal error.


Fix 2: Increase your memory size in wp-config using the file manager [the best way]

1. Login to cPanel.

2. Go to the file manager.

, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

3. Go to public_html.

, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

4. Search for wp-config.php

, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

5. Right-click on wp-config, and click edit.

, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard
, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

6. Scroll down until you see “That’s all, stop editing”.

, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

7. Add this code above that line

define( 'WP_MEMORY_LIMIT', '512M' );
, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

8. Save the changes.

, How to fix “Fatal error: Allowed memory size of bytes exhausted in cPanel, WP Wizard

Done.

Now check to see if the error has been resolved.


Do you have questions or suggestions? Drop them in the comments section below!

Our team is here to assist you every step of the way.

Was this helpful?
YesNo
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments