-
- 213 Posts
Yes, and I'll probably end up doing that. I just realized I didn't really describe my problem. The problem is my code errors out when I login. In the Apache log, I get something like "get is called on a non-object". So I was trying to understand why I was getting an error.
-
- 24,544 Posts
According to the docs, your original code should work, unless it's somehow executing for the (anonymous) user, who has no profile, or you're testing it by previewing from the Manager or in a window of the same browser where you're logged into the Manager.
Another possibility -- if you're creating the users yourself in code, they may not have User Profiles.