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!

PHP - Strict Standards: Non-static method

Discussion in 'General Discussion' started by postcd, Apr 27, 2014.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    691
    Likes Received:
    14
    Trophy Points:
    68
    Hello,

    it is several cpanel account where i see errors on websites saying something about non static method...

    Please how can i from WHM or CentOS command line set to ignore strict errors by default for all accounts?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,342
    Likes Received:
    58
    Trophy Points:
    178
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    In your global php.ini file ( /usr/local/lib/php.ini ) you could set the error_reporting:

    error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
    - shows all except for notices and deprecation warnings

    error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
    - shows all except for notices and strict standards warnings

    error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
    - shows all except for notices, deprecation warnings and strict standards warnings

    After modifying error_reporting, you will probably need to restart apache ( /scripts/restartsrv_apache )
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    postcd likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Note that you could also modify the "error_reporting" setting using the "Advanced Mode" via "WHM Home » Service Configuration » PHP Configuration Editor".

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice