Fixed [PHP 8] «Attempt to read property "username" on null» when adding admin

Affected version
2.2.3 Patch 1

NikitOS

Active member
Hello

On PHP 8, when adding an admin, an error occurs: Attempt to read property "username" on null.
The username getter invokes the username from the User relationship, which is not available when the administrator is created.


Regards
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.4).

Change log:
Don't throw an error when trying to add an admin on PHP 8
There may be a delay before changes are rolled out to the XenForo Community.
 
Top