Turn off PHP Errors, Warnings and Notices

Post requests for technical support here.

Moderator: jfox015

Post Reply
User avatar
jfox015
Site Admin
Posts: 95
Joined: Fri Sep 03, 2010 12:27 pm

Turn off PHP Errors, Warnings and Notices

Post by jfox015 »

If you notice that the site is displaying PHP warnings and notices, these can (and should) be turned off. Sometimes during development the error reporting argument does not get changed, but it can be easily modified.

In the root of the fantasy site, "ootp_fantasy" in the distribution ZIPs, there is an "index.php" file. To tunr off PHP errors:
  • Download and open "index.php" in a HTML or Text editor
  • IN the PHP ERROR REPORTING LEVEL section, change the line:

    Code: Select all

    error_reporting(E_ALL);
    to

    Code: Select all

    error_reporting(0);
  • Save and overwrite the file on the server and PHP errors will disappear.
Post Reply