Error Message
-
When I have WP First Letter Avatar activated I’m getting the following error message (in my error logs) when logged into WP admin and viewing my blog –
Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
I can clear this error message by removing (or commenting out) the following code from WP First Letter Avatar –
add_action('admin_bar_menu', function(){ add_filter('get_avatar', array($this, 'set_userbar_avatar'), 10, 5); },0); add_action('wp_after_admin_bar_render', function(){ remove_filter('get_avatar', array($this, 'set_userbar_avatar'), 10); });
However by removing this code, every time I approve a new comment, my avatar (in the top right hand corner of admin bar) changes to a first letter avatar.
Any help would be appreciated.
https://www.ads-software.com/plugins/wp-first-letter-avatar/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Error Message’ is closed to new replies.