Page MenuHomePhabricator

New pages feed redirect loading problem (PageTriageUtil.php: Call to a member function getPrefixedDBkey() on null)
Closed, InvalidPublicBUG REPORT

Description

Steps to Reproduce:

  • Try to load redirects from oldest in the New Pages feed.
  • Alternatively, try using the NPP curation tool to scroll through the redirects feed; it will snag at a certain point when going through redirects created on November 22, 2019. The rest of the day can still be accessed by starting at the newest article created that day and going backward.

Note: I've reviewed all of the accessible redirects created on November 22, so it may be necessary to start your search on November 23 if using the backwards method.

Actual Results:

  • If accessing from the new pages feed, the refresh request will hang
  • If accessing from the NPP curation tool, the "next page" button simply won't work (and won't change colors either)

Expected Results:
New pages queue loads normally

Note: I found a similar (identical?) issue a few days ago (a page wouldn't load that was created on 11/15, IIRC). My guess would be that there is some weird formatting in the titles of these pages that's breaking the new page feed.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I think your guess is probably correct. https://en.wikipedia.org/w/api.php?action=pagetriagelist&format=json&namespace=0&showunreviewed=1&showredirs=1&dir=oldestfirst&limit=20 at the time of writing throws an exception after a short wait:

[XfvRggpAMDgAALIgt@MAAAAO] /w/api.php?action=pagetriagelist&format=json&namespace=0&showunreviewed=1&showredirs=1&dir=oldestfirst&limit=20   Error from line 327 of /srv/mediawiki/php-1.35.0-wmf.11/extensions/PageTriage/includes/PageTriageUtil.php: Call to a member function getPrefixedDBkey() on null

In this case the offending line tries to call TitleFormatter::getPrefixedDBKey() on a Title object, that apparently is null. This might be a bug in TitleFormatter and/or Title, or maybe even corrupt data?

Logstash: https://logstash.wikimedia.org/goto/0494a4ad8d18842d045114793bd8e139

I think I've come across another instance of this bug occurring in the redirects created on November 26.

Novem_Linguae renamed this task from New pages feed redirect loading problem to New pages feed redirect loading problem (PageTriageUtil.php: Call to a member function getPrefixedDBkey() on null).Sep 29 2022, 3:42 AM
MPGuy2824 subscribed.

Per a Talk page discussion with Rosguill, they haven't faced this problem again. Closing for now. Please re-open the ticket, if this issue is faced again.