mmavideos
Member
Posted 7 months ago #
I have loaded a new theme on http://mixedmartialartvideos.com.
I am getting this error message:
Fatal error: Out of memory (allocated 46661632) (tried to allocate 40 bytes) in /home/mmavideo/public_html/wp-includes/wp-db.php on line 814
Please advise on how to fix
This is the drawback of the current low-query method I use in my plugin. If you have a lot of posts and/or a low memory limit configuration, then loading all of the posts in a variable can cause this error.
The solution is to increase your memory limit, if possible.
Coding up an optional alternate (but larger number of queries) method for fetching all posts is on my long todo list.