Need help with the following: Warning: Cannot modify header information

Discussion in 'Programming' started by buckknife1, Jul 5, 2009.

  1. #1
    The domain is stocktradinginvestment[dot]net. When I attempt to go to stocktradinginvestment[dot]net/wp-admin, I get the following error:

    Warning: Cannot modify header information - headers already sent by (output started at /home1/bestgpts/public_html/stocktradinginvestment/wp-content/plugins/tubepress/classes/net/php/pear/HTTP/Request2/Adapter.class.php:297) in /home1/bestgpts/public_html/stocktradinginvestment/wp-includes/pluggable.php on line 850

    I have very little programming experience. I've tried to figure this out for 4 hours and am ready for some help.

    Can someone fix this for me?

    By the way, this is how the site should look:
    [​IMG]
     
    buckknife1, Jul 5, 2009 IP
  2. flakas123

    flakas123 Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Try using ob_start(); function or disable tubepress plugin. By the way, looks like plugin is not working properly
     
    flakas123, Jul 5, 2009 IP
  3. T-Law

    T-Law Well-Known Member

    Messages:
    45
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    As flakas123 said try to turn off tubepress via Admin->Plugins
     
    T-Law, Jul 5, 2009 IP
  4. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    First step would be to make sure that there is no blank line as the last line of the scripts.
     
    maestria, Jul 6, 2009 IP
  5. pubdomainshost.com

    pubdomainshost.com Peon

    Messages:
    1,277
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Are you using any template or did you make any changes to default pages?

    The error comes when there are "spaces" at the beginning or end of PHP pages, so make sure as suggested by maestria
    'NO SPACES HERE'<?php
    .
    .
    .
    . //all the code
    .
    .
    .
    .
    .
    ?>'OR HERE'
    
    Code (markup):
     
    pubdomainshost.com, Jul 6, 2009 IP
  6. ankit_frenz

    ankit_frenz Active Member

    Messages:
    1,111
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    63
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    as said..90% of such errors are caused when blank spaces are left at the start or end..remove them..
    thanks
     
    ankit_frenz, Jul 7, 2009 IP
  7. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    ob_start();

    at the top fixes such errors
     
    Bohra, Jul 7, 2009 IP