Always keep a parameter in URL?

You should not change the output you want to debug just to debug it, that’s a contradiction. 🙂 Use cookies for that. For example, put something like this into your wp-config.php: if ( ! empty ( $_GET[‘debug’] ) ) { if ( ‘on’ === $_GET[‘debug’] ) set_debug_mode( TRUE ); elseif ( ‘off’ === $_GET[‘debug’] ) … Read more

Enable WordPress Debug only for Admin

Do this: if(!function_exists(‘display_php_error_for_admin’)) { function display_php_error_for_admin() { $user_id = get_current_user_id(); $user_meta = get_userdata($user_id); $roles = $user_meta->roles; if(is_array($roles)){ if (in_array(“administrator”, $roles)) { error_reporting(0); @ini_set(‘display_errors’, 0); } }elseif ($roles == “administrator”){ error_reporting(0); @ini_set(‘display_errors’, 0); } } } add_action(‘init’,’display_php_error_for_admin’);

debugging wordpress

if you set WP_DEBUG to true in wp-config.php it should output all your errors. Alternatively, you can use something like Debug Bar or BlackBox to display the errors. How much you need should determine your solution.

The plugin generated xx characters of unexpected output. How to solve?

The issue appears to be in the formatting of your mp_calcs_display() function. I modified the function to use the heredoc syntax for your html output, and was then able to activate the plugin successfully. function mp_calcs_display() { $output = <<<HTML <form name=”calsinput” action=”” method=”post” id=”calsinput” ><h1> Process </h1> <p> operation type always robot </p> <br> … Read more