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.
- Create a new file named php.ini in your public_html folder.
- Enter the following code:
display_errors = off
- 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.