Page MenuHomeMiraheze

[Bug] Caught MWException when page content includes a specific section link on hkrailwiki
Open, NormalPublic

Description

This issue solely affects hkrailwiki (hkrail.miraheze.org).

Steps to reproduce bug

  • Head to the sandbox page or just any page on hkrailwiki.
  • Type specifically (a) [[#雙島式月台]], (b) [[#雙島式月台|any random text]], (c) [[#雙島式月台|雙島式月台]], (d) [[#雙島式月台|三軌雙島式月台]] in separate attempts (do not submit them together) and try to preview or submit.

Expected result
All four section pipelinks are rendered as expected.

Observed result
Ever since the late December recovery of the wiki from the original database, (a) and (b) functions as expected (control tests), (c) renders as an empty HTML link (anchor <a> tag), and (d) results in an MWException (example exception ID - db3495b4d981e944aef2becf), disallowing viewing, saving or previewing of any content with that exact section pipelink.
On saving or previewing (d), the browser sometimes logs an HTTP 500 error, showing that it's likely to be an internal error.

Additional information
Per conversation with @Agent_Isai on Discord, this could be a server-side cache problem. This might explain why the import after resetting hkrailwiki had unexpected behaviour, with correct page history but mismatched source code that doesn't even exist in the import but from the deleted November wiki, as discussed in T10173 and in DMs with @Universal_Omega.


I set the priority of the task to Normal as it isn't a minor bug that doesn't actually affect usage and operations but doesn't affect the entire Miraheze site.

Event Timeline

LuciferianThomas created this task.
Reception123 added a subscriber: Reception123.

Closing as duplicate of the initial task as there doesn't seem to be any indication that the issue isn't fully related to that task, so no need to have two tasks for the same underlying issue in this case.

@Reception123 would you mind if I keep this open as a subtask of the the other task? The issue is not exactly related to the other cache problems on my wiki, the others self-resolve and this persists til today.

PCRE needs to be compiled with --enable-unicode-properties in order for MediaWiki to function
from /srv/mediawiki/w/includes/parser/Parser.php(2183)
#0 /srv/mediawiki/w/includes/parser/Parser.php(1641): Parser->handleExternalLinks(string)
#1 /srv/mediawiki/w/includes/parser/Parser.php(724): Parser->internalParse(string)
#2 /srv/mediawiki/w/includes/content/WikitextContentHandler.php(301): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#3 /srv/mediawiki/w/includes/content/ContentHandler.php(1721): WikitextContentHandler->fillParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, ParserOutput)
#4 /srv/mediawiki/w/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#5 /srv/mediawiki/w/includes/EditPage.php(4531): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(WikitextContent, Title, NULL, ParserOptions)
#6 /srv/mediawiki/w/includes/EditPage.php(4434): EditPage->doPreviewParse(WikitextContent)
#7 /srv/mediawiki/w/includes/EditPage.php(3143): EditPage->getPreviewText()
#8 /srv/mediawiki/w/includes/EditPage.php(778): EditPage->showEditForm()
#9 /srv/mediawiki/w/includes/actions/EditAction.php(73): EditPage->edit()
#10 /srv/mediawiki/w/includes/actions/SubmitAction.php(38): EditAction->show()
#11 /srv/mediawiki/w/includes/MediaWiki.php(542): SubmitAction->show()
#12 /srv/mediawiki/w/includes/MediaWiki.php(322): MediaWiki->performAction(Article, Title)
#13 /srv/mediawiki/w/includes/MediaWiki.php(904): MediaWiki->performRequest()
#14 /srv/mediawiki/w/includes/MediaWiki.php(562): MediaWiki->main()
#15 /srv/mediawiki/w/index.php(50): MediaWiki->run()
#16 /srv/mediawiki/w/index.php(46): wfIndexMain()
#17 {main}
LuciferianThomas lowered the priority of this task from Normal to Low.Fri, Jan 27, 15:19

Changed priority to Low in favour of T10384: Resetting hkrail.miraheze.org, to be closed if issue no longer persists after reset.

OrangeStar raised the priority of this task from Low to Normal.Fri, Jan 27, 15:39