Page MenuHomePhabricator

Error when using script rebuildall.php: "includes/FormOptions.php: Invalid option target"
Open, Needs TriagePublic

Description

I use the latest (master) version of Contributors as of 30.7.2016. When using the script rebuildall.php I receive this error:

# php rebuildall.php

...

** Rebuilding links tables -- this can take a long time. It should be safe to abort via ctrl+C if you get bored.
Refreshing redirects table.
Starting from page_id 1 of 27.
Refreshing links tables.
Starting from page_id 1 of 27.
[4d08bc635c2269fae3cb5dae] [no req]   MWException from line 141 of /html/domain.de/mediawiki/includes/FormOptions.php: Invalid option target
Backtrace:
#0 /html/domain.de/mediawiki/includes/FormOptions.php(176): FormOptions->validateName(string, boolean)
#1 /html/domain.de/mediawiki/includes/FormOptions.php(391): FormOptions->getValue(string)
#2 /html/domain.de/mediawiki/extensions/Contributors/includes/SpecialContributors.php(35): FormOptions->offsetGet(string)
#3 /html/domain.de/mediawiki/includes/specialpage/SpecialPage.php(479): SpecialContributors->execute(string)
#4 /html/domain.de/mediawiki/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(string)
#5 /html/domain.de/mediawiki/includes/specialpage/SpecialPageFactory.php(628): SpecialPageFactory::executePath(Title, RequestContext, boolean)
#6 /html/domain.de/mediawiki/includes/parser/Parser.php(3622): SpecialPageFactory::capturePath(Title, RequestContext)
#7 /html/domain.de/mediawiki/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPFrame_DOM)
#8 /html/domain.de/mediawiki/includes/parser/Parser.php(3366): PPFrame_DOM->expand(PPNode_DOM, integer)
#9 /html/domain.de/mediawiki/includes/parser/Parser.php(1248): Parser->replaceVariables(string)
#10 /html/domain.de/mediawiki/includes/parser/Parser.php(446): Parser->internalParse(string)
#11 /html/domain.de/mediawiki/includes/content/WikitextContent.php(331): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#12 /html/domain.de/mediawiki/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
#13 /html/domain.de/mediawiki/includes/content/AbstractContent.php(230): AbstractContent->getParserOutput(Title, NULL, NULL, boolean)
#14 /html/domain.de/mediawiki/maintenance/refreshLinks.php(240): AbstractContent->getSecondaryDataUpdates(Title)
#15 /html/domain.de/mediawiki/maintenance/refreshLinks.php(170): RefreshLinks::fixLinksFromArticle(integer)
#16 /html/domain.de/mediawiki/maintenance/refreshLinks.php(58): RefreshLinks->doRefreshLinks(NULL, boolean, NULL, boolean, boolean)
#17 /html/domain.de/mediawiki/maintenance/rebuildall.php(60): RefreshLinks->execute()
#18 /html/domain.de/mediawiki/maintenance/doMaintenance.php(103): RebuildAll->execute()
#19 /html/domain.de/mediawiki/maintenance/rebuildall.php(67): require_once(string)
#20 {main}

As soon as I disable the extension Contributors, rebuildall.php finishes without any error.

Event Timeline

Stefahn created this task.Jul 30 2016, 3:20 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 30 2016, 3:20 PM
Addshore moved this task from Unsorted 💣 to Next on the User-Addshore board.
Addshore added a subscriber: Addshore.

Hi @Stefahn!

I don't appear to be able to reproduce this at all!
Could you tell me the exact version of the Contributors extension that you are using?

I use the git master version as of 30.7.2016. On Special:Version it says " 2.0 (0b989e6) 00:16, 5. Mai 2016".

I forgot to mention that I use the include option on some pages, that means {{Special:Contributors/Some Page}}.

After checking out that exact version of the extension and also using an inclusion the special page on a page I still can't reproduce the issue.

What version of mediawiki core are you using?

I use MediaWiki 1.27.0.
And I also use SMW with SemanticForms (don't know if the "FormOptions" in the error message has something to do with SemanticForms).

Full version info of my wiki: http://marketingunited.org/wiki/Spezial:Version

Aklapper renamed this task from Error when using script rebuildall.php to Error when using script rebuildall.php: "includes/FormOptions.php: Invalid option target".Sep 11 2016, 7:53 PM
Berbo added a subscriber: Berbo.Nov 4 2016, 5:52 PM

I get the same error when include this text on any page
{{Special:Contributors/{{FULLPAGENAME}}}}

or this text on the page 'Article'.
{{Special:Contributors/Article}}

running on MW 1.27.

Addshore moved this task from Next to Unsorted 💣 on the User-Addshore board.Aug 22 2017, 3:22 PM