Warning messages on page after application installation.

Sometimes you might see warning messages at the top of a PHP application you install. Usually this occurs because the application's PHP code conflicts with the server's PHP settings.

Add this block of code to your .htaccess file:
# PHP error handling for development servers
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_reporting -1
php_value log_errors_max_len 0
php_value error_log /home/YOURPATHNAME/public_html/PHP_errors.log

Another method to suppress the warnings is to put the following code at the top of the offending page (after the <?php tag). If the warnings occur in multiple pages of your application, try putting the code in the header.php file (if applicable).
error_reporting(E_ERROR | E_PARSE);



  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

cPanel User Documentation

Extensive help documentation for cPanel users:Official cPanel User Documentation

Powered by WHMCompleteSolution