WordPress Enable Custom Error log |
X

Congrats, You are Subscribed to Receive Updates.

WordPress Enable Custom Error log


It’s good sometimes to record the possible errors from our theme or plugin, instead of showing them in the browser. We can log it into a separate file and check it. Let’s get started to implement it.

First open your wp-config_db.php And find this

define(‘WP_DEBUG’, false);

And replace it with below code

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

With the above code. first we are turning the debugging mode on and ask WordPress to log into a separate log. Ofcourse we need not display the errors in the browser. So we are disabling it.

With the above code snippet. You can get work here.

commenter

About Varadharaj V

The founder of Kvcodes, Varadharaj V is an ERP Analyst and a Web developer specializing in WordPress(WP), WP Theme development, WP Plugin development, Frontaccounting(FA), Sales, Purchases, Inventory, Ledgers, Payroll & HRM, CRM, FA Core Customization, PHP and Data Analyst. Database Management Advance Level

Comment Below

Your email address will not be published. Required fields are marked *

*

Current ye@r *

Menu

Sidebar