← Back to team overview

mahara-contributors team mailing list archive

[Bug 790097] Re: php error following sharing group function

 

Hi Hugh,

Look at the bottom of my comment. After some testing I can reproduce the
error when sharing other pages. Yeah!!

here are the rest of the answers.

There are two groups. One has no pages, one has two pages.

The error comes when I open a page ("Project Work, 4th Semester"), click
on "share page" then under "share with my Groups" I click on "Add"
either next to "All my Groups" or next to "Project group finances", and
then click on "Save".

The error does not come when I do the same thing with another page I
have called "View - New Mexico".

More Info:
Did I mention than I upgraded from 1.3.7 to 1.4?

There must be something unique about the view "Project Work..." that leads to the error. 
Possibilities:
1. It does have a different theme than the rest of my mahara installation. I changed the theme to the site default and the error still occurs.

2. Interesting!!! I just made a copy of the problematic page "Project
Work..." and the error does not occur with this new duplicate page.

3. The duplicated page that can be shared with a group is slightly
different than the original. Maybe this is the problem. The original
page that causes the error already is shared with three individual
users. The copied page was not shared with anyone before I successfully
shared it with a group.

4. After testing a bit I came across another error:
4.1. Open Page "Project Work...", click "Share Page", under "Collections" and "Pages" at the top none of the check boxes are activated, click "share with other users and groups, choose new user, then click on save. I then get the following error.

Fatal error: Ignoring exception from View::__destruct() while an
exception is already active (Uncaught SQLException in
/home/relax/htdocs/mahara/lib/dml.php on line 1060) in
/home/relax/htdocs/mahara/view/access.php on line 513


!!! Now I notice a difference which might be helpful.
As mentioned when I want to share the page "Project Work..." none of the check boxes are activated at the top (under Collections and Pages) and the page I'm trying to share is not even listed. Then the error comes. When I share page "Copy of Project Work" the check box under "Pages" is activated for the page "Copy of Project...".

!!! I can now reproduce the error with other pages. Just open a page, click on "Share Page", deactivate the check box under "Pages" then try to share with a group or an individual.
Cool-with a little digging around you find the answers.
Good luck with the bug fixing.

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

Title:
  php error following sharing group function

Status in Mahara ePortfolio:
  Incomplete

Bug description:
  Mahara 1.4 rc2
  This is what happened:
  Opened page, clicked "Share Page", under "Share with group" click on group and then "Save". Following error appears:

  Fatal error: Ignoring exception from View::__destruct() while an
  exception is already active (Uncaught SQLException in
  /home/relax/htdocs/mahara/lib/dml.php on line 1060) in
  /home/relax/htdocs/mahara/view/access.php on line 513

  Further Info:
  After clicking "Share Page" the dialog is rather confusing. Actually I was in Page "XY" but in the Share Page dialog there are check boxes at the top for other pages to share, but the actual page I want to share "XY" is not listed. The above mentioned error only occurs when no checkbox is activated.


References