WordPress running out of memory but no PHP Fatal error?

  • Unknown's avatar

    Hi all,

    I just faced an odd issue. I volunteer for a non-profit organization that runs a mid size WP site (as an e-learning platform, with WPML amongst many other plugins).

    When a particular post type was created (calling wp_insert_post), about 60+ hooks would be fired and after one of the wpml hooks was called ( icl_sw_filters_gettext), wp would shut down. I got this information by adding debug statements in WP_Hook.apply_filters. The PHP error log and WP debug log gave no hint about what could be going on.

    Knowing that wpml is a memory hog, I had the idea of incrementing the memory in wp-config.php by calling ini_set(‘memory_limit’, ‘256M’), and this solved the issue.

    With the context above, I’m trying to figure out why is it that WP did shut down for what it looks was a memory issue, while at the same time PHP did not log a Fatal error in the logs. Any hints about what could be the cause of this? Or do you think it might be a red herring?

    Thanks a lot!

  • Hi there,

    What is your site URL? Based off of what you are describing, and it appears you’re in the wrong forum. Your site is using the open source WordPress.org software and you need to seek help at these forums:

    https://wordpress.org/support/forums/

    These forums are for WordPress.com hosted sites only. If you want to know more about the differences between WordPress.com and WordPress.org you can read this document:

    WordPress.com vs. WordPress.org

    Thanks!

  • The topic ‘WordPress running out of memory but no PHP Fatal error?’ is closed to new replies.