Error saving User bean Invalid Referrer expected the Save action to be called from the User's Profile Edit View

When I update the value of a custom field on the User bean, in the recommended way, and then call save() to store the data to the User’s profile, it fails to save, with this error in the suitecrm.log:

Fri Oct 20 22:52:38 2023 [216861][1][ERROR] Invalid Referrer: expected the Save action to be called from the User's Profile Edit View
Fri Oct 20 22:52:38 2023 [216861][1][FATAL] Email address save error

How am I supposed to update and save my custom field to the User profile?
Any suggestion how to successfully save it?

Some discussion on this here

The simple fix: comment out the code.

The more complicated, but upgrade-safe fix: extend SugarEmailAddress and override the isUserProfileEditViewPageSaveAction function to include your special case.

Thanks. I see the same issue posted here in 5871 and the proposed fix here in 6410 by @cameronblaikie_22 . The team forgot to merge it! Yet it’s tagged “Resolved: Next release”…

1 Like