Hi. It confuses me that in step #9 you share incomplete and not closed code. Are you sure your code is correct?
Maybe the following could be helpful to you:
https://community.mybb.com/thread-222276...pid1343723
Maybe the following could be helpful to you:
https://community.mybb.com/thread-222276...pid1343723