I am getting the following error when the plugin active

Notice: A session had already been started – ignoring session_start() in public_html/wp-content/plugins/comments-plus/lib/class_wdcp_model.php on line 44

Notice: Undefined index: wdcp_google_user_cache in public_html/wp-content/plugins/comments-plus/lib/class_wdcp_model.php on line 63

Notice: Undefined index: wdcp_twitter_user_cache in home/agenc391/public_html/wp-content/plugins/comments-plus/lib/class_wdcp_model.php on line 87

Can anyone tell me how to fix

  • aecnu
    • WP Unicorn

    Greetings portal_gamer_mag,

    Thank you for this great question and bringing this significant issue to our attention.

    Please tell us about what we are working with there:

    WordPress 3.4.2?

    MultiSite or Solo?

    BuddyPress 1.6.1?

    Theme name?

    Please advise.

    Cheers, Joe

  • maxaud
    • The Crimson Coder

    The below should stop your errors from showing up but they still shouldn’t be present to begin with. It looks like there may be an issue with sessions and the user settings for the plugin.

    On line 44 of public_html/wp-content/plugins/comments-plus/lib/class_wdcp_model.php, change this..


    to either this..

    if ( session_id() == '' ) {

    or this…


    On line 63 of the same file change this..

    $this->_google_user_cache = $_SESSION['wdcp_google_user_cache'];

    to this…

    $this->_google_user_cache = @$_SESSION['wdcp_google_user_cache'];

    On line 87 of the same file change this..

    } else if ($_SESSION['wdcp_twitter_user_cache']['access_token']) {

    to this…

    } else if (@$_SESSION['wdcp_twitter_user_cache']['access_token']) {

  • Tom Eagles
    • Syntax Hero

    Greetings and thanks for being a great community member.

    We haven’t heard from you on this one for long and I am doing a regular followup to see if there is still something we can assist you on this thread.

    Just to manage the support issues more efficiently, I am marking this thread as resolved for now however this is not being done to avoid your questions in any way.

    Please feel free to mark this is “Not resolved” in case you have further questions and we would be back on it.

    Thanks a lot for being with WPMU DEV.



    Sales &Support

    Did you know we offer FREE lifetime memberships? Click here to learn more.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.