← Back to team overview

mahara-contributors team mailing list archive

[Bug 1310761] [NEW] public group and allow submissions problem

 

Public bug reported:

When making public a group that has Allow submissions also ticked we get
this error:

[WAR] b7 (lib/user.php:1678) profile_url called with no user id
Call stack (most recent first):

    profile_url(object(stdClass), false) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/view.php:4602
    View->get_url(false) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/view.php:4272
    View::get_extra_view_info(array(size 1), false, false) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/view.php:4863
    View::get_views_and_collections(0) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/group.php:1272
    group_view_submission_form("1") at /home/robertl/htdocs/mahara-testing/mahara/htdocs/blocktype/groupviews/lib.php:162
    PluginBlocktypeGroupViews::get_data("1") at /home/robertl/htdocs/mahara-testing/mahara/htdocs/blocktype/groupviews/lib.php:56
    PluginBlocktypeGroupViews::render_instance(object(BlockInstance)) at Unknown:0

The problem stems from an anonymous user viewing the public group being
assigned the same id, which is zero, as the structural dummy user. That
dummy user has a default 'profile' page and this is causing the
problems.

** Affects: mahara
     Importance: High
     Assignee: Robert Lyon (robertl-9)
         Status: Confirmed

** Changed in: mahara
     Assignee: (unassigned) => Robert Lyon (robertl-9)

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

Title:
  public group and allow submissions problem

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  When making public a group that has Allow submissions also ticked we
  get this error:

  [WAR] b7 (lib/user.php:1678) profile_url called with no user id
  Call stack (most recent first):

      profile_url(object(stdClass), false) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/view.php:4602
      View->get_url(false) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/view.php:4272
      View::get_extra_view_info(array(size 1), false, false) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/view.php:4863
      View::get_views_and_collections(0) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/group.php:1272
      group_view_submission_form("1") at /home/robertl/htdocs/mahara-testing/mahara/htdocs/blocktype/groupviews/lib.php:162
      PluginBlocktypeGroupViews::get_data("1") at /home/robertl/htdocs/mahara-testing/mahara/htdocs/blocktype/groupviews/lib.php:56
      PluginBlocktypeGroupViews::render_instance(object(BlockInstance)) at Unknown:0

  The problem stems from an anonymous user viewing the public group
  being assigned the same id, which is zero, as the structural dummy
  user. That dummy user has a default 'profile' page and this is causing
  the problems.

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


Follow ups

References