← Back to team overview

mahara-contributors team mailing list archive

[Bug 885588] Re: user/view.php PHP Fatal error in non-auth access

 

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 :/

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/885588

Title:
  user/view.php PHP Fatal error in non-auth access

Status in Mahara ePortfolio:
  New

Bug description:
  This is Mahara 1.4.0:

  Each 4 minutes or so, I was getting the following error on PHP error
  log:

  PHP Fatal error:  Call to a member function get() on a non-object in
  [MAHARA_DIRROOT]/user/view.php on line 67

  To reproduce just access /user/view.php without being authenticated.
  The access log shows GoogleBot trying to access user's profile page.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/885588/+subscriptions


References