Joomla Blog & Tutorials!

Blog & Tutorials

Welcome to Joomla Blog & Tutorials!

Joomla Blog & Tutorials is your number one source for animated tutorials and Joomla help. On our site you will find up to date information gathered from around the web to help you on your quest to master the Content Management System - Joomla !

17 November 2012

How to disable notice and warning in PHP.ini file ?!

Rate this item
(7 votes)

[] How to hide PHP Notice & Warning Messages. The PHP notice errors are frustrating and you are tired of seeing them when you are working on your scripts. And several times, we have received some questions about the warnings or Notices from our members when they are using our extensions:

Hi admin,
When i install Ga Articles Slideshow module,it gives me this error:
Warning: preg_match() [function.preg-match]: Compilation failed: unmatched parentheses at offset 1 in /homepages/41/d415327526/htdocs/febowary/modules/mod_ga_articlesslideshow/helper.php on line 195
Help. Thanks

Sometime if you are working on some php code and fed up of Warnings or Notices in the browser then easy way out is to disable the settings in PHP.ini file. This is a configuration file which is loaded each time you start your PHP+Apache. It was doing everything it was supposed to but at the same time it was throwing errors and warning which doesn’t make sense and were harmful for the application.

Here is the method to change the settings in PHP.ini file:

Open PH.ini file.

In this file search for the phrase “error_reporting = E_ALL” ,[without inverted commas]

Here replace this with “error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING“

(Show all errors, except for notices and coding standards warnings)

Make sure you change the real enabled part of this , there are certain other examples given in the file.

Restart your PHP + Apache

Now, no warnings and messages will appear in the browser.

Share this item:


Keep up-to-date with our awesome products and news. Enter your e-mail and subscribe to our newsletter. - A product of Vina Web Solutions company.