NodeForm assumes user is present when getting AccountName()

Created on 22 August 2025, about 1 month ago

Problem/Motivation

I have inherited a site that imports content via feeds, however it was set up incorrectly and did not set a user. When I try to edit the node, we get a WSOD. This is because NodeForm on line 162 sets the Author markup as $node->getOwner()->getAccountName() which, since getOwner returns null, getAccountName() fails.

Steps to reproduce

Edit a node with no user.

Proposed resolution

Check to see if owner exists and if not, assign it to currentUser();

πŸ› Bug report
Status

Active

Version

10.4 ✨

Component

node system

Created by

πŸ‡ΊπŸ‡ΈUnited States markie Albuquerque, NM

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024