WordPress.org

Ready to get started?Download WordPress

Forums

Comment reply and i get this page? (2 posts)

  1. elfreakz
    Member
    Posted 6 years ago #

    whenever i reply on my blog, i receive a page saying on top of a column asking to type the Captcha.

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/freakzte/domains/freakzter.com/public_html/el/wp-content/plugins/SK2/sk2_second_chance.php:2) in /home/freakzte/domains/freakzter.com/public_html/el/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 83

    what does that mean? the page work perfectly, but i dont like to see the error lines on the page.

  2. reneade
    Member
    Posted 5 years ago #

    The sk2_second_chance.php includes wp-config.php after an output is already done. This causes "cannot modify header information" errors if other plugins need to send a header (for example to set a cookie) via the init- or plugins_loaded- hook of WordPress.

    Simple fix: In sk2_second_chance.php the config has to be loaded first. Insert a new line with the wp-config.php inclusion code at the very top of sk2_second_chance.php:
    <?php require_once('../../../wp-config.php'); ?>
    Than remove the old wp-config.php inclusion line (old line 3, now line 4):
    require_once('../../../wp-config.php');

    Regards,
    René

    http://www.rene-ade.de

Topic Closed

This topic has been closed to new replies.

About this Topic