Page MenuHomePhabricator

Flow: PHP Warning: DOMDocument::loadHTML(): Empty string supplied as input in /srv/mediawiki/extensions/Flow/includes/ParsoidUtils.php
Closed, ResolvedPublic

Description

On ee-flow server,
$ sudo tail -f /var/log/apache2/error.log

Load http://ee-flow.wmflabs.org/wiki/Sandbox and press spacebar or drag scrollbar to scroll down (and trigger infinite scrolling) Eventually error.log fills with dozens of these warnings:

[Wed Dec 11 04:42:21 2013] [error] [client 216.38.130.164] PHP Warning: DOMDocument::loadHTML(): Empty string supplied as input in /srv/mediawiki/extensions/Flow/includes/ParsoidUtils.php on line 186, referer: http://ee-flow.wmflabs.org/wiki/Sandbox

The page seems to work OK. This could be related to bug 57897 , though infinite scroll kept working until my browser got really sluggish.


Version: master
Severity: minor

Details

Reference
bz58310

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:41 AM
bzimport set Reference to bz58310.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/607, but people from the community are welcome to contribute here and in Gerrit.

Maybe gerrit I2d50c837e82 was the patch to review for this bug, Erik Bernhardson comments "it is not impossible to get that error in 58310, depends what was calling ParsoidUtils::DOMDocument"

When I scroll down in ee-flow Talk:Sandbox to around the topic 'Did the "A" go away?', I start getting big chunks of dozens of

HTTP: POST: http://localhost:8000/localhost/Sandbox

messages and this repeats when I next paginate more in. That looks like parsoid requests, presumably these are so old they require parsing from wikitext to HTML. But I scrolled all the way to "Just wanted to see what would happen, 2013-10-16 Wednesday" with no errors in the log, so yeah, fixed.