Topic on Extension talk:S5SlideShow

Call to a member function getHeadItems() on a non-object

7
SergeyL (talkcontribs)

Hi,

I get following error message when I click on "Slide Show" link:

Fatal error: Call to a member function getHeadItems() on a non-object in /webdocs/w/extensions/S5SlideShow/S5SlideShow.class.php on line 371

I have MediaWiki 1.20.2, PHP 5.3.21 (apache2handler). Any ideas?

Chaosconst (talkcontribs)

I have the same problem, any ideas? 1.20

VitaliyFilippov (talkcontribs)

Hm. Sorry for not answering again :) just turned liquidthreads notification option on at last...

The problem is very strange, it seems $this->getParser()->mOutput is NULL on your wiki while it can't be NULL in that position :)

And I've just tested the extension on 1.21 - it works... Maybe it's related to some other installed extension? What of them do you have installed?

218.101.54.25 (talkcontribs)

I'm getting the same problem on CentOS-6.4/64bit with mediawiki-1.21

httpd-2.2.15-29.el6.centos.x86_64 php-5.3.3-23.el6_4.x86_64

I have the following extensions in use

Auth_remoteuser.php S5SlideShow/ WYSIWYG/

VitaliyFilippov (talkcontribs)

I don't understand how can it be :) can you also post an example presentation on which the error is happening?

SergeyL (talkcontribs)

I got the latest (50ed226ab9) version of extension and it still does not work: Fatal error: Call to a member function getHeadItems() on a non-object in /proj/webdocs/wcdma-wrat/root/w/extensions/S5SlideShow/S5SlideShow.class.php on line 371

The example of presentation:

<slideshow>
;title: My Title
;author: Me
</slideshow>

== Slide 1 ==
* Text 1.1
* Text 1.2

== Slide 2 ==
* Text 2.1
* Text 2.2

The extension installed in the following way:

# Slides
// headingmark attribute default value
$egS5SlideHeadingMark = '';
// incmark attribute default value
$egS5SlideIncMark = '(step)';
require_once( "$IP/extensions/S5SlideShow/S5SlideShow.php" );

Versions: MediaWiki 1.20.2, PHP 5.3.21 (apache2handler)

In case if other installed extensions interfere, there are: Collection 1.6.1, Contribution Scores 1.16, External Links 1.1.1, Interwiki 2.2 20120425, Cite (f1b22c4), DynamicPageList 1.6, Graphviz 0.9.1 alpha, ImageMap (da17766), InputBox 0.1.4, MyVariables 3.1.1, ParserFunctions 1.4.1, pChart4mw 1.4.0, SyntaxHighlight 1.0.8.11, UML 0.4, SphinxSearch 0.8.5, Vector 0.3.0, WikiEditor 0.3.1.

VitaliyFilippov (talkcontribs)

OK, finally fixed it! Check out the last commit. It happened on clean installations and when no extension used $wgParser before its FirstCallInit. So S5 got a cloned StubObject instead of Parser.

Reply to "Call to a member function getHeadItems() on a non-object"