Comment 5 for bug 885588

Revision history for this message
Juan Segarra Montesinos (juan-segarra) wrote :

I've realised that the error isn't raised with all users, just those without a profile view. You can try with any of these:

   select id from usr where id not in ( select distinct owner from view where type='profile' );

Take one id and access /user/view.php?id={one of the preovious id}

Maybe is not a general problem... just a problem with the way we are creating our users... mmmm... is it possible to have a user created without a profile view?

Look at get_view_by_type() method. If profile view doesn't exists and you're not logged in, null is returned. That's what I'm getting here :/