Page MenuHomePhabricator

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


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/ Invalid option target
#0 /html/ FormOptions->validateName(string, boolean)
#1 /html/ FormOptions->getValue(string)
#2 /html/ FormOptions->offsetGet(string)
#3 /html/ SpecialContributors->execute(string)
#4 /html/ SpecialPage->run(string)
#5 /html/ SpecialPageFactory::executePath(Title, RequestContext, boolean)
#6 /html/ SpecialPageFactory::capturePath(Title, RequestContext)
#7 /html/ Parser->braceSubstitution(array, PPFrame_DOM)
#8 /html/ PPFrame_DOM->expand(PPNode_DOM, integer)
#9 /html/ Parser->replaceVariables(string)
#10 /html/ Parser->internalParse(string)
#11 /html/ Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#12 /html/ WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
#13 /html/ AbstractContent->getParserOutput(Title, NULL, NULL, boolean)
#14 /html/ AbstractContent->getSecondaryDataUpdates(Title)
#15 /html/ RefreshLinks::fixLinksFromArticle(integer)
#16 /html/ RefreshLinks->doRefreshLinks(NULL, boolean, NULL, boolean, boolean)
#17 /html/ RefreshLinks->execute()
#18 /html/ RebuildAll->execute()
#19 /html/ require_once(string)
#20 {main}

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

Event Timeline

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:

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

I get the same error when include this text on any page

or this text on the page 'Article'.

running on MW 1.27.