• Hello,

    I’m getting this warning recently. maybe since last update:

    Warning: session_start(): Cannot start session when headers already sent in /…/wp-content/plugins/visual-portfolio/classes/class-get-portfolio.php on line 25

    Any clues?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Just an idea, not sure if it will work.

    You can add

    function vpf_session_start() {
        if ( ! is_admin() && ! session_id() ) {
            ob_start(); // this line
            session_start();
        }
    }

    at line 25 of this file (through child theme)

    Plugin Author nK

    (@nko)

    Hey @dsl225.

    This line added in the plugin a long time ago. Maybe it is conflicted with 3rd-party plugins? I can test it, but I need to know with which plugin it is conflicted.

    Regards, nK.

    Thread Starter John

    (@dsl225)

    @nko thanks, will try to identify the plugin by de-activating one by one and will let you know.

    Thread Starter John

    (@dsl225)

    @nko I checked with plugins but can’t find any conflict at this point, sorry.

    This site is a clone of another one which doesn’t get such warnings.
    I installed some new plugins at this one that gets the warning and de-activated all new ones, one by one, and still getting the warning.

    In that case, might be related to the server as they are different hosts with different configs.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PH warning’ is closed to new replies.