Prosper 202 Header Error

by btyiw
6 replies
I was attempting to clear out my test clicks under the Administration menu and I'm receiving an error every time I attempt to clear out the clicks.

Warning: Cannot modify header information - headers already sent by (output started at /home2/*/public_html/tracking/202-config/template.php:9) in /home2/*/public_html/tracking/202-account/administration.php on line 34

Anyone know what's causing this issue and how do I go by fixing it?
#202 #error #header #prosper
  • Profile picture of the author ALicenseToCode
    Yes, that means there's white space before your <?php tag somewhere in your code. When you attempt to modify the headers (They communicate to your browser what page they're loading and what to load) after the page has begun loading, you cannot modify them since they've already been sent. Luckily this is an easy error to fix.

    My best recommendation is to go and open /tracking/202-account/administration.php and look at the top of the file. Highlight everything before the first <?php tag, if there's any white space just delete it. If that doesn't fix the problem it's going to be a bit trickier to find, but essentially you just have to find everything on that page that is being loaded and find any type of html or white space output before the header() function is called.

    If you try this and it doesn't work let me know and I can help you fix it, I use Prosper a lot and they don't have the best code in some places lol.
    {{ DiscussionBoard.errors[6890437].message }}
  • Profile picture of the author btyiw
    I'm still running into the issue and the line being pointed out in template.php is
    <?php echo $title;?>

    And the line for administration.php
    header('location: /202-account/administration.php');
    {{ DiscussionBoard.errors[6890484].message }}
    • Profile picture of the author ALicenseToCode
      Originally Posted by btyiw View Post

      I'm still running into the issue and the line being pointed out in template.php is
      <?php echo ;?>

      And the line for administration.php
      header('location: /202-account/administration.php');
      <?php echo $title;?> this code starts an output to the browser that won't allow the header() function to work properly. Try commenting it out by changing it to:

      <?php //echo $title;?>

      Anything that does an echo or print before the header() function is called will also make it not work.
      {{ DiscussionBoard.errors[6890762].message }}
      • Profile picture of the author btyiw
        Originally Posted by ALicenseToCode View Post

        <?php echo ;?> this code starts an output to the browser that won't allow the header() function to work properly. Try commenting it out by changing it to:

        <?php //echo ;?>

        Anything that does an echo or print before the header() function is called will also make it not work.
        Error still there, even with change
        {{ DiscussionBoard.errors[6890839].message }}
  • Profile picture of the author btyiw
    I removed that line completely then tried again, and the error gave this line in template.php

    <meta name="MSSmartTagsPreventParsing" content="TRUE"/>
    {{ DiscussionBoard.errors[6890850].message }}
  • Profile picture of the author btyiw
    Anyone else can help with this?
    {{ DiscussionBoard.errors[6896567].message }}

Trending Topics