Info
- 4 posts
- 3 voices
- Started 2 years ago by Arturo
- Latest reply from Arturo
- This topic is resolved
support forum plugin error
-
- Posted 2 years ago #
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
-
- Posted 2 years ago #
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:
http://bbpress.org/plugins/topic/support-forum/page/3/#post-1565 -
- Posted 2 years ago #
I think maybe it's a bug? The code at line 657 is:
return sprintf('<img src="%ssupport-forum-%s.png" alt="[%s]" title="[%s]" style="vertical-align:top; margin-right:0.3em; width:14px; height:14px; border-width:0;" />%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.phpLikewise, 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.
-
- Posted 2 years ago #
thanks john i've resolved!
-
You must log in to post.