Page MenuHomePhabricator

Category Page links say "Object id" (regression on PHP 5.1)
Closed, ResolvedPublic

Description

Using
MediaWiki 1.15alpha (r46458)
PHP 5.1.6 (apache2handler)
MySQL 5.0.45

Category Page link text displays "Object id NN" instead of the Article Title.

For example, in a Category with two members, you would see this output:

The following 2 pages are in this category, out of 2 total.
S

  • Object id #93

j

  • Object id #87

They are still alphabetized and link properly to the article, but the link text is missing/malformed


Version: 1.15.x
Severity: enhancement

Details

Reference
bz17207

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:30 PM
bzimport set Reference to bz17207.

Categories with Media: members do display those image thumbnails properly.

The Object id actually loops in the series (110,115,109)

  • Object id #110
  • Object id #115
  • Object id #109
  • Object id #110
  • Object id #115
  • Object id #109
  • Object id #110
  • Object id #115

(Category Links appear to be ok in the database, so it doesn't seem like a db corruption)

screenshot attached

shows looping series of "Object ids"

Attached:

screenshot-bug.png (587×600 px, 78 KB)

Regression... r46020 added a call to $wgContLang->convert() for category article listings, but mistakenly passed the title *object* instead of the text. In PHP 5.2, this was silently converted to a string, but in older versions this would interpolate as something useless like "Object id #110".

Fixed in r46489.

Thanks -- I so want to ditch this server and/or update PHP