• I have only 256 MB in my shared host provider. I can’t change this.
    But I have other sites that have never had this error, only this one.
    I’m getting a lot of the same PHP errors:

    
    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20971576 bytes) in /home2/rogeriod/public_html/wordpress/iedc/wp-includes/wp-db.php on line 3158
    

    In my wp-config.php I already have:

    
    define('WP_MEMORY_LIMIT', '256M');
    

    As I said, this is the maximum allowed by my provider.

    How can I know what process/plugin/other things are causing this?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles. But a host that limits memory to 256M may be your biggest issue.

    Thread Starter rogeriodec

    (@rogeriodec)

    Thanks, but as I said, I have other websites on the same provider and only this site is presenting this problem.
    But from what you’re suggesting, there’s no more ‘surgical’ way to find who’s taking up more memory, is there?
    Because this error occurs at random times and I can’t keep turning off plugins or themes, because I can’t simulate when the problem will happen again, and the site is already online…
    It’s a shame that WordPress has this limitation…

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I wish there were an easier way, but this is the one that works the best.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allowed memory size exhausted in wp-db.php on line 3158’ is closed to new replies.