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

NikitOS

Well-known member
Affected version
2.2.3 Patch 1
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
 
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 Bottom