php error following sharing group function

Bug #790097 reported by Gus Hagelberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Hugh Davenport

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.

Revision history for this message
François Marier (fmarier) wrote :

Hi Gus,

This sounds a lot like bug 788457 (which we only fixed after we released RC2).

Do you think it's the same problem?

Cheers,
Francois

Changed in mahara:
status: New → Triaged
milestone: none → 1.4.0
importance: Undecided → Medium
Revision history for this message
Gus Hagelberg (gus-hagelberg) wrote : Re: [Bug 790097] Re: php error following sharing group function

Hi Francois,

I don't know if it's the same bug.

Cheers,

Gus

Am 31.05.11 07:03, schrieb François Marier:
> Hi Gus,
>
> This sounds a lot like bug 788457 (which we only fixed after we released
> RC2).
>
> Do you think it's the same problem?
>
> Cheers,
> Francois
>
>
> ** Changed in: mahara
> Status: New => Triaged
>
> ** Changed in: mahara
> Milestone: None => 1.4.0
>
> ** Changed in: mahara
> Importance: Undecided => Medium
>

--
Gus Hagelberg, M.A.
Hochschule Reutlingen, Rechen- und Medienzentrum (RMZ)
Alteburgstrasse 150, 72762 Reutlingen
Fon: +49 (0)7121 271-1327
Fax: +49 (0)7121 271-90-1302
Mail: <email address hidden>
Web: www.reutlingen-university.de/rmz

Changed in mahara:
assignee: nobody → Hugh Davenport (hugh-catalyst)
Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Hi Gus,

This sounds like two seperate bugs.
1: When you click Share Page when editing a page, the page in question doesn't show up in the checkboxes at the top
2: A mixture of https://bugs.launchpad.net/mahara/+bug/788457 and https://bugs.launchpad.net/mahara/+bug/784405

I couldn't reproduce the error you described, and also the line number mentioned in the error log doesn't match up with valid code in the 1.4RC2_RELEASE tag in git.

A few clarifications could clear this up. I have made a medium size list just incase
- What version of mahara are you using. You can find this in htdocs/lib/version.php, or the bottom right of the Site Administration page
-- RC2 is Mahara version 1.4rc2 (2011052700)

- Was there any more to the error log, you may have to get it from apaches error.log file
-- A stack trace would be good :)

- Is the page you are trying to edit in a collection
- are there any pages not in collections
- are there any pages in collections
- how many collections are there?
- are there any collections with no pages in it
- are there any collections with 1 page in it
- are there any collections with 2 or more pages in it.

If you could get back to us with this information, we can start looking at why this occured.

Changed in mahara:
status: Triaged → Incomplete
Revision history for this message
Gus Hagelberg (gus-hagelberg) wrote :

Hi,
I'll try to answer your questions as best I can. For your info: I did upgrade to 1.4rc2 from 1.3 (the latest version).

Gus

A few clarifications could clear this up. I have made a medium size list just incase
Here are the answers:
- What version of mahara are you using. You can find this in htdocs/lib/version.php, or the bottom right of the Site Administration page
Gus: My version is (2011052700)

-- RC2 is Mahara version 1.4rc2 (2011052700)

- Was there any more to the error log, you may have to get it from apaches error.log file
-- A stack trace would be good :)
Gus: Where do I find that?

- Is the page you are trying to edit in a collection
Gus: Yes
- are there any pages not in collections
Gus: No, only one page and "General Files" has various files in it.
- are there any pages in collections
- how many collections are there?
Gus: Just one
- are there any collections with no pages in it
Gus: No.
- are there any collections with 1 page in it
Gus: Yes, as mentioned above.
- are there any collections with 2 or more pages in it.
Gus: No

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Hi Gus,

I still can't replicate this error.

Could you please attach the files /home/relax/htdocs/mahara/view/access.php and /home/relax/htdocs/mahara/lib/dml.php for me

Also, the log files would most likely be in /var/log/apache2/error.log (if you can produce the error then send me that file :)

Cheers,

Hugh

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Also, a few more questions so I can try and get the same setup as you.

How many groups are there, and are there any pages in those groups?

And how many groups are you attempting to share with?

Cheers,

Hugh

Revision history for this message
Gus Hagelberg (gus-hagelberg) wrote :

Hi Hugh,

here are the two files you asked for. I don't have access to the apache log files.

Gus

Revision history for this message
Gus Hagelberg (gus-hagelberg) wrote :

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.

Revision history for this message
Gus Hagelberg (gus-hagelberg) wrote :

Hi,
Did you fix this bug in 1.4rc3? The error is no longer occuring after just upgrading to rc3.

Edit Page, share page, make sure no checkboxes are chosen under "Pages", add a group to share with, click "Save".

No error message appears, the message appears "Access rules were updated for 0 page(s)".

I do notice that I no longer have any collections. I'm not sure, but I guess I erased the one I had. After adding a new collection I still can't reproduce the error.

Well, good work.

Gus

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Hi Gus,

Thats good to hear. I wasn't too sure if my fix was for your problem,
but it seems it was. Glad to know it's working for you.

Cheers,

Hugh

 status fixreleased

Changed in mahara:
status: Incomplete → Fix Released
Revision history for this message
François Marier (fmarier) wrote :

Not yet "released" (release candidates don't count as releases), but definitely "committed" :)

Changed in mahara:
status: Fix Released → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.