Fatal error when using ‘#’ character as an admin menu link title

I figured out the problem: You must specify an ID in the add_menu array if the title is not alphanumeric. So, this code worked: function my_admin_bar_menu() { global $wp_admin_bar; if ( !is_super_admin() || !is_admin_bar_showing() ) return; $wp_admin_bar->add_menu( array( ‘title’ => __( ‘#’), ‘id’ => __( ‘my_menu_item’), ‘href’ => admin_url(‘myurl.php’))); } add_action(‘admin_bar_menu’, ‘my_admin_bar_menu’); The only change … Read more

WP_Error message

One of the variables you’re trying to pass into wpdb::prepare is a WP_Error object. WP_Error‘s are like exceptions mixed with return codes: some functions in the WordPress API return WP_Error objects to tell you something went wrong (like get_terms). We’ll need to see more of your code to be more specific, but you can test … Read more

After being hacked Fatal error: Call to undefined function get_header() in 404.php on line 1

“Generally this happens when someone has mistakenly put index.php from a theme in the WP install folder, where it overwrites the index.php that is the main WordPress file. Download WordPress again, and take the one file, index.php from its root folder, replacing the file you now have as index.php It sometimes means someone has loaded … Read more

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