php warning problem. please help.

Discussion in 'PHP' started by tradeya, Aug 28, 2008.

  1. #1
    I've got this warning on my website

    anyone has a solution to solve this problem? or any site that can give me the solution. thanks in advance.
     
    tradeya, Aug 28, 2008 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,905
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #2
    You need to work out which bit of your code is causing this... a fun debug job :)

    Then once you've found it you need to do a rewrite... I hope it's your code to start with and that you won't be unravelling someone else's coding efforts!
     
    sarahk, Aug 28, 2008 IP
    tradeya likes this.
  3. tradeya

    tradeya Notable Member

    Messages:
    5,729
    Likes Received:
    275
    Best Answers:
    0
    Trophy Points:
    230
    #3
    so bad i'm not a coder so i dont know how to find the problem and debug.T_T
    I guess I have to find solution from other source. thanks for your answer.
     
    tradeya, Aug 28, 2008 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    geeezz, there will be no rewrite on this one

    go to your php.ini file

    find this line
    session.bug_compat_warn

    then set it to off, then restart your localhost..

    ive experienced this warning.. its caused by your session variables..
    so if you plan to recode this one, check your session variable names.
     
    bartolay13, Aug 28, 2008 IP
  5. sarahk

    sarahk iTamer Staff

    Messages:
    28,905
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #5
    if it's on a local server.

    If it's using a shared host then a reboot won't be possible.

    tradeya - Where is the page throwing the error?
     
    sarahk, Aug 28, 2008 IP
  6. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #6
    then execute it with ini_set();
    probably if the site is live, you mustnt restart..

    but the main thing here is the warning.. change the .ini configuration and youll see.. even withouth restarting the host
     
    bartolay13, Aug 29, 2008 IP
  7. tradeya

    tradeya Notable Member

    Messages:
    5,729
    Likes Received:
    275
    Best Answers:
    0
    Trophy Points:
    230
    #7
    I'm on the shared hosting and dont know how to change the php.ini. the page that show the error is the main page everytime I open the site only for the first time. after refresh or go to other page, it will disappear.
     
    tradeya, Aug 29, 2008 IP