X

How to increase Memory Limit for WordPress site

Posted in: Wordpress Hits: 78067

 

Fatal error: Allowed memory size of … bytes exhausted

If you got the above message when Import Demo Content. It means your WordPress installation doesn’t have enough memory to operate. Here are some solutions you can try:

Solution 1: Edit file wp-config.php

Add the following to wp-config.php
define( 'WP_MEMORY_LIMIT', '512M' );
(usually place under define(‘DB_COLLATE’, ”);)

Solution 2: Edit file .htaccess

Make sure you back up .htaccess before you edit it.
Add the following to .htaccess:
php_value memory_limit 512M

Solution 3: Edit php.ini

Add the following to php.ini:
memory_limit=512M

Credit:

https://codex.wordpress.org/Common_WordPress_Errors#Allowed_memory_size_exhausted

If you’ve tried all methods and still get errors, please contact your hosting administrator to resolve this issue.

2 people found this useful.   Me too
Not Helpful
X