mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #17372
[Bug 1288037] Re: Error Creating Custom Layout for Group Page
*** This bug is a duplicate of bug 1266317 ***
https://bugs.launchpad.net/bugs/1266317
Thanks Ghada!
I was able to replicate the problem, and cherry-picking the patches from
Bug 1266317 fixed the problem. So, I'll mark this one as a duplicate and
reopen the other bug.
** This bug has been marked a duplicate of bug 1266317
Institution/group ownership of custom flexible layouts
--
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/1288037
Title:
Error Creating Custom Layout for Group Page
Status in Mahara ePortfolio:
Triaged
Bug description:
Mahara: 1.8.2testing (2013101407)
OS: Linux
DB: PostGres 9.1
Browser: Firefox
In a brand new vanilla Mahara in install:
- Create 3 users (teacher1, teacher2, student1).
- Create a group (teachers) with users: teacher1 and teacher2.
- Log in as teacher1
- Create a page (Standard 1) under the group teachers
- Customise the layout (2 rows): row 1= 2 columns; row 2 = 5 columns.
- Click 'Create New Layout' button.
The following error is generated:
[WAR] 68 (lib/errors.php:736) Failed to get a recordset: postgres7 error: [-1: ERROR: null value in column "usr" violates not-null constraint] in adodb_throw(INSERT INTO "usr_custom_layout" ("layout") VALUES (?), Array)
Command was: INSERT INTO "usr_custom_layout" ("layout") VALUES (?) and values was (30)
Call stack (most recent first):
log_message("Failed to get a recordset: postgres7 error: [-1: E...", 8, true, true) at /var/www/acttqi/mahara/htdocs/lib/errors.php:93
log_warn("Failed to get a recordset: postgres7 error: [-1: E...") at /var/www/acttqi/mahara/htdocs/lib/errors.php:736
SQLException->__construct("Failed to get a recordset: postgres7 error: [-1: E...") at /var/www/acttqi/mahara/htdocs/lib/dml.php:1053
insert_record("usr_custom_layout", object(stdClass)) at /var/www/acttqi/mahara/htdocs/lib/view.php:1106
View->addcustomlayout(array(size 4)) at /var/www/acttqi/mahara/htdocs/lib/view.php:1686
View->process_changes() at /var/www/acttqi/mahara/htdocs/view/blocks.json.php:30
It appears that the owner is null.
There was a similar bug reported for Mahara 1.9 (bug #1266317). It
may need to be applied to 1.8 also.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1288037/+subscriptions
References