I would recommend reinstalling a fresh version of Moodle code without your customizations. It is impossible to know what you have done but something has obviously broken here!
You can use user profile fields to add additional profile fields without hacking the code. I would suggest trying that...you can't just add files that worked in a previous version and expect them to work in a new version.