• Hi, when I click on the custom post type in the admin menu, I get the following error:
    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home/admin/domains/…/public_html/wp-includes/wp-db.php on line 1971

    I have around 4000 posts in this category. Giving more memory to WordPress didn’t fix the problem. Could someone help me with this?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try disabling your plugins one by one to see if any of them are using too much memory.

    Thread Starter lzfy84

    (@lzfy84)

    Thanks for the reply but that didn’t help unfortunately.

    You might also try switching to one of the default WordPress themes to see if it is your theme that is causing the problem.

    If that doesn’t fix it then you probably really do need to increase the memory size. The default is higher than the limit your error message shows which is odd.

    You can change the limit in the wp-config file using:

    define(‘WP_MEMORY_LIMIT’, ‘xxM’);

    where xx is the desired number of megabytes.

    You say you increased it. What is it set at now?

    Thread Starter lzfy84

    (@lzfy84)

    Hi Matt, I tried changing the theme to the default but that didn’t help. I increased the memory to 512MB but that also didn’t help. Finally I tried the W3 Cache plugin and that did help. Still it uses a lot of memory and loading the page (in the backend) is slow.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Allowed memory size exhausted’ is closed to new replies.