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
- How do I determine the size of my array in C?
- What does pss mean in /proc/pid/smaps
- Docker error : no space left on device
- Stack Memory vs Heap Memory
- How can I explicitly free memory in Python?
- How to clear variables in ipython?
- How to clear variables in ipython?
- How does the “view” method work in PyTorch?
- Python subprocess.Popen “OSError: [Errno 12] Cannot allocate memory”
- What does ** do in C language?
- Using Dynamic Memory allocation for arrays
- In Python, what is `sys.maxsize`?
- How do I profile memory usage in Python?
- Is the sizeof(some pointer) always equal to four?
- 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
- How to clear memory to prevent “out of memory error” in excel vba?
- How do I determine the size of an object in Python?
- I get this error: “glibc detected”
- Is Python faster and lighter than C++?
- What does ** mean in C?
- Does stack grow upward or downward?
- Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted (CodeIgniter + XML-RPC)
- Fatal error: Out of memory, but I do have plenty of memory (PHP)
- Destructor for a doubly-linked list that points to its value
- C: pointer to array of pointers to structures (allocation/deallocation issues)
- What is Sandboxed_process0 and why do i have so many instances of it listed in the memory usage for my app
- What is ‘PermSize’ in Java?
- Difference between hive.tez.container.size and tez.task.resource.memory.mb
- What’s the difference between a word and byte?
- malloc(sizeof(int)) vs malloc(sizeof(int *)) vs (int *)malloc(sizeof(int))
- MySQL – UPDATE query with LIMIT
- How to fix the “508 Resource Limit is reached” error in WordPress?
- Refactoring WordPress to improve memory performance [closed]
- Remove more or […] text from short post
- How to configure WordPress to handle 75,000 pages?
- WP_Query leaking absurd amounts of memory
- How to use more than 256MB of memory in the admin?
- Is there a way to exclude the content from the post variable to save on RAM usage?
- Programmatically adding images to the media library with wp_generate_attachment_metadata randomly fails
- What’s the difference between WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT?
- What’s the ideal way to profile WordPress memory usage?
- Can I hook into user registration *before* a user is created?
- Changing the username character limit from four to less characters
- Decrease file size upload in Media
- PHP memory friendly alternative to get_posts()
- WordPress variables and memory
- Allowed memory size of 268435456 bytes exhausted (tried to allocate 7146491840906359738 bytes)
- Multiple WordPress sites eat up alot of RAM
- Customizing get_the_excerpt() to specific length and “Read More” output.
- Different number of posts in each category
- Decreasing the Memory Consumption of a WordPress Site?
- How can I limit the number of comments per registered user per day?
- Ability to set character limit in BuddyPress?
- Limiting the number of users
- Memory needed to host 200 wordpress sites?
- Set a maximum upload count for users on a specific user role
- limit the words in the post content and add read more link
- $wpdb->get_results leaking memory
- How to limit user to publish post per day and per role?
- Stop users from logging in from multiple locations
- Is there a limit on the size of a WP page?
- WP_MEMORY_LIMIT didn’t work in wp-config
- WordPress User Name Limitations