Skip to:
Content
Pages
Categories
Search
Top
Bottom

support forum plugin error


  • Arturo
    Participant

    @arturo84

    i’ve installed on bbpress 1.0 rc-3 the fantastic plugin support forum version 3.0.6 but for sticky-important topic i’ve this error:

    Warning: sprintf() [function.sprintf]: Too few arguments in /…/html/forums/my-plugins/support-forum/support-forum.php on line 657

    Warning: sprintf() [function.sprintf]: Too few arguments in /…/html/forums/my-plugins/support-forum/support-forum.php on line 680

    any idea why i’ve this problem? thanks for all the help

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s a known bug with the plugin. There’s a patch posted on the plugin page, but it looks like it hasn’t been incorporated into the official distribution:

    https://bbpress.org/plugins/topic/support-forum/page/3/#post-1565

    I think maybe it’s a bug? The code at line 657 is:

    return sprintf('<img src="$1%ssupport-forum-$2%s.png" alt="[$3%s]" title="[$3%s]" style="vertical-align:top; margin-right:0.3em; width:14px; height:14px; border-width:0;" />$4%s', $this->iconURI, 'sticky', __('sticky', 'support-forum'),$label);

    Instead of $ 1 % (added spaces so it’d render on bbpress) shouldn’t it be %1$? c.f. http://us3.php.net/manual/en/function.sprintf.php

    Likewise, replace all the other integers, e.g. it should be %2$.

    Oddly, this function was changed in 3.0.2.

    You can reverse the $ and % signs here and in the other function at line 680.


    Arturo
    Participant

    @arturo84

    thanks john i’ve resolved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar