InMotion Hosting Support Center

receiving error related to memory allocation on wp-db.php

Category: Wordpress

n/a Points
2015-12-11 12:04 am EST

Hits: 1,672
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.

You must login before you can ask a follow up question.

You must login before you can submit an answer.



43,761 Points
2015-12-11 11:32 am EST

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.

Kindest Regards,
Scott M

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!