Jump to content

Topic on Manual talk:Tag extensions/en

I am trying to make a new Extension, but getting an error at line '$parser->getOutput()->addModules( 'ext.E.scripts' )';

1
Falcopragati (talkcontribs)

[f49fe744377fe4fd5f717ceb] /wiki/index.php/Main_Page Error from line 7 of C:\wamp64\www\wiki\extensions\E\E_body.php: Call to a member function addModules() on null

Backtrace:

#0 C:\wamp64\www\wiki\includes\Hooks.php(174): EC::onParserInit(Parser)

#1 C:\wamp64\www\wiki\includes\Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#2 C:\wamp64\www\wiki\includes\parser\Parser.php(369): Hooks::run(string, array)

#3 C:\wamp64\www\wiki\includes\cache\MessageCache.php(1190): Parser->firstCallInit()

#4 C:\wamp64\www\wiki\includes\cache\MessageCache.php(1166): MessageCache->getParser()

#5 C:\wamp64\www\wiki\includes\Message.php(1282): MessageCache->transform(string, boolean, LanguageEn, Title)

#6 C:\wamp64\www\wiki\includes\Message.php(883): Message->transformText(string)

#7 C:\wamp64\www\wiki\includes\Message.php(943): Message->toString(string)

#8 C:\wamp64\www\wiki\includes\OutputPage.php(924): Message->text()

#9 C:\wamp64\www\wiki\includes\OutputPage.php(971): OutputPage->setHTMLTitle(Message)

#10 C:\wamp64\www\wiki\includes\page\Article.php(622): OutputPage->setPageTitle(string)

#11 C:\wamp64\www\wiki\includes\actions\ViewAction.php(68): Article->view()

#12 C:\wamp64\www\wiki\includes\MediaWiki.php(501): ViewAction->show()

#13 C:\wamp64\www\wiki\includes\MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#14 C:\wamp64\www\wiki\includes\MediaWiki.php(860): MediaWiki->performRequest()

#15 C:\wamp64\www\wiki\includes\MediaWiki.php(517): MediaWiki->main()

#16 C:\wamp64\www\wiki\index.php(42): MediaWiki->run()

#17 {main}


MediaWiki version is 1.32.2

Reply to "I am trying to make a new Extension, but getting an error at line '$parser->getOutput()->addModules( 'ext.E.scripts' )';"