1

I am using Magento 1.9.2. I need to disable warning and notice in a system.log file.

  • you have disable log via admin – Rakesh Donga Mar 18 at 10:48
0

You can modify error_reporting variable in php.ini as below

error_reporting = E_ALL & ~E_NOTICE

Also this link may help you

0

Try with below way

Add below code in index.php file.

error_reporting(E_ALL ^ E_NOTICE);

Take reference from Anna Völkl Answer.

Note : I did't test above code. it may help you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.