If you see a PHP warning on your website then it could be caused by a number of reasons. The error message usually gives you a good description of the cause of the error which your website developer can fix, or you can Google search for a resolution.

You can disable the PHP error message from showing on your website using the steps below.

  1. Create a new file named php.ini in your public_html folder.
  2. Enter the following code:
    display_errors = off
  3. Save the file.

Once you have created the custom php.ini your website will no longer display the PHP errors. The errors will still be logged in a file called error_log, which can be found in the same directory as the PHP script causing the error.

Until the PHP error is fixed the error_log will continue to grow.