WordPress.org

Ready to get started?Download WordPress

Forums

Bug Library
[resolved] V1.0.1: Cannot Send Session Cache Limiter - Headers Already Sent. (4 posts)

  1. kayrugold
    Member
    Posted 3 years ago #

    Description:
    "Cannot send session cache limiter - headers already sent" error is displayed on "Line 2" in "submitnewissue.php". This is a conflict specific to the "EShop" plugin, and may or may not exist in other installations.

    Steps:
    NOTE: Other settings in "Admin [i.e. siteName/wp-admin/.] > Bug Library > Bug Library" do not apply to this bug.

    1. Download/Activate "EShop v6.2.8". [May or may not be relevant, but this is where the error occurred.]
    2. Download/Activate "Bug Library v1.0.1".
    3. Create a new page. [i.e. "Submit a Bug".]
    4. Edit the page. In the "HTML" section of the editor, type the shortcode "[bug-library]".
    5. Publish the page.
    6. Logout/Login to clear the Cache.
    7. View the page in the Browser.
    8. The "Report new issue" button should be visible on the page.
    9. Click the "Report new issue" button.

    Actual Results:
    The following error is displayed in the displayed lightbox -
    Cannot send session cache limiter - headers already sent; error begins in "submitnewissue.php" on "Line 2" and stops in "eshop.php" on "Line 48". [Well, that's kind of what it said.]

    Expected Results:
    No error is displayed.

    Workaround:
    Modify one file - the first one displayed in the error.
    css, page layout, and divs: /public_html/testing/wp-content/themes/my-buddypress/submitnewissue.php

    At the top of "submitnewissue.php", this is displayed:
    ---

    <head>
    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $blpluginpath; ?>stylesheet.css"/>
    </head>
    <body style='background-color: #FFFFFF;'>
    
    <?php
    	require_once('../../../wp-load.php');
    	require_once('bug-library.php');

    ---
    Replace all of that with this new arrangement. It's the same data, but it's been moved around a bit.
    ---

    <?php
        require_once('../../../wp-load.php');
        require_once('bug-library.php');
    
        echo "<head>";
        echo "<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"<?php echo $blpluginpath; ?>stylesheet.css\"/>";
        echo "</head>";
        echo "<body style='background-color: #FFFFFF;'>";

    ---

    Reload the page and click the "Report new issue" button.
    The issue should be resolved.

    OS: Windows 7 Professional, 64-bit
    Browser: Google Chrome 11
    Processor: AMD Athlon Dual-Core QL-62 2.0GHz
    Memory: 2.0GB

  2. Yannick Lefebvre
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for the feedback. I will rearrange that code following your suggestion in the next update.

  3. kayrugold
    Member
    Posted 3 years ago #

    Glad I could help. I think it could have been a lot easier though.

    <?php ?>
    
    <head>
    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $blpluginpath; ?>stylesheet.css"/>
    </head>
    <body style='background-color: #FFFFFF;'>
    
    <?php
    	require_once('../../../wp-load.php');
    	require_once('bug-library.php');

    That probably would have worked just as well. =). It was just missing the php tags at the top, seeing as how it's in a php file. It is possible it had a conflict with the eshop plugin, but it would have been caused by a method redeclaration if it did. I didn't know these things when I wrote this bug.

  4. vkzawa
    Member
    Posted 3 years ago #

    For me the issue seemed to be needing to call the require_once functions before the < head > tag.

    This is what the top of my submitnewissue.php looks like.

    <?php
    	require_once('../../../wp-load.php');
    	require_once('bug-library.php');
    ?>
    
    <head>
    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $blpluginpath; ?>stylesheet.css"/>
    </head>
    <body style='background-color: #FFFFFF;'>
    
    <?php
    	global $wpdb;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic