Answer the question
In order to leave comments, you need to log in
How to increase memory in Wordpress?
Hello, there is a script that works with a huge number of records in the database. For this project, we rented a VPS with 4GB of RAM.
The script is run from the WP admin and returns an error
E_ERROR Error in file �wp-db.php� at line 1889: Allowed memory size of 268435456 bytes exhausted (tried to allocate 80 bytes)
define('WP_MEMORY_LIMIT', '512M');
define('WP_MAX_MEMORY_LIMIT', '512M');
Answer the question
In order to leave comments, you need to log in
It was in WordPress, it was in one of the PHP files, not in the config, there was a memory_limit, this file is very easy to find by searching for files with the *.php mask
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question