Last modified: 2014-02-12 23:53:51 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 T42734, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40734 - HtmlFormatter.php generating PHP warnings from line 190
HtmlFormatter.php generating PHP warnings from line 190
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-03 00:26 UTC by Arthur Richards
Modified: 2014-02-12 23:53 UTC (History)
10 users (show)

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


Attachments

Description Arthur Richards 2012-10-03 00:26:34 UTC
Reedy brought to our attention HtmlFormatter.php is generating lots of PHP warnings fron line 190. Looking at the logs, there are lots of things like:

Oct  3 00:13:09 10.0.8.22 apache2[25132]: PHP Warning:  DOMDocument::createElement() [<a href='domdocument.createelement'>domdocument.createelement</a>]: unterminated entity reference {}= \int_a^b f(x) \, dx - \int_c^b f(x) \, dx \\#012 &amp;{} = \int_a^b f(x) \, dx + \int_b^c f(x) \, dx#012\end{align}] in /usr/local/apache/common-local/php-1.20wmf12/extensions/MobileFrontend/includes/HtmlFormatter.php on line 190

and

Oct  3 00:14:28 10.0.11.55 apache2[9646]: PHP Warning:  DOMDocument::createElement() [<a href='domdocument.createelement'>domdocument.createelement</a>]: unterminated entity reference W Magnum hunting load with 500 gr. SP bullet by Hornady.] in /usr/local/apache/common-local/php-1.20wmf12/extensions/MobileFrontend/includes/HtmlFormatter.php on line 190

It seems likely related to the changes introduced in https://gerrit.wikimedia.org/r/#/c/23648/3

We traced the later warning to the following image:
http://commons.wikimedia.org/wiki/File:500SWHornady01.png
Which appears on:
https://en.wikipedia.org/wiki/.500_S%26W_Magnum

Perhaps exporting the article and doing some local testing with MobileFrontend beta with images disabled might help unearth the cause.

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


Navigation
Links