So you’ve tried setting the WP_MEMORY_LIMIT
variable in the wp-config.php
file, but have you tried .user.ini
or .php.ini
?
Create one of those files (yes, with the period in front) and then use:
memory_limit=30M
Or whatever value you’re looking for. By default, WordPress is set to 40mb for a single installation, and 64mb for a multisite installation.
But as Tom mentioned in the comments, the solution to your problem might not be this. This may lead to server timeouts instead.
Related Posts:
- Is it possible to increase php memory without directives in wp-config.php, .htaccess or php.ini?
- What is the difference in the WP memory limits?
- How to decrease the max file upload size without using php.ini or htaccess?
- Difference between php memory limit and wp memory limit?
- Allowed memory size of 268435456 bytes exhausted (tried to allocate 7146491840906359738 bytes)
- Upgrading PHP version results in “Use of undefined constant WP_CONTENT_DIR” warning?
- How To Make Connection To WordPress Data Base In A Plugin?
- What is the most efficient way to search users by their display name?
- Renaming wp-content folder dynamically
- Fix 403 error on WordPress multisite network using subdomains
- Make WordPress upload directory outside wordpress root with custom url
- Notice: Constant already defined in wp-config.php on (non-existent) line?
- No wp-config.php file on local install of wordpress – site still displays
- How can I change WordPress domain from remote to localhost?
- Why am I getting ERR_NAME_NOT_RESOLVED when I add a site to my multisite installation? [closed]
- integrating external php library into wordpress- the right way
- Memory errors with media upload, WordPress can’t use more than 96M (while there’s 512 available!)
- Force SSL using FORCE_SSL_ADMIN
- How can I resolve the php notice “Constant EMPTY_TRASH_DAYS already defined”
- Set WP_MAX_MEMORY_LIMIT higher than PHP.ini memory_limit
- PHP Fatal error: Out of memory in WordPress [closed]
- How to add API security keys into JS of wordpress securely
- Defined WordPress Memory Limit to Unlimited
- Moving wordpress site from localhost to live server using GoDaddy cPanel
- WordPress hit memory limit but not from the server
- Set site title & tagline with wp.config or function.php
- PHP Warning: include(): Unable to allocate memory for pool
- How can I redefine WordPress wp-content directory programmatically?
- Site cannot access external connection
- Annoying/confusing WordPress memory limit exhausted
- Serve cookie free URLs in WordPress without using a CDN
- Local WordPress from Git repo, where to set document root?
- How to fix UpdraftPlus’s memory issue?
- I changed the password for the database user of my website, updated wp-config.php and wordpress asks to be reinstalled
- Resource 404 error on multisite subdirectory install
- WordPress Memory limit not increasing
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- WordPress White Screen Error
- Detecting charcater encoding for wp-config.php file
- How rename wp-content and wp-admin folders correctly
- Enabling pretty permalinks with Docker, Multisite WordPress and Caddy
- How to improve the performance when using a flat-file dataset and PHP for implementing advanced search function?
- Convert hex color to RGB values in PHP
- Calculate business days
- How do I make a redirect in PHP?
- How to add elements to an empty array in PHP?
- What do ++ and *+ mean?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Undefined function mysql_connect()
- MySQL column count doesn’t match value count at row 1 [closed]
- Matching a space in regex
- Undefined function mysql_connect()
- How can I send an email using PHP?
- Fatal error: Call to undefined function mysql_connect()
- count() parameter must be an array or an object that implements countable in laravel
- Go Back to Previous Page
- How do I check if a string contains a specific word?
- How do I replace part of a string in PHP? [duplicate]
- How to declare a global variable in php?
- How to fix “Headers already sent” error in PHP
- Fatal error: Call to undefined function mysql_connect()
- How to fix ‘Notice: Undefined index:’ in PHP form action
- Loop through an array php
- Deprecated: mysql_connect()
- Where does PHP store the error log? (PHP 5, Apache, FastCGI, and cPanel)
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- Illegal string offset Warning PHP
- What is PHPSESSID?
- MySQL “Or” Condition
- What is the significance of the number, 32767?
- PHP – how to create a newline character?
- How to add a line break within echo in PHP?
- How to read a large file line by line?
- 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)
- Best way to do multiple constructors in PHP
- How to get URL of current page displayed?
- Undefined variable in functions.php file [closed]
- What are PHP extensions and libraries WP needs and/or uses?
- What is the correct way to use WordPress functions outside WordPress files?
- Allow HTML in excerpt
- How to get WordPress Time Zone setting?
- how to get page id of a page using page slug
- Check if current page is the Blog Page
- How to set and use global variables? Or why not to use them at all
- Sending the reset password link programatically
- How to add product in woocommerce with php code [closed]
- Show all terms of a custom taxonomy?
- How exactly do automatic updates work?
- what is correct way to hook when update post
- How to update custom fields using the wp_insert_post() function?
- How to create custom 401, 403 and 500 error pages?
- Why have on every line
- Most efficient way to add javascript file to specific post and/or pages?
- Running WP Cron on multisite the right way
- Getting only direct child pages in WordPress with get_pages
- the_date() not working
- How do I use WP_query with multiple post IDs?
- How to return number of found rows from SELECT query
- Query multiple custom post types in single loop