How to use CurrentUserInfo() in Row_Inserting server event?

In phpmaker 2025, I used to be able to access $CurrentUserInfo("xxx") from the row_inserting server event. In phpmaker 2026, this function is no longer accessible, but can be invoked in the UserID_loaded event as $this->currentUserInfo("xxx")

How can I access it directly from the row_inserting event?

Use CurrentUserInfo("xxx"), not $CurrentUserInfo("xxx").

I tried your suggestion, it does not throw an error anymore, but it now returns NULL no matter what parameter I pass to it

e.g. CurrentUserInfo("username") returns null

CurrentUserInfo("ID") returns null

  1. Make sure you are logged in as a user from the user table or there is no "current user". (Not applicable to super admin.)
  2. The "xxx" in CurrentUserInfo("xxx") should be a field name in the user table. (Make sure the lettercase is correct.)

Read CurrentUserInfo().

Thank you, It worked after i generated the files to an empty folder, cleared the cookies and logged in after each generate

Regards