Contact Us

Address: Ground Floor, Bablu Mension, Karigorpara Road, Amjhupi, Meherpur, 7101
Phone: +8801713902426

    How to Hide WordPress PHP Error Warning and Notifications July 17, 2016|

    How to Hide WordPress PHP Error Warning and Notifications

    It’s a very painful for a developer, while shows PHP warning and notification, this can show for plugin or theme or for WordPress. For newbie it’s very hard to solve that problem and client became angry, blame why you did this? Don’t worry here is Munshi brother to help you always. Just ask Munshi or read this post.

     

    How to Hide PHP Error Warning and Notification in WordPress

    There is a simple solution for it, just to move to wp-config.php and set WP-DEBUG to false or copy paste following code, this will not affect your site in any way.

    define('WP_DEBUG', false);

    Replace this to true one.

    Hope your problem will be solve, if not solved don’t worry. That problem not solved for your hosts. In this case you can replace that line from your wp-config.php file:

    define('WP_DEBUG', false);

    With this

    ini_set('log_errors','On');
    ini_set('display_errors','Off');
    ini_set('error_reporting', E_ALL );
    define('WP_DEBUG', false);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);

    Problem solved! If solved don’t forget to tell me Thank You 😀 if not solved please ask me here, I will try to solve that.

    Chat on WhatsApp
    >