Page MenuHomePhabricator

Setting two workboard columns in one transaction: "RuntimeException: Undefined variable: board_phid"
Open, Stalled, LowPublic

Description

Feed Story Failed to Render: https://phabricator.wikimedia.org/feed/7518304033810082643/

Error message: RuntimeException: Undefined variable: board_phid

(You can also reproduce it via viewing https://phabricator.wikimedia.org/p/A_smart_kitten/ without log in)

Event Timeline

For the record, the action in question (that the feed throws an exception while trying to display) was the result of the following maniphest.edit query:

transactions:

[
    {
        "type": "column",
        "value": [
            "PHID-PCOL-i6lu2ua63vsucw7fpg35",
            "PHID-PCOL-rmssofo6rf4znhlokxmc"
        ]
    }
]

objectIdentifier: 397499


For what it's worth, the action seems to display okay in the task itself: T397499#10936074

I tried to reproduce this locally, but it works correctly. @Aklapper do you have access to the error log, and/or can you get a stack trace?

Aklapper renamed this task from Feed Story Failed to Render (PhabricatorApplicationTransactionFeedStory) to Setting two workboard columns in one transaction: "RuntimeException: Undefined variable: board_phid".Jun 23 2025, 6:28 PM
Aklapper updated the task description. (Show Details)

I cannot reproduce reliably.
It blows up in the line $board_phid = $column->getProjectPHID() in ManiphestEditEngine::buildCardResponse().
That private method is only called by ManiphestEditEngine::newEditResponse() when $is_card is true after

$response_type = $request->getStr('responseType');
$is_card = ($response_type === 'card');

Not sure when that is included, maybe having corresponding workboard(s) opened or such?

Aklapper changed the task status from Open to Stalled.Sep 4 2025, 11:12 AM
Aklapper triaged this task as Low priority.

I fail to reproduce. Plus https://phabricator.wikimedia.org/feed/7518304033810082643/ renders correctly nowadays...

https://web.archive.org/web/20241203083345/https://secure.phabricator.com/T12123 says:

Transaction entry in DB ended up being something like this:
[{"columnPHID":"PHID-PCOL-zbrzdpvgmni3dxgblbgx","boardPHID":"PHID-PROJ-sk62b2ohwmhykjcusyam","fromColumnPHIDs":{"PHID-PCOL-euxtyti3j644vh6rsna6":"PHID-PCOL-euxtyti3j644vh6rsna6"}},
{"columnPHID":"PHID-PCOL-vrjokvtds3qw2cezu6h7","boardPHID":"PHID-PROJ-64ywfx3axxzwsvvihkrb","fromColumnPHIDs":{"PHID-PCOL-4xqaswef4csi2k5p53mj":"PHID-PCOL-4xqaswef4csi2k5p53mj"}}]

I tried to reproduce this again locally by moving to two columns on boards on which the task is already present, and failed; two separate transactions are created:

[{"columnPHID":"PHID-PCOL-mufscl5w7yn4qrn474uj","beforePHIDs":[],"afterPHIDs":[],"boardPHID":"PHID-PROJ-awhh6j3juortynjmeohe","fromColumnPHIDs":{"PHID-PCOL-w6mmktfeazbua26oh4op":"PHID-PCOL-w6mmktfeazbua26oh4op"}},
{"columnPHID":"PHID-PCOL-lgrnai6gbnzmxpjke237","beforePHIDs":[],"afterPHIDs":[],"boardPHID":"PHID-PROJ-aaodv2ecvwzlg26dn67f","fromColumnPHIDs":{"PHID-PCOL-5oqyiadat3r274c6xrtg":"PHID-PCOL-5oqyiadat3r274c6xrtg"}}]

Same if the task is not present on any of these two boards/projects yet. Same if task is only already on one of the boards. I've had Aphront and phd running.

This needs better steps to reproduce.