Jump to content

Topic on Extension talk:S5SlideShow/Flow

bug: call_user_func ?

2
VanGore (talkcontribs)

Hi folks,

first i want to say: great stuff, never .ppt-hell again;) But:

it worked for me only with

require_once( "$IP/extensions/S5SlideShow/S5SlideShow.php" );

instead with

require_once "/extensions/S5SlideShow/S5SlideShow.php";

and now I got this Warning

call_user_func(S5SlideShowHooks::Setup) [<a href='function.call-user-func'>function.call-user-func</a>]: Unable to call S5SlideShowHooks::Setup() in /var/www/mediawiki-1.15.4/w/includes/Setup.php on line 310

any idea? thx and greetz

VitaliyFilippov (talkcontribs)

Thanks about $IP, I've corrected the help page.

This is a strange error (PHP couldn't find a static function with "Class::method" syntax). What's your PHP version?

You can try to edit S5SlideShow.php and change

$wgExtensionFunctions[] = 'S5SlideShowHooks::Setup';

To

$wgExtensionFunctions[] = array('S5SlideShowHooks', 'Setup');

But I'm not sure it will work, as there are more places which use this syntax and which cannot be changed such easily ($wgHooks['xx'][] does not allow array('Class', 'function') syntax).

Reply to "bug: call_user_func ?"