• Resolved Ivijan-Stefan Stipic

    (@ivijanstefan)


    Hi,

    There is an error what I have using your plugin:

    Notice: A session had already been started - ignoring session_start() in /wp-content/plugins/slider-image/sliders.php on line 16
    

    Please check this because some other plugins also use session and can made some problems. I’m WP developer and fix on my side but you can avoid this notification adding one small code instand of just basic session_start().

    Fix is:

    if (strnatcmp(phpversion(),'5.4.0') >= 0)
    {
    	if (session_status() == PHP_SESSION_NONE) {
    		session_start();
    	}
    }
    else
    {
    	if(session_id() == '') {
    		session_start();
    	}
    }

    Otherwise, Plugin is great!

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Session problem – Session had already been started’ is closed to new replies.