"Add me as friend" results in error message
Bug #1089136 reported by
Kristina Hoeppner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Jono M |
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.
Changed in mahara: | |
importance: | Undecided → Medium |
assignee: | nobody → Jono Mingard (mingard) |
status: | Confirmed → In Progress |
Changed in mahara: | |
milestone: | none → 1.9.0 |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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 submit( object( Pieform) , array(size 3)) at Unknown:0 user_func_ array(" addfriend_ submit" , array(size 2)) at /home/jonom/ Catalyst/ mahara/ htdocs/ lib/pieforms/ pieform. php:520 >__construct( array(size 5)) at /home/jonom/ Catalyst/ mahara/ htdocs/ lib/pieforms/ pieform. php:162 :process( array(size 5)) at /home/jonom/ Catalyst/ mahara/ htdocs/ lib/pieforms/ pieform. php:71 array(size 5)) at /home/jonom/ Catalyst/ mahara/ htdocs/ blocktype/ myfriends/ lib.php: 123 typeMyfriends: :render_ instance( object( BlockInstance) ) at Unknown:0 user_func_ array(array( size 2), array(size 1)) at /home/jonom/ Catalyst/ mahara/ htdocs/ lib/mahara. php:1551 static_ method( "PluginBlocktyp eMyfriends" , "render_instance", object( BlockInstance) ) at /home/jonom/ Catalyst/ mahara/ htdocs/ blocktype/ lib.php: 763 ce->render_ viewing( ) at /home/jonom/ Catalyst/ mahara/ htdocs/ lib/view. php:2007 >build_ column( 1, 2, false) at /home/jonom/ Catalyst/ mahara/ htdocs/ lib/view. php:1964 >build_ columns( 1, false) at /home/jonom/ Catalyst/ mahara/ htdocs/ lib/view. php:1949 >build_ rows() at /home/jonom/ Catalyst/ mahara/ htdocs/ user/view. php:93
addfriend_
call_
Pieform-
Pieform:
pieform(
PluginBlock
call_
call_
BlockInstan
View-
View-
View-