WordPress Memory Errors and Solutions

Fix WordPress Memory Errors

Memory gaps and errors denote the unfitting recall, or comprehensive loss, of data in the reminiscence scheme for a precise element and/or occurrence. Memory faults may include remembering occurrences that never occurred or remembering them in a different way from the actual way it transpired.

Problem Description:

The “Fatal error: Allowed memory size of 33554432 bytes exhausted” fault popup when uploading images. This is memory size errors. In order to solve this problem, the memory size allocated to PHP generally needs to be increased. Depending on the host, the size can be set to 32MB, 64MB, 128MB, or 256MB. The question now is how to set it?

How to Fix WordPress Memory Errors

Method 1: Edit PHP.Ini

If editing of the PHP.ini file is allowed, update the memory_limit it can be found in the PHP.ini file memory_limit = 64M; The determined amount of retention a script may munch (64MB).

If 64M is displayed by default, try to modify it to 128M.

Method 2: Edit .htaccess File

Augment the subsequent line of cipher to the .htaccess file

php_value memory_limit 64M

Method 3: edit the Wp-Config.Php file

Add the following code to the wp-config.php file to Increase the memory allocated to PHP

define ('WP_MEMORY_LIMIT', '64M');

Method 4: Create PHP.Ini file in the wp-admin folder

  • Open Notepad.
  • Insert the code below.
  • memory_limit = 64M;
  • Save as “PHP.ini”.
  • Upload this dossier to the “wp-admin” binder.

Generally, it can be solved by the above method. If it still can’t be solved, check whether there is suspicious code in your function file functions.php.

You May Also Like

About the Author: BW

Leave a Reply

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