← Back to team overview

mahara-contributors team mailing list archive

[Bug 1089136] Re: "Add me as friend" results in error message

 

This still happens in latest 1.9 master. The stack trace is:

[WAR] c3 (lib/user.php:1672) profile_url called with no user id

    profile_url(object(LiveUser), false) at /home/jonom/Catalyst/mahara/htdocs/lib/user.php:2099
    addfriend_submit(object(Pieform), array(size 3)) at Unknown:0
    call_user_func_array("addfriend_submit", array(size 2)) at /home/jonom/Catalyst/mahara/htdocs/lib/pieforms/pieform.php:520
    Pieform->__construct(array(size 5)) at /home/jonom/Catalyst/mahara/htdocs/lib/pieforms/pieform.php:162
    Pieform::process(array(size 5)) at /home/jonom/Catalyst/mahara/htdocs/lib/pieforms/pieform.php:71
    pieform(array(size 5)) at /home/jonom/Catalyst/mahara/htdocs/blocktype/myfriends/lib.php:123
    PluginBlocktypeMyfriends::render_instance(object(BlockInstance)) at Unknown:0
    call_user_func_array(array(size 2), array(size 1)) at /home/jonom/Catalyst/mahara/htdocs/lib/mahara.php:1551
    call_static_method("PluginBlocktypeMyfriends", "render_instance", object(BlockInstance)) at /home/jonom/Catalyst/mahara/htdocs/blocktype/lib.php:763
    BlockInstance->render_viewing() at /home/jonom/Catalyst/mahara/htdocs/lib/view.php:2007
    View->build_column(1, 2, false) at /home/jonom/Catalyst/mahara/htdocs/lib/view.php:1964
    View->build_columns(1, false) at /home/jonom/Catalyst/mahara/htdocs/lib/view.php:1949
    View->build_rows() at /home/jonom/Catalyst/mahara/htdocs/user/view.php:93

** Changed in: mahara
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1089136

Title:
  "Add me as friend" results in error message

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  Reproduced on demo.mahara.org (1.6 stable)

  When you have 
  - your friend settings set to "New friends are automatically authorised" and
  -  the "Friends" block on your profile page and
  - made your profile page public and
  - do not yet any friends and 
  - a person who is not logged in views your profile page,

  they see the "Add me to your friends" button. When they click on it,
  the generic Mahara error message

  "Mahara: Site unavailable 
  A nonrecoverable error occurred. This probably means you have encountered a bug in the system"

  comes up instead of logging you in and adding you to the list of
  friends of that user.

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


References