Unable to change passwords on user accounts!

Situation
Describe your problem here
When I log in as admin and go to change a password for a user I receive this message.
OpenEMR Version
I’m using OpenEMR version
5.0.2
Browser:
I’m using:


Chrome
Operating System
I’m using:
OS
Logs
Did you check the logs? Was there anything pertinent in them? Paste them here (surround with three backticks (```) for readability

Try running sql_patch.php or its possible that you still need to run the sql_update.php script. Back a backup before you do either of those things.

UPDATE!
This error happens every time you try and save a change for a user.
I could be wrong but it looks like the code is having a problem with the portal users field.

did you do this? this field is created from sql_patch.php

How do I run this file?

Follow instruction here Tim: https://www.open-emr.org/wiki/index.php/OpenEMR_Patches
This will fix this issue
good luck!