receiving error related to memory allocation on wp-db.php
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 1048576 bytes) in /home/name/public_html/wp-includes/wp-db.php on line 2344 i tried to increase memory limit in php.ini wordpress memory also. but no solution.
Sorry to hear you are having issues with memory in your WordPress site. If you have increased the memory in the php.ini file, then you will want to ensure the php.ini settings are recursive throughout your site. If you have done that and see that the memory is still being used up, you can increase the WordPress override by placing a line at the top of the wp_config.php file. An example is below:
define( 'WP_MAX_MEMORY_LIMIT' , '512M' );
If that still doesn't work, then there is likely something else in the site causing this. If you can reliably duplicate the error with specific steps, you can test by disabling plugins one at a time and then attempting to trigger the error. Once the error does not trigger, the last plugin you disabled would be the cause.
You can try a different theme as well, just as a test, to see if that has something to do with it.
The reason we are now looking at theme and plugins is because this is not normal behavior with the WordPress default.
Like this Question? Tweet
Related ArticlesHow to Upload Media to WordPress
WordPress - Changing the Site URL and Home Settings (2)
How to Migrate Your WordPress Site from DreamHost to InMotion
How to Migrate a WordPress site from WP Engine
How to Migrate from Wordpress.com
You are NOT logged in. You can still browse our Support Center.
To participate within our Community Support Forum: