Page MenuHomePhabricator

Index was out of range
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Load [[DJ-Kicks: Nicolette]] or [[Eskobar]] with genfixes

What happens?:

  • Receive a popup window stating "Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index"

What should have happened instead?:

  • AWB should process the articles properly (or give a more detailed error)

I do not see the word "index" in the article source code

Software version
AWB 6.3.2.1 SVN 12900

Other information:
Here's the log, in case it helps:

object: ApiEdit::HttpPost
Time: 2025-02-17 00:45:52.264
Message: https://en.wikipedia.org/w/api.php?format=xml&action=query&meta=tokens&type=login

object: API::Edit meta/tokens
Time: 2025-02-17 00:45:52.382
Message: <?xml version="1.0"?><api batchcomplete=""><query><tokens logintoken="84bb524741aca5d40bdfb847861c6c6567b2cd10+\" /></query></api>

object: ApiEdit::HttpPost
Time: 2025-02-17 00:45:52.393
Message: https://en.wikipedia.org/w/api.php?format=xml&action=login

object: API::Edit action/login
Time: 2025-02-17 00:45:53.201
Message: <?xml version="1.0"?><api><warnings><main xml:space="preserve">Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt; for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application.</main><login xml:space="preserve">Main-account login via "action=login" is deprecated and may stop working without warning. To continue login with "action=login", see [[Special:BotPasswords]]. To safely continue using main-account login, see "action=clientlogin".</login></warnings><login result="Success" lguserid="11555324" lgusername="GoingBatty" /></api>

object: ApiEdit::CheckForErrors warnings
Time: 2025-02-17 00:45:53.212
Message: Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application.
Main-account login via "action=login" is deprecated and may stop working without warning. To continue login with "action=login", see [[Special:BotPasswords]]. To safely continue using main-account login, see "action=clientlogin".


object: ApiEdit::HttpPost
Time: 2025-02-17 00:45:53.214
Message: https://en.wikipedia.org/w/api.php?format=xml&action=query

object: Tools::GetHTML
Time: 2025-02-17 00:45:53.359
Message: https://en.wikipedia.org/w/index.php?title=Wikipedia:AutoWikiBrowser/CheckPage/VersionJSON&action=raw

object: ApiEdit::HttpGet
Time: 2025-02-17 00:45:53.517
Message: https://en.wikipedia.org/w/index.php?title=Project:AutoWikiBrowser/CheckPageJSON&action=raw

object: ApiEdit::HttpGet
Time: 2025-02-17 00:45:53.698
Message: https://en.wikipedia.org/w/index.php?title=Project:AutoWikiBrowser/Config&action=raw

object: ApiEdit::HttpGet
Time: 2025-02-17 00:45:53.838
Message: https://en.wikipedia.org/w/api.php?action=query&format=xml&&list=categorymembers&cmtitle=Category:Articles+with+underscores+in+the+title&cmlimit=max&rawcontinue=1

object: MainForm
Time: 2025-02-17 00:45:53.853
Message: Starting

object: ApiEdit::HttpGet
Time: 2025-02-17 00:45:53.888
Message: https://en.wikipedia.org/w/api.php?format=xml&action=query&converttitles=&prop=info%7crevisions&meta=tokens%7cuserinfo%7cnotifications&type=csrf%7cwatch%7crollback&intoken=edit%7cprotect%7cdelete%7cmove%7cwatch&titles=DJ-Kicks%3a+Nicolette&inprop=protection%7cwatched%7cdisplaytitle&rvprop=content%7ctimestamp&curtimestamp=&assert=user&uiprop=hasmsg&notprop=count

object: ApiEdit::CheckForErrors warnings
Time: 2025-02-17 00:45:54.093
Message: Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application.
Unrecognized parameter: intoken.
Because "rvslots" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used.


object: ApiEdit::HttpGet
Time: 2025-02-17 00:45:54.125
Message: https://en.wikipedia.org/w/api.php?format=xml&action=query&converttitles=&prop=info%7crevisions&meta=tokens%7cuserinfo%7cnotifications&type=csrf%7cwatch%7crollback&intoken=edit%7cprotect%7cdelete%7cmove%7cwatch&titles=Project%3aAutoWikiBrowser%2fTemplate+redirects&inprop=protection%7cwatched%7cdisplaytitle&rvprop=content%7ctimestamp&curtimestamp=&redirects=&assert=user&uiprop=hasmsg&notprop=count

object: ApiEdit::CheckForErrors warnings
Time: 2025-02-17 00:45:54.391
Message: Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application.
Unrecognized parameter: intoken.
Because "rvslots" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used.


object: ApiEdit::HttpGet
Time: 2025-02-17 00:45:54.444
Message: https://en.wikipedia.org/w/api.php?format=xml&action=query&converttitles=&prop=info%7crevisions&meta=tokens%7cuserinfo%7cnotifications&type=csrf%7cwatch%7crollback&intoken=edit%7cprotect%7cdelete%7cmove%7cwatch&titles=Project%3aAutoWikiBrowser%2fDated+templates&inprop=protection%7cwatched%7cdisplaytitle&rvprop=content%7ctimestamp&curtimestamp=&redirects=&assert=user&uiprop=hasmsg&notprop=count

object: ApiEdit::CheckForErrors warnings
Time: 2025-02-17 00:45:54.605
Message: Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application.
Unrecognized parameter: intoken.
Because "rvslots" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used.


object: ApiEdit::HttpGet
Time: 2025-02-17 00:45:54.625
Message: https://en.wikipedia.org/w/api.php?format=xml&action=query&converttitles=&prop=info%7crevisions&meta=tokens%7cuserinfo%7cnotifications&type=csrf%7cwatch%7crollback&intoken=edit%7cprotect%7cdelete%7cmove%7cwatch&titles=Project%3aAutoWikiBrowser%2fRename+template+parameters&inprop=protection%7cwatched%7cdisplaytitle&rvprop=content%7ctimestamp&curtimestamp=&redirects=&assert=user&uiprop=hasmsg&notprop=count

object: ApiEdit::CheckForErrors warnings
Time: 2025-02-17 00:45:54.870
Message: Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application.
Unrecognized parameter: intoken.
Because "rvslots" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used.


object: HandleKnownExceptions
Time: 2025-02-17 00:45:55.081
Message:    at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at WikiFunctions.Parse.HideText.<>c__DisplayClass22_0.<AddBack>b__0(Match m)
   at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat)
   at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)
   at WikiFunctions.Parse.HideText.AddBack(String articleText, List`1 Tokens)
   at WikiFunctions.Parse.HideText.AddBack(String articleText)
   at WikiFunctions.Parse.MetaDataSorter.SortZerothSection(String zerothSection)
   at WikiFunctions.Parse.MetaDataSorter.Sort(String articleText, String articleTitle, Boolean fixOptionalWhitespace)
   at WikiFunctions.Parse.Parsers.SortMetaData(String articleText, String articleTitle, Boolean fixOptionalWhitespace)
   at WikiFunctions.Parse.Parsers.AddMissingReflist(String articleText)
   at WikiFunctions.Article.PerformGeneralFixes(Parsers parsers, HideText removeText, ISkipOptions skip, Boolean replaceReferenceTags, Boolean restrictDefaultsortAddition, Boolean noMOSComplianceFixes)
   at AutoWikiBrowser.MainForm.ProcessPage(Article theArticle, Boolean mainProcess)

object: MainForm
Time: 2025-02-17 00:47:04.352
Message: Starting

object: ApiEdit::HttpGet
Time: 2025-02-17 00:47:04.369
Message: https://en.wikipedia.org/w/api.php?format=xml&action=query&converttitles=&prop=info%7crevisions&meta=tokens%7cuserinfo%7cnotifications&type=csrf%7cwatch%7crollback&intoken=edit%7cprotect%7cdelete%7cmove%7cwatch&titles=Eskobar&inprop=protection%7cwatched%7cdisplaytitle&rvprop=content%7ctimestamp&curtimestamp=&assert=user&uiprop=hasmsg&notprop=count

object: ApiEdit::CheckForErrors warnings
Time: 2025-02-17 00:47:04.487
Message: Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application.
Unrecognized parameter: intoken.
Because "rvslots" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used.


object: HandleKnownExceptions
Time: 2025-02-17 00:47:04.555
Message:    at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at WikiFunctions.Parse.HideText.<>c__DisplayClass22_0.<AddBack>b__0(Match m)
   at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat)
   at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)
   at WikiFunctions.Parse.HideText.AddBack(String articleText, List`1 Tokens)
   at WikiFunctions.Parse.HideText.AddBack(String articleText)
   at WikiFunctions.Parse.MetaDataSorter.SortZerothSection(String zerothSection)
   at WikiFunctions.Parse.MetaDataSorter.Sort(String articleText, String articleTitle, Boolean fixOptionalWhitespace)
   at WikiFunctions.Parse.Parsers.SortMetaData(String articleText, String articleTitle, Boolean fixOptionalWhitespace)
   at WikiFunctions.Parse.Parsers.AddMissingReflist(String articleText)
   at WikiFunctions.Article.PerformGeneralFixes(Parsers parsers, HideText removeText, ISkipOptions skip, Boolean replaceReferenceTags, Boolean restrictDefaultsortAddition, Boolean noMOSComplianceFixes)
   at AutoWikiBrowser.MainForm.ProcessPage(Article theArticle, Boolean mainProcess)