Pages

Thursday, September 27, 2012

How to hide the errorrs,warnings,notice and all kinds of things in Opencart?

We can hide the all kinds of issues by just following the below steps in opencart.

First of all search for the below line in index.php.

1.set_error_handler('error_handler');

2. And comment the line.

6 comments:

  1. It doesnt work for me. OC 1.5.2.1

    ReplyDelete
    Replies
    1. Try the below steps.
      1. Open the system folder in root folder of your opencart.
      2. Open the startup.php.
      3. Comment the below code
      error_reporting(E_ALL);
      4.Add ini_set('display_errors', 'Off'); in index.php
      5. Now refresh your cart page.

      Delete
  2. Replies
    1. Did u tried both the solutions what i mentioned?

      Delete
  3. Hi Ranjita,

    Let me know did you tried both solutions what i mentioned, and if your not find any solution by using above tips, let me know i will try other solution for you...

    ReplyDelete
  4. Go to index.php of your open cart and commant the set_error_handler('error_handler'); line

    ReplyDelete