Answer ( 1 )

  1. To Fix PHP Errors and Warnings in WordPress, you need to edit a line of code from the wp-config.php file.
    Open the wp-config.php file with editing permission, find the following line:
    define(‘WP_DEBUG’, true);
    Now make the WP_DEBUG into false from true like the below code:
    define(‘WP_DEBUG’, false);
    If it’s already false, remove the line and add the below code:
    ini_set(‘display_errors’,’Off’);
    ini_set(‘error_reporting’, E_ALL );
    define(‘WP_DEBUG’, false);
    define(‘WP_DEBUG_DISPLAY’, false);
    Save the file and the errors will not show up again.
     

    The code is also available here:
    https://gist.github.com/wpjafor/04c6943920adab79336f9e0ea06c03d0

Leave an answer

Choose from here the video type.

Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs Ex: 'sdUUx5FdySs'.

What is the capital of USA? ( Washington )