Page MenuHomePhabricator

Unhandled Exception ("RuntimeException"): Undefined offset: 5 when trying to access T16235
Closed, ResolvedPublicBUG REPORT

Description

I'm trying to view a (very old) T16235 but Phabricator only prints:

Unhandled Exception ("RuntimeException")	
Undefined offset: 5

This very task is e.g. cited by @3BRBS and here the title of that task and two tags are being printed, so Phabricator seems to know that this task exists, but refuses to display the same:

T16235 Template misses its parameter when containing a link with "=" (equal sign) character in the URL, or HTML attributes
tags: MediaWiki-TemplatesMediaWiki-Parser

The browser console prints:

T16235:1 GET https://phabricator.wikimedia.org/T16235 500
Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.      (MS Edge)
Some cookies are misusing the “SameSite“ attribute, so it won’t work as expected    (Mozilla Firefox)

Revisions and Commits

Event Timeline

Confirmed:

Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.
T16235:1 GET https://phabricator.wikimedia.org/T16235 500
Krinkle updated the task description. (Show Details)
Krinkle added a subscriber: 3BRBS.
Aklapper renamed this task from Unhandled Exception ("RuntimeException") when viewing T16235 to Unhandled Exception ("RuntimeException"): Undefined offset: 5 when trying to access T16235.Jun 6 2021, 5:46 PM
Aklapper added a subscriber: mmodell.

Mentioned in SAL (#wikimedia-operations) [2021-06-14T19:21:01Z] <twentyafterfour_> applying hotfix for T284397 and restarting php7.3-fpm on phab1001

Ok the task is now viewable (thanks to my hotfix try/catch block) but most of the comments fail to render. I'm not quite sure what's going on.

Aklapper changed the subtype of this task from "Task" to "Bug Report".Apr 25 2023, 10:14 AM

I could reproduce this locally on a (upstream) Phorge instance. This seems to be a faulty regex.
This is triggered for a {{{a}}} a . This is not triggered for {{{a}}} a or with a a {{{a}}} a .
I filed https://we.phorge.it/T15372 in upstream. Feel free take a look if you like starring at regexes.

Aklapper triaged this task as Low priority.
Aklapper moved this task from Reported Upstream to Patch proposed upstream on the Upstream board.
Aklapper changed the task status from Open to Stalled.Jun 12 2023, 2:09 AM
Aklapper moved this task from Patch proposed upstream to Patch merged upstream on the Upstream board.

I just merged https://we.phorge.it/D25415 in upstream which should fix this issue once also deployed in our installation.

[Move tasks resolved in upstream from #phabricator-next (as not every deployment will also pull an updated upstream) to the "Solved upstream" column on the Phabricator (Upstream) workboard]

This issue should be resolved in phabricator.wikimedia.org since 2024-03-19 thanks to brennen's deployment in T358610. Please reopen if you still experience this issue.