Try one (or more) of the below methods to increase the memory allicated by PHP. First try increasing the limit to 64MB, and if that fails use 96M.
You can define the WP_MEMORY_LIMIT
constant in wp-config.php
:
Increase PHP Memory to 64MB
define('WP_MEMORY_LIMIT', '64M');
Increase PHP Memory to 96MB
define('WP_MEMORY_LIMIT', '96M');
You can also change the setting in your .htaccess
file:
Increase PHP Memory to 64MB
php_value memory_limit 64M
Increase PHP Memory to 96MB
php_value memory_limit 96M
You can add a line to wp-config.php
telling PHP to increase the memory limit:
Increase PHP Memory to 64MB
ini_set('memory_limit','64M');
Increase PHP Memory to 96MB
ini_set('memory_limit','96M');
This is not the most preferred method, and you should try the other methods first.
Related Posts:
- How to solve munmap_chunk(): invalid pointer error in C++
- memory error in python
- Difference between word addressable and byte addressable
- Python/Numpy MemoryError
- PHP Memory Limit vs. WP Memory Limit
- High CPU & Memory Spikes?
- Excessive memory used by update_option()
- Allowed memory size exhausted. WordPress side solution
- Memory usage when querying users
- Not enough memory
- Fatal error: Out of memory
- Memory Outages – Need PHP/WP/IT expert
- Notification mail about high memory usage?
- How to debug full RAM memory?
- Adjust Memory Limit on bitnami wordpress server (azure)
- PHP Memory Limit Question
- Defined WordPress Memory Limit to Unlimited
- WordPress memory on 3.X
- Memory usage issue in WordPress 3.x
- WordPress hit memory limit but not from the server
- How to display or print WordPress memory limit and WordPress max memory limit
- Really high memory usage with almost no plugins — could Arabic / Hebrew text be a factor?
- High memory usage in my theme, how to find out why?
- how to fix wordpress high use cpu 100-104% evey time
- How can I figure out where memory is being used?
- CPU 100% usage when login as admin
- Out of Memory But theres more than enough
- CPU Resource Management For Bulk Attachment Insert Share Host
- WP_MAX_MEMORY_LIMIT in wp-config.php seems to be ignored
- Adding define(‘WP_MEMORY_LIMIT’, ’64M’); by default?
- Memory issue only in dashboard
- PHP Fatal Error: Out of memory
- Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in
- Converting bytes to megabytes
- What does pss mean in /proc/pid/smaps
- How can I explicitly free memory in Python?
- Python subprocess.Popen “OSError: [Errno 12] Cannot allocate memory”
- In Python, what is `sys.maxsize`?
- How do I profile memory usage in Python?
- What does it mean double free detected in tcache 2 while using mpz?
- -bash: fork: Cannot allocate memory
- Elasticsearch: Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
- Repository size limits for GitHub.com
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- Destructor for a doubly-linked list that points to its value
- What is Sandboxed_process0 and why do i have so many instances of it listed in the memory usage for my app
- Difference between hive.tez.container.size and tez.task.resource.memory.mb
- What’s the difference between a word and byte?
- How to configure WordPress to handle 75,000 pages?
- Is there a way to exclude the content from the post variable to save on RAM usage?
- What’s the difference between WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT?
- WordPress variables and memory
- Customizing get_the_excerpt() to specific length and “Read More” output.
- Set a maximum upload count for users on a specific user role
- limit the words in the post content and add read more link
- WordPress database becoming huge. How to analyze and optimize it? fear of running out of memory
- What is the most efficient way to search users by their display name?
- WordPress plugin installation error
- Images Missing from built in WP Gallery
- How to increase media image scale limit?
- CPU usage: AJAX and Heartbeat API on admin pages
- is there any limit of length on creating custom taxonomies?
- Memory usage for scalable usermeta queries
- Can you limit the memory usage of a particular plugin?
- How to limit WP_Query to one result on the loop?
- Updating beyond WordPress 4.2.1 yields “allowed memory size exhausted”
- Character Limit w/ Excerpt removes Images Why?
- Restrict users post for himself
- register_post_type name character limit
- Limit the menu child levels under “admin > appearance > menus”
- Out Of memory issue on post per page parameter
- Adding character count and limit in comments, modifying labels and fields – jetpack
- Problem with the Loop – want to limit the access to three free articles
- HTTP Error after finishing uploading a video that is bigger than 64 MB -> After raising the upload limit manually in the wp-config file
- Limit image upload
- Increase 10 post limit per page
- What is a reasonable memory limit for WordPress
- query post limits
- How do I find out which plugin is exceeding memory limits?
- Why is my max_upload_filesize being limited to 2M? [duplicate]
- How to limit page pagination… again
- I want to show my post for limited time, how is it possible?
- How to decrease the max file upload size without using php.ini or htaccess?
- how to split and upload a theme on wordpress?
- Noticed updating taxonomy terms take a long time and run out of memory
- How to limit the number of custom posts certain users can publish in WordPress using php script?
- How can i limit the number of posts to the most recent 6 in my query?
- Memory Leak in Processing Large JSON file
- Search Replace Database ONLY for posts of certain category?
- How to get to the date of the uploaded file
- Improvements to “limit login attempts” plugin
- How Can I Limit Users to Post Creation For My Frontend Theme?
- WordPress keeps crashing my server
- Set the limit to allow author when make post!
- limit posts per page
- Out of Memory – Line 791 of WP-DB.php (mysql_real_escape_string)
- Latest post on specific category and custom css
- How to fix Fatal Error in wp-includes/meta.php after upgrade to PHP 8
- Meaning of the buffers/cache line in the output of free
- Why drop caches in Linux?