Topic on Extension talk:Social Sidebar

72.211.252.69 (talkcontribs)

ERROR!

Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method SocialSideBar::FBTwitter() should not be called statically in C:\xampp\htdocs\includes\Hooks.php on line 158

Localsettings code:

 $wgFBImage = "/extensions/SocialSideBar/facebook.png";
 $wgFBLink  = "http://www.facebook.com/pages/Cole-Stuff/162794417087497";
 $wgTwitterImage = "/extensions/SocialSideBar/twitter.png";
 $wgTwitterLink  = "http://www.twitter.com/colejohnson66";
Joa ds (talkcontribs)

Which MediaWiki version are you using?

72.211.252.69 (talkcontribs)

1.17

72.211.252.69 (talkcontribs)

Updated to 0.2, now this:

Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method SocialSideBar::FBTwitter() should not be called statically in C:\xampp\htdocs\includes\Hooks.php on line 158

Localsettings.php

require_once("$IP/extensions/SocialSideBar/SocialSideBar.php");
$wgFB  = "http://www.facebook.com/pages/Cole-Stuff/162794417087497";
$wgTwitter  = "colejohnson66";
Joa ds (talkcontribs)

That is really strange.

I am testing all my extensions on 15.5 and have no problems, so not really sure what is causing it.

Could you try to add 'static' to the FBTwitter function (in SocialSideBar.php): So it should look like

// Class & functions
class SocialSideBar {
	static function FBTwitter( $skin, &$bar ) {
....

And let me know if this fixes it

Reply to "ERROR!"