Title: Errors being thrown by plugin
Last modified: August 21, 2016

---

# Errors being thrown by plugin

 *  Resolved [simonhagger](https://wordpress.org/support/users/simonhagger/)
 * (@simonhagger)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/errors-being-thrown-by-plugin/)
 * Hi,
 * Shareaholic plugin is causing this “warning” error when I turn on debugging in
   wordpress.
 * Backtrace from warning ‘call_user_func_array() expects parameter 1 to be a valid
   callback, non-static method ShareaholicUtilities::admin_bar_extended() should
   not be called statically’ at /home/sitefolder/public_html/wp-includes/plugin.
   php 429:
 * /home/sitefolder/public_html/wp-includes/plugin.php 429 calling call_user_func_array()
   /
   home/sitefolder/public_html/wp-includes/admin-bar.php 84 calling do_action() 
   calling wp_admin_bar_render() /home/sitefolder/public_html/wp-includes/plugin.
   php 429 calling call_user_func_array() /home/sitefolder/public_html/wp-admin/
   admin-header.php 195 calling do_action() /home/sitefolder/public_html/wp-admin/
   plugin-editor.php 138 calling require_once()
 * I also note that the W3C Validator throws up 13 errors up for Shareaholic added
   html elements. They all appear to be meta elements that have been purposefully
   misnamed, but if you are a purist and want your site to validate etc, this is
   a concern.
 * Thanks,
 * Simon
 * [https://wordpress.org/plugins/shareaholic/](https://wordpress.org/plugins/shareaholic/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [simonhagger](https://wordpress.org/support/users/simonhagger/)
 * (@simonhagger)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/errors-being-thrown-by-plugin/#post-4588163)
 * I also get the following error on the actual site pages:
 * Backtrace from warning ‘Array to string conversion’ at /home/sitefolder/public_html/
   wp-content/plugins/shareaholic/public.php 137:
    /home/sitefolder/public_html/
   wp-content/plugins/shareaholic/public.php 94 calling draw_keywords_meta_tag()/
   home/sitefolder/public_html/wp-content/plugins/shareaholic/public.php 35 calling
   shareaholic_tags()
 * I fixed the former error by making the function at fault “admin_bar_extended()”
   called as a public static function in the utilities.php file.
 *  Thread Starter [simonhagger](https://wordpress.org/support/users/simonhagger/)
 * (@simonhagger)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/errors-being-thrown-by-plugin/#post-4588193)
 * I have made changes to the public.php file (around line 123) as follows to kill
   off the error:
 * $categoryString = ”;
 *  if($categories) {
    foreach($categories as $category) { if ($category->cat_name!
   = “Uncategorized”) { $output .= $separator.$category->cat_name; } } $categoryString
   = trim($output, $separator); }
 *  // Merge post tags and categories
    if ($keywords != ”){ $keywords .= ‘, ‘.$categoryString;}
   else { $keywords .= $categoryString; }
 * Please fold the above fixes into the plugin to consider this one resolved.
 *  Plugin Author [Shareaholic](https://wordpress.org/support/users/shareaholic/)
 * (@shareaholic)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/errors-being-thrown-by-plugin/#post-4588440)
 * [@simonhagger](https://wordpress.org/support/users/simonhagger/)
 * This fix for this has been released: [http://wordpress.org/plugins/shareaholic/changelog/](http://wordpress.org/plugins/shareaholic/changelog/)
 * Can you please upgrade and test if the issue is fixed for you? Thanks so much!
 *  Plugin Author [Shareaholic](https://wordpress.org/support/users/shareaholic/)
 * (@shareaholic)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/errors-being-thrown-by-plugin/#post-4588442)
 * ps – thanks so much for reporting it in the first place!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Errors being thrown by plugin’ is closed to new replies.

 * ![](https://ps.w.org/shareaholic/assets/icon-256x256.png?rev=1974462)
 * [Professional Social Sharing Buttons, Icons & Related Posts - Shareaholic](https://wordpress.org/plugins/shareaholic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shareaholic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shareaholic/)
 * [Active Topics](https://wordpress.org/support/plugin/shareaholic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shareaholic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shareaholic/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Shareaholic](https://wordpress.org/support/users/shareaholic/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/errors-being-thrown-by-plugin/#post-4588442)
 * Status: resolved