Cannot use object of type Profile as array
This

$user_full = profile2_by_uid_load($user-&gt;uid);


Returns an object, which you are then accessing as an array:

$user_full['client']


Which is illegal in PHP. You should access objects as objects, e.g.

$user_full-&gt;client


Or whatever it might be for that object type.