Page MenuHomePhabricator

action=mobileview & page=Main_Page & sections=references returns HTTP 500 error
Closed, ResolvedPublic

Description

http://en.wikipedia.org/w/api.php?action=mobileview&format=json&page=Main_Page&sections=references - expect an empty resultset, get a 500 instead.

More problematic is http://en.wikipedia.org/w/api.php?action=mobileview&format=json&page=Main_Page&sections=0|references - expect to get contents of section 0, get a 500 instead.


Version: unspecified
Severity: normal

Details

Reference
bz37886

Event Timeline

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

The error message on the 500 is:

PHP fatal error in /usr/local/apache/common-local/php-1.20wmf5/extensions/MobileFrontend/api/ApiMobileView.php line 117:
Unsupported operand types

Mentioned in SAL (#wikimedia-operations) [2025-07-09T13:52:37Z] <zabe@deploy1003> Started scap sync-world: Backport for [[gerrit:1167574|ApiQueryCategoryMembers: Try stop forcing index in read new code (T399037)]], [[gerrit:1167573|ApiQueryCategoryMembers: Try stop forcing index in read new code (T399037)]], [[gerrit:1167570|Fix categorylinks read new code for excluding categories (T398861 T398939)]], [[gerrit:1167569|Fix categorylinks read new code for excluding categories (T39886

^ should not be linked here, task id got trimmed by irc