Reply To: 2.0.2 install trouble
Are you sure you have the profile component activated?
If you do, then it’s a load order issue.
You’re calling the function before BP is fully loaded.
Try moving that code into bp-custom.php.
If that doesn’t work, use pastebin or gist to share the code where you use xprofile_get_field_data, especially the action or filter hook.