debug notice on my WordPress site [closed]

In your config.php check for define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG’, false ); If its true, you will see notices and warnings on site. This link might be useful http://codex.wordpress.org/WP_DEBUG. Also check this error by logging in and logging out. If you are using any plugin for debugging, you will see that notice message when … Read more

Why debug.log doesn’t work?

Based on this question: You have @ini_set(‘display_errors’, 0); – which will tell PHP (not WordPress) to stop displaying errors. WordPress requires errors to be turned on in order for it to pass them to the appropriate place. define(‘WP_DEBUG_DISPLAY’, false); or define(‘WP_DEBUG’, false); should take care of hiding them on the front end for you.

How do you get the docroot directory?

// server document directory $dir = $_SERVER[‘DOCUMENT_ROOT’]; // wordpress install directory $dir = ABSPATH; to include safely with wordpress add_action(‘plugins_loaded’, ‘load_a_file’); function load_a_file(){ if( is_admin() ){ $dir = $_SERVER[‘DOCUMENT_ROOT’]; include_once( $dir . ‘/file.php’ ); } }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)