Fatal errors (memory allocation exhausted & buffer for php 5.2)

Hi guys :slight_smile:

Thanks in advance for your advice.
One of my sites I’m working on is getting continuous errors:

  1. VIA httpdocs/wp-includes/functions.php referencing the line referring to the following:
    /**
  • Flush all output buffers for PHP 5.2.
  • Make sure all output buffers are flushed before our singletons are destroyed.
  • @since 2.2.0
    */
    function wp_ob_end_flush_all() {
    $levels = ob_get_level();
    for ( $i = 0; $i < $levels; $i++ ) {
    ob_end_flush();
    }
    }
  1. Fatal error: Allowed memory size of 1xxx bytes exhausted

I’ve tried:

  • deactivating and reactivating plugins to see if there is a conflict
  • adding the following to the wp-config:
    define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
    define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );

No luck resolving just yet.

Hope you can help me.

Kind regards,

Claire :slight_smile:

Hi Claire,

Thanks for reaching out.
I have checked your website but didn’t the find issue the you described here. I would suggest you add the debug setup in the wp-config.php file to log the errors into the file name debug.log inside the wp-content folder.

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
//SET PHP INI DISPLAY ERROR FALSE
@ini_set( 'display_errors', 0 );

Please find the video that will help you to edit wp-config.php and add the above code: https://www.youtube.com/watch?v=3SDPTafEM8o
You can let us know errors logged into debud.log if you find any error that is related to our theme or theme bundled plugins.

Thanks

Hi Tristup,

I think I resolved it!
Found legacy authorisation headers affecting permalinks in wp-config file :grinning:

Keep you posted on how it goes but so far so good.

Cheers,

Claire

Hi Claire,

Glad to know that you are able to resolve the issue.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.