[🔴LIVE] How to Stop PHP warning messages and display only errors?

preview_player
Показать описание
Today in this video we will show you how to remove warning messages in PHP and display only error.

Follow the steps given below to remove warning messages in PHP and display only error on cPanel/WHM server:
Step::1 Login to WHM
Step::2 Navigate to Software
Step::3 Click on MultiPHP INI Editor
Step::4 Select the PHP version
Step::5 Jump on to the Editor Mode and press ctrl+f to find error_reporting
Step::6 The default value should be something like mentioned below
error_reporting= E_ALL & ~E_NOTICE
Step::7 In the same manner search for "log_error"
Step::8 The value should be something like mentioned below
log_errors=ON
Step::9 Again in the same manner search for "display_errors"
Step::10 The value should be something like mentioned below
display_errors=OFF
That's it!!!
If you are a normal cPanel user, then you can do this settings by following the steps given below:
Step::1 Login to cPanel
Step::2 Navigate to MultiPHP INI Editor in Software section
Step::3 Jump to the Editor Mode and select the location from the drop-down
Step::4 Repeat the same task mentioned above from Step No. 5
That's it!!!

If you have any query, feel free to let us know via the comments section below.
Рекомендации по теме