Last modified: 2014-02-12 23:53:44 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 T53840, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51840 - beta: removeChild() on a non-object in HtmlFormatter line 256
beta: removeChild() on a non-object in HtmlFormatter line 256
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Max Semenik
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-22 21:18 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-02-12 23:53 UTC (History)
9 users (show)

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


Attachments
stack trace (1.52 KB, text/plain)
2013-07-22 21:18 UTC, Antoine "hashar" Musso (WMF)
Details

Description Antoine "hashar" Musso (WMF) 2013-07-22 21:18:17 UTC
Created attachment 12924 [details]
stack trace

Spotted on beta while accessing: http://en.wikipedia.beta.wmflabs.org/wiki/San_Francisco



[22-Jul-2013 21:11:53] Fatal error: Call to a member function removeChild() on a non-object at /data/project/apache/common-local/php-master/extensions/MobileFrontend/includes/formatters/HtmlFormatter.php on line 256
Server: i-0000031a
Method: GET
URL: http://en.wikipedia.beta.wmflabs.org/wiki/San_Francisco
Cookie: enwikiUserID=25; enwikiUserName=MaxSem; centralnotice_bucket=1-4.2; centralauth_User=MaxSem; mfsecure=1; optin=1; mf_alpha=1
Backtrace:
#0 /data/project/apache/common-local/php-master/extensions/MobileFrontend/includes/formatters/HtmlFormatter.php(256): HtmlFormatter::removeElements()
#1 /data/project/apache/common-local/php-master/extensions/MobileFrontend/includes/formatters/HtmlFormatter.php(208): HtmlFormatter->removeElements(Array)
#2 /data/project/apache/common-local/php-master/extensions/MobileFrontend/includes/formatters/MobileFormatter.php(112): HtmlFormatter->filterContent()
#3 /data/project/apache/common-local/php-master/extensions/MobileFrontend/includes/MobileFrontend.body.php(48): MobileFormatter->filterContent()
#4 /data/project/apache/common-local/php-master/extensions/MobileFrontend/includes/skins/SkinMobile.php(44): ExtMobileFrontend->DOMParse(Object(OutputPage))
#5 /data/project/apache/common-local/php-master/includes/OutputPage.php(2071): SkinMobile->outputPage()
#6 /data/project/apache/common-local/php-master/includes/Wiki.php(572): OutputPage->output()
#7 /data/project/apache/common-local/php-master/includes/Wiki.php(458): MediaWiki->main()
#8 /data/project/apache/common-local/php-master/index.php(55): MediaWiki->run()
#9 /data/project/apache/common-local/w/index.php(3): require('/data/project/a...')
#10 {main}


To reproduce:

 On deployment-bastion:
 tail -f /data/project/logs/fatal.log

Then  curl -I http://en.m.wikipedia.beta.wmflabs.org/wiki/San_Francisco?bobobo

Headers:

HTTP/1.1 500 Internal Server Error
Server: Varnish
Content-Type: text/html; charset=utf-8
Content-Length: 2994
X-Varnish: 912598395, 1549110359
Via: 1.1 varnish, 1.1 varnish
X-Device: generic
Accept-Ranges: bytes
Date: Mon, 22 Jul 2013 21:05:54 GMT
Age: 1
Connection: keep-alive
X-Cache: deployment-cache-mobile01 miss (0), deployment-cache-mobile01 frontend miss (0)
Cache-Control: private, s-maxage=0, max-age=0, must-revalidate

Stacktrace is above :-)
Comment 1 Antoine "hashar" Musso (WMF) 2013-07-22 21:19:06 UTC
Sorry the URL to trigger the issue is http://en.m.wikipedia.beta.wmflabs.org/wiki/San_Francisco
Comment 2 Gerrit Notification Bot 2013-07-22 21:40:43 UTC
Change 75252 had a related patch set uploaded by MaxSem:
Bug 51840: removeChild() on a non-object in HtmlFormatter line 256

https://gerrit.wikimedia.org/r/75252
Comment 3 Gerrit Notification Bot 2013-07-22 21:46:17 UTC
Change 75252 merged by jenkins-bot:
Bug 51840: removeChild() on a non-object in HtmlFormatter line 256

https://gerrit.wikimedia.org/r/75252
Comment 4 Antoine "hashar" Musso (WMF) 2013-07-22 21:54:10 UTC
Seems to have fixed the issue at http://en.m.wikipedia.beta.wmflabs.org/wiki/San_Francisco :)
Comment 5 Antoine "hashar" Musso (WMF) 2013-07-23 19:10:10 UTC
bug 51694 was the bug Michelle reported last week and which is certainly related.

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


Navigation
Links