The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Register Global problem

Discussion in 'Workarounds and Optimization' started by calvinphanctt, May 2, 2012.

  1. calvinphanctt

    calvinphanctt Active Member

    Joined:
    Mar 27, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Dear all,

    When my WHM upgraded to the new PHP, one of my website got a warning like this, could you please tell me how to fix it ? I don't want to enable the register_global on.

    Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0


    Thank you very much.

    Sincerely,
    Calvin
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Did you try setting "session.bug_compat_warn = off" in your php.ini file as it suggests doing?
     
  3. calvinphanctt

    calvinphanctt Active Member

    Joined:
    Mar 27, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Hi Tristan,

    It doesn't tell me which files has "session.bug_compat_warn" . What should I do ?

    On the other hand, I just upload one file call php.ini which contained a line "register_globals = on", that message disappeared. However, sometime later when I came back, that warning message appears again ! And if I refresh that message will go away. What is wrong here ?

    Please help ! Thank you so much!

    Sincerely,
    Calvin
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The setting would go into either the global php.ini at /usr/local/lib/php.ini location or into the account php.ini if it is using suPHP and has one.
     
Loading...
Similar Threads - Register Global problem
  1. morrow95
    Replies:
    1
    Views:
    457

Share This Page