• Resolved simonhagger

    (@simonhagger)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    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

    (@shareaholic)

    @simonhagger

    This fix for this has been released: 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

    (@shareaholic)

    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.