Last modified: 2014-09-29 02:02:52 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 T68505, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66505 - Flow Parsoid/Utils.php exceptions: "htmlParseEntityRef: no name" in createDom() for RedLInker
Flow Parsoid/Utils.php exceptions: "htmlParseEntityRef: no name" in createDom...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-11 23:26 UTC by spage
Modified: 2014-09-29 02:02 UTC (History)
6 users (show)

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


Attachments

Description spage 2014-06-11 23:26:00 UTC
In exception.log we're getting a dozen or so exceptions a day from Parsoid/Utils.php complaining about "htmlParseEntityRef: no name" when it tries to createDOM()

I think most or all of the calls are from Parsoid/Redlinker->apply() .  The exception originates from various URLs:  ?action=history on a Flow board, Special:Watchlist, Special:RecentChanges, also Special:RecentChangesLinked.

What's confusing me is:

a) Some of these URLs are not even Flow boards, e.g. the following log entry is from
https://www.mediawiki.org/wiki/Special:RecentChangesLinked/Wikimedia_engineering_report/2013/December/summary
Visiting this link generates an exception every time.
b) Do we need to parse redlinks when generating formatter lines?

I don't think any of these manifest something visible to the user, I guess the change line with the exception is skipped.

Sample exception.log entry follows. Many of the 115 or so exceptions in May and June have this stack trace

/wiki/Special:RecentChangesLinked/Wikimedia_engineering_report/2013/December/summary   Exception from line 198 of /usr/local/apache/common-local/php-1.24wmf8/extensions/Flow/includes/Parsoid/Utils.php: htmlParseEntityRef: no name

2014-06-11 22:03:30 mw1029 mediawikiwiki: [ffced3b6] /wiki/Special:RecentChangesLinked/Wikimedia_engineering_report/2013/December/summary   Exception from line 198 of /usr/local/apache/common-local/php-1.24wmf8/extensions/Flow/includes/Parsoid/Utils.php: htmlParseEntityRef: no name

htmlParseStartTag: invalid element name

#0 /usr/local/apache/common-local/php-1.24wmf8/extensions/Flow/includes/Parsoid/Redlinker.php(156): Flow\Parsoid\Utils::createDOM('<?xml encoding=...')
#1 /usr/local/apache/common-local/php-1.24wmf8/extensions/Flow/includes/Parsoid/Controller.php(65): Flow\Parsoid\Redlinker->apply('Topic title <br...', Object(Title))
#2 /usr/local/apache/common-local/php-1.24wmf8/extensions/Flow/includes/Parsoid/Controller.php(52): Flow\Parsoid\Controller->apply('Topic title <br...', Object(Title))
#3 /usr/local/apache/common-local/php-1.24wmf8/extensions/Flow/includes/Templating.php(462): Flow\Parsoid\Controller->getContent(Object(Flow\Model\PostRevision))
#4 /usr/local/apache/common-local/php-1.24wmf8/extensions/Flow/includes/Formatter/RevisionFormatter.php(83): Flow\Templating->getContent(Object(Flow\Model\PostRevision))
#5 /usr/local/apache/common-local/php-1.24wmf8/extensions/Flow/includes/Formatter/RecentChanges.php(26): Flow\Formatter\RevisionFormatter->formatApi(Object(Flow\Formatter\RecentChangesRow), Object(OldChangesList))
#6 /usr/local/apache/common-local/php-1.24wmf8/extensions/Flow/Hooks.php(194): Flow\Formatter\RecentChanges->format(Object(Flow\Formatter\RecentChangesRow), Object(OldChangesList))
#7 [internal function]: FlowHooks::onOldChangesListRecentChangesLine(Object(OldChangesList), '(<a href="/w/in...', Object(RecentChange), Array)
...
Comment 1 Quiddity 2014-09-29 02:02:52 UTC
On trello at https://trello.com/c/LzB8iuXS/

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


Navigation
Links