← Back to team overview

mahara-contributors team mailing list archive

[Bug 1012924] [NEW] Copying page from the group homepage creates error

 

Public bug reported:

When you are a member of a group and do not have page adding/editing
privileges, but you click on the "Copy page" button on the group
homepage, you get an error message and "Site unavailable".

----
[WAR] 5d (lib/view.php:386) View::_create: User 6 is not permitted to create a view for group 2
Call stack (most recent first):

    View::_create(array(size 6), "6") at /home/kristina/code/16stable/htdocs/lib/view.php:253
    View::create_from_template(array(size 6), 52) at /home/kristina/code/16stable/htdocs/lib/view.php:4325
    createview_submit(object(Pieform), array(size 6)) at Unknown:0
    call_user_func_array("createview_submit", array(size 2)) at /home/kristina/code/16stable/htdocs/lib/pieforms/pieform.php:512
    Pieform->__construct(array(size 7)) at /home/kristina/code/16stable/htdocs/lib/pieforms/pieform.php:161
    Pieform::process(array(size 7)) at /home/kristina/code/16stable/htdocs/lib/pieforms/pieform.php:71
    pieform(array(size 7)) at /home/kristina/code/16stable/htdocs/blocktype/groupviews/lib.php:146
    PluginBlocktypeGroupViews::get_data("2") at /home/kristina/code/16stable/htdocs/blocktype/groupviews/lib.php:71
    PluginBlocktypeGroupViews::render_instance(object(BlockInstance)) at Unknown:0
    call_user_func_array(array(size 2), array(size 1)) at /home/kristina/code/16stable/htdocs/lib/mahara.php:1351
    call_static_method("PluginBlocktypeGroupviews", "render_instance", object(BlockInstance)) at /home/kristina/code/16stable/htdocs/blocktype/lib.php:720
    BlockInstance->render_viewing() at /home/kristina/code/16stable/htdocs/lib/view.php:1538
    View->build_column(1, false) at /home/kristina/code/16stable/htdocs/lib/view.php:1506
    View->build_columns() at /home/kristina/code/16stable/htdocs/group/view.php:82

----

When you try the same from the "Pages" tab, you can copy the page just
fine into your own portfolio.

** Affects: mahara
     Importance: Medium
         Status: New

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

Title:
  Copying page from the group homepage creates error

Status in Mahara ePortfolio:
  New

Bug description:
  When you are a member of a group and do not have page adding/editing
  privileges, but you click on the "Copy page" button on the group
  homepage, you get an error message and "Site unavailable".

  ----
  [WAR] 5d (lib/view.php:386) View::_create: User 6 is not permitted to create a view for group 2
  Call stack (most recent first):

      View::_create(array(size 6), "6") at /home/kristina/code/16stable/htdocs/lib/view.php:253
      View::create_from_template(array(size 6), 52) at /home/kristina/code/16stable/htdocs/lib/view.php:4325
      createview_submit(object(Pieform), array(size 6)) at Unknown:0
      call_user_func_array("createview_submit", array(size 2)) at /home/kristina/code/16stable/htdocs/lib/pieforms/pieform.php:512
      Pieform->__construct(array(size 7)) at /home/kristina/code/16stable/htdocs/lib/pieforms/pieform.php:161
      Pieform::process(array(size 7)) at /home/kristina/code/16stable/htdocs/lib/pieforms/pieform.php:71
      pieform(array(size 7)) at /home/kristina/code/16stable/htdocs/blocktype/groupviews/lib.php:146
      PluginBlocktypeGroupViews::get_data("2") at /home/kristina/code/16stable/htdocs/blocktype/groupviews/lib.php:71
      PluginBlocktypeGroupViews::render_instance(object(BlockInstance)) at Unknown:0
      call_user_func_array(array(size 2), array(size 1)) at /home/kristina/code/16stable/htdocs/lib/mahara.php:1351
      call_static_method("PluginBlocktypeGroupviews", "render_instance", object(BlockInstance)) at /home/kristina/code/16stable/htdocs/blocktype/lib.php:720
      BlockInstance->render_viewing() at /home/kristina/code/16stable/htdocs/lib/view.php:1538
      View->build_column(1, false) at /home/kristina/code/16stable/htdocs/lib/view.php:1506
      View->build_columns() at /home/kristina/code/16stable/htdocs/group/view.php:82

  ----

  When you try the same from the "Pages" tab, you can copy the page just
  fine into your own portfolio.

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


Follow ups

References