• The plugin generated 251 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    [26-May-2017 xx:07:35 UTC] PHP Warning: ini_set(): A session is active. You cannot change the session module’s ini settings at this time in /home/xxx/public_html/xxx/wp-content/plugins/wp-native-php-sessions/pantheon-sessions.php on line 115

    Only happens when activating the plugin. Tried disabling all other plugins and then activate only this one, but still get this message.

    The plugin seems to work anyway, sessions are working and and the session id / ip is being stored in the database table wp_pantheon_sessions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Thanks for the report, @smftech.

    Does this issue reproduce in a stock WordPress install with no other plugins active?

    And, in the WordPress install you first noticed this in, were you already using PHP sessions in some other form?

    I don’t think I was getting this warning before… I started getting this too, FYI. Stock WP4.8 multisite. It looks like “Stachethemes Event Calendar” plugin triggers it, in case this helps anyone.

    Thread Starter smftech

    (@smftech)

    Don’t know about stock WordPress, but yes I am using sessions in functions.php like this:

    ini_set(‘display_errors’, 1);
    ini_set(‘session.cookie_lifetime’, 60 * 60 * 24 * 365 * 5);
    ini_set(‘session.gc_maxlifetime’, 60 * 60 * 24 * 365 * 5);

    if( session_status() == PHP_SESSION_NONE )
    {
    session_start();
    }

    Storm Rockwell

    (@stormrockwell)

    I can confirm this happens to me too. The only thing in my wp-content with ini_set is woocommerce.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘The plugin generated 251 characters of unexpected output during activation.’ is closed to new replies.