Last modified: 2014-08-15 08:44:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71348, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69348 - <ref> <gallery> invalid </gallery></ref> creates MWException on Wikipedia but not on Wikibooks
<ref> <gallery> invalid </gallery></ref> creates MWException on Wikipedia but...
Status: NEW
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
wmf-deployment
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: UNIQ
  Show dependency treegraph
 
Reported: 2014-08-09 14:58 UTC by Liangent
Modified: 2014-08-15 08:44 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Liangent 2014-08-09 14:58:52 UTC
Both on production site and beta.wmflabs.org.

Exception from line 77 of /srv/common-local/php-master/includes/parser/StripState.php: Invalid marker: UNIQ37d9b76ed39af705-gallery-00000003-QINU

Backtrace:

#0 /srv/common-local/php-master/includes/parser/StripState.php(66): StripState->addItem(string, string, string)
#1 /srv/common-local/php-master/includes/parser/Parser.php(4164): StripState->addGeneral(string, string)
#2 /srv/common-local/php-master/includes/parser/Preprocessor_DOM.php(1258): Parser->extensionSubstitution(array, PPFrame_DOM)
#3 /srv/common-local/php-master/includes/parser/Parser.php(3246): PPFrame_DOM->expand(DOMElement, integer)
#4 /srv/common-local/php-master/includes/parser/Parser.php(1239): Parser->replaceVariables(string)
#5 /srv/common-local/php-master/includes/parser/Parser.php(612): Parser->internalParse(string, boolean, boolean)
#6 /srv/common-local/php-master/extensions/Cite/Cite_body.php(670): Parser->recursiveTagParse(string)
#7 /srv/common-local/php-master/extensions/Cite/Cite_body.php(1071): Cite->referencesFormat(string)
#8 /srv/common-local/php-master/includes/Hooks.php(206): Cite->checkRefsNoReferences(boolean, Parser, string)
#9 /srv/common-local/php-master/includes/GlobalFunctions.php(3975): Hooks::run(string, array, NULL)
#10 /srv/common-local/php-master/includes/parser/Parser.php(406): wfRunHooks(string, array)
#11 /srv/common-local/php-master/includes/StubObject.php(105): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#12 /srv/common-local/php-master/includes/StubObject.php(125): StubObject->_call(string, array)
#13 /srv/common-local/php-master/includes/content/WikitextContent.php(327): StubObject->__call(string, array)
#14 /srv/common-local/php-master/includes/content/AbstractContent.php(486): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#15 /srv/common-local/php-master/includes/poolcounter/PoolWorkArticleView.php(139): AbstractContent->getParserOutput(Title, integer, ParserOptions)
#16 /srv/common-local/php-master/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#17 /srv/common-local/php-master/includes/page/Article.php(688): PoolCounterWork->execute()
#18 /srv/common-local/php-master/includes/actions/ViewAction.php(44): Article->view()
#19 /srv/common-local/php-master/includes/MediaWiki.php(439): ViewAction->show()
#20 /srv/common-local/php-master/includes/MediaWiki.php(307): MediaWiki->performAction(Article, Title)
#21 /srv/common-local/php-master/includes/MediaWiki.php(609): MediaWiki->performRequest()
#22 /srv/common-local/php-master/includes/MediaWiki.php(460): MediaWiki->main()
#23 /srv/common-local/php-master/index.php(46): MediaWiki->run()
#24 /srv/common-local/w/index.php(3): include(string)
#25 {main}
Comment 1 Liangent 2014-08-09 15:02:03 UTC
It's also observed that disabling tracking category 'broken-file-category' (setting it to '-' or an invalid title) workarounds this bug.
Comment 2 Andre Klapper 2014-08-10 15:47:54 UTC
Liangent: So this is about literally writing
    <ref> <gallery> invalid </gallery></ref>
as wikitext?
Comment 3 Liangent 2014-08-10 15:57:48 UTC
(In reply to Andre Klapper from comment #2)
> Liangent: So this is about literally writing
>     <ref> <gallery> invalid </gallery></ref>
> as wikitext?

Yup. Trying to save this as the content of a wiki page triggers a MWException.

If such a revision has been saved previously (for example when "invalid" was a valid file name),

* action=purge the page makes it not viewable (MWException)
* trying to view the problematic revision with oldid= specified works (even if it's the current revision)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links