Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

SOLVED PHP Fatal Error

Discussion in 'EasyApache' started by Carl Beebe, Jun 2, 2017.

  1. Carl Beebe

    Carl Beebe Member

    Joined:
    Jun 1, 2017
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Colorado
    cPanel Access Level:
    DataCenter Provider
    One Of My Customers Is Getting The Error:
    Code:
    PHP Fatal error:  Cannot re-assign auto-global variable _POST in /home/************/public_html/music/index.php on line 9549
    According To My Research - This Is Because Of Depreciated PHP Commands - This Software The Customers Is Trying Uses & Recommends
    The Server Has 5.5 | 5.6 & 7.0 Installed - Default Version For Server Is 5.6

    Any Ideas
     
  2. sktest123

    sktest123 Well-Known Member

    Joined:
    Jan 31, 2017
    Messages:
    80
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    kochin
    cPanel Access Level:
    Root Administrator
    bit of coding stuff.friend, as this is what I got
    "
    Since PHP 5.4, you cannot use a superglobal as the parameter to a function, $_POST is globally accessible. So you don't have to pass to your function"
    Just vi file +9549 and try checking removing the POST variable.
    Have a backup of file first
     
    24x7serversecurity likes this.
  3. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    599
    Likes Received:
    92
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    You would need to use PHP 5.3 as apparently its functionality was removed in PHP 5.4

    PHP: Superglobals - Manual

    Just Google "Cannot re-assign auto-global variable _POST" there are a bunch of hits, some of which may help you to change the code up a bit to resolve it.
     
  4. Carl Beebe

    Carl Beebe Member

    Joined:
    Jun 1, 2017
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Colorado
    cPanel Access Level:
    DataCenter Provider
    What i figured - The customer understood and was able to find an alternative :) mod can close this thread
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see the issue is now addressed. Thank you for updating us with the outcome.
     
Loading...

Share This Page