Error thrown

Call to a member function get_user_all_badges() on bool