Installed Ok, Ad Visible, but php error is cropping up on frontpage

Discussion in 'Co-op Advertising Network' started by aspardeshi, May 8, 2008.

  1. #1
    I have installed it Ok as it seems, Ad is appearing but the following php error is appearing on my frontpage

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/indiacon/public_html/indiacubecart/index.php:4) in /home/indiacon/public_html/indiacubecart/includes/sessionStart.inc.php on line 40

    Please advise on this error.

    Your early reply is highly appreciated.
     
    aspardeshi, May 8, 2008 IP
  2. keemuph

    keemuph Peon

    Messages:
    585
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    are you sure your index.php file is not encrypted?
     
    keemuph, May 9, 2008 IP
  3. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try adding this to your ad_network111.php file at the top just under <?php

    error_reporting(E_ALL & ~E_NOTICE);
     
    hasen, May 11, 2008 IP
  4. aspardeshi

    aspardeshi Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you for your efforts extended.

    I do not have file ad_network111.php but have ad_network_250.php. I added the code just below <?php but still the error is coming. Please help. The index.php is not encrypted of my frontpage. I can see the program properly in index.php. Is it an error or an warning(which will not affect the ad network in any way) If it is an warning, is it any way to put it off ?

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/indiacon/public_html/indiacubecart/index.php:5) in /home/indiacon/public_html/indiacubecart/includes/sessionStart.inc.php on line 40

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/indiacon/public_html/indiacubecart/index.php:5) in /home/indiacon/public_html/indiacubecart/includes/sessionStart.inc.php on line 40

    Warning: Cannot modify header information - headers already sent by (output started at /home/indiacon/public_html/indiacubecart/index.php:5) in /home/indiacon/public_html/indiacubecart/includes/session.inc.php on line 96
     
    aspardeshi, May 11, 2008 IP
  5. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes I know you don't have file ad_network_111.php but since I had no way of knowing what number you would have I just put that and assumed you would know what I was referring to. So now you are getting a different error to before?
     
    hasen, May 13, 2008 IP
  6. aspardeshi

    aspardeshi Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Sir,

    The error is same, please advise if you have any solution to suppress this error.
     
    aspardeshi, May 13, 2008 IP
  7. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I think you're pasting us the wrong errors then. Your first error is about a cache limiter and the second error you've pasted is about cookies..Doesn't seem the same to me.
     
    hasen, May 14, 2008 IP
  8. aspardeshi

    aspardeshi Peon

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Dear All,

    Thank you all for your valuable time extended. I got the query resolved by removing <? and ?> from your php code and putting the remaining code after the beginning of the new below given <? in the index.php !

    In short the code was relocated to below lines.

    Thank you once again,
     
    aspardeshi, May 15, 2008 IP
  9. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I didn't put <? and ?> on my php code...I just said put error_reporting(E_ALL & ~E_NOTICE); under the <?php in your ad_network_250.php file. Anyway I'm glad you've solved it in the end.
     
    hasen, May 15, 2008 IP