Jump to content

Topic on Extension talk:Semantic ACL

Internal Error: Call to a member function getOutput() on null

8
Summary by Sneakers-the-rat

Changes pushed after this comment were made resolved the problem :)

Sneakers-the-rat (talkcontribs)

Hello! On 1.39.1 with SMW installed, and I can't import the extension! I get this whenever I have it imported in my LocalSettings:

any tips?

8a0b56731bb396857f5ce546] /Main_Page Error: Call to a member function getOutput() on null

Backtrace:

from /var/www/html/mediawiki/extensions/SemanticACL/SemanticACL.class.php(464)
#0 /var/www/html/mediawiki/extensions/SemanticACL/SemanticACL.class.php(321): MediaWiki\Extension\SemanticACL\SemanticACL::disableCaching()
#1 /var/www/html/mediawiki/extensions/SemanticACL/SemanticACL.class.php(164): MediaWiki\Extension\SemanticACL\SemanticACL::hasPermission()
#2 /var/www/html/mediawiki/includes/HookContainer/HookContainer.php(338): MediaWiki\Extension\SemanticACL\SemanticACL::onBadImage()
#3 /var/www/html/mediawiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#4 /var/www/html/mediawiki/includes/HookContainer/HookRunner.php(914): MediaWiki\HookContainer\HookContainer->run()
#5 /var/www/html/mediawiki/includes/BadFileLookup.php(80): MediaWiki\HookContainer\HookRunner->onBadImage()
#6 /var/www/html/mediawiki/includes/parser/Parser.php(2699): MediaWiki\BadFileLookup->isBadFile()
#7 /var/www/html/mediawiki/includes/parser/Parser.php(2458): Parser->handleInternalLinks2()
#8 /var/www/html/mediawiki/includes/parser/Parser.php(1639): Parser->handleInternalLinks()
#9 /var/www/html/mediawiki/includes/parser/Parser.php(724): Parser->internalParse()
#10 /var/www/html/mediawiki/includes/content/WikitextContentHandler.php(301): Parser->parse()
#11 /var/www/html/mediawiki/includes/content/ContentHandler.php(1721): WikitextContentHandler->fillParserOutput()
#12 /var/www/html/mediawiki/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput()
#13 /var/www/html/mediawiki/includes/Revision/RenderedRevision.php(266): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput()
#14 /var/www/html/mediawiki/includes/Revision/RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#15 /var/www/html/mediawiki/includes/Revision/RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#16 /var/www/html/mediawiki/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#17 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#18 /var/www/html/mediawiki/includes/Revision/RenderedRevision.php(199): call_user_func()
#19 /var/www/html/mediawiki/includes/poolcounter/PoolWorkArticleView.php(91): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#20 /var/www/html/mediawiki/includes/poolcounter/PoolWorkArticleViewCurrent.php(97): PoolWorkArticleView->renderRevision()
#21 /var/www/html/mediawiki/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleViewCurrent->doWork()
#22 /var/www/html/mediawiki/includes/page/ParserOutputAccess.php(299): PoolCounterWork->execute()
#23 /var/www/html/mediawiki/includes/page/Article.php(714): MediaWiki\Page\ParserOutputAccess->getParserOutput()
#24 /var/www/html/mediawiki/includes/page/Article.php(528): Article->generateContentOutput()
#25 /var/www/html/mediawiki/includes/actions/ViewAction.php(78): Article->view()
#26 /var/www/html/mediawiki/includes/MediaWiki.php(542): ViewAction->show()
#27 /var/www/html/mediawiki/includes/MediaWiki.php(322): MediaWiki->performAction()
#28 /var/www/html/mediawiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
#29 /var/www/html/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()
#30 /var/www/html/mediawiki/index.php(50): MediaWiki->run()
#31 /var/www/html/mediawiki/index.php(46): wfIndexMain()
#32 {main}
Sneakers-the-rat (talkcontribs)
Tinss (talkcontribs)

The error was fixed on a commit dated march 24 but thanks for pointing it out.

Tinss (talkcontribs)

Hello ! A user has provided a fix which I need to commit to the codebase. I'll let you know when this is done. Don't hesitate to send me a reminder in two weeks or so in case I forget.

Tinss (talkcontribs)

The fix it seems is unrelated. Did you get the extension to work ? Is this a new install or an upgrade ?

Sneakers-the-rat (talkcontribs)

Sorry I haven't checked in, Thanks for the quick response! I will try it again tomorrow :)

Tinss (talkcontribs)

I'm working on upgrading my wiki to 1.40 and in the process I have fixed many a bug on the extension. The new code should be available in the next weeks.

Sneakers-the-rat (talkcontribs)