unable to create group home page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Aaron Wells | ||
1.8 |
Fix Released
|
Medium
|
Aaron Wells |
Bug Description
mahara version 1.8.1
mysql 5.6
Since upgrading from 1.7.2 to 1.8.1 we are unable to create new group home pages. After selecting 'create group', adding a group and selecting 'save group', the 'About' tab displays 'A nonrecoverable error occurred.' the error log displays:
[Mon Mar 03 16:46:57 2014] [error] [client 128.40.192.7] [WAR] ba (lib/view.php:2725) Unknown view layout (id=), referer: https:/
[Mon Mar 03 16:46:57 2014] [error] [client 128.40.192.7] Call stack (most recent first):, referer: https:/
[Mon Mar 03 16:46:57 2014] [error] [client 128.40.192.7] * View->get_layout() at /data/mahara-
[Mon Mar 03 16:46:57 2014] [error] [client 128.40.192.7] * View->build_
[Mon Mar 03 16:46:57 2014] [error] [client 128.40.192.7] * View->get_
[Mon Mar 03 16:46:57 2014] [error] [client 128.40.192.7] * View->build_
[Mon Mar 03 16:46:57 2014] [error] [client 128.40.192.7] * View->build_
[Mon Mar 03 16:46:57 2014] [error] [client 128.40.192.7] * View->build_rows() at /data/mahara-
[Mon Mar 03 16:46:57 2014] [error] [client 128.40.192.7] , referer: https:/
If I select the 'my groups' tab, the group is displayed but I get the same error message if I try and edit it. If I select the group, the same error is displayed on the 'about' tab but all other tabs work correctly.
I suspect that something went wrong during the upgrade, although no error messages were reported in the error log. 9 new tables were created and the correct schema changes appear to have been applied according to the lib/db/upgrade.php. We didn't test creating groups on our uat instance before upgrading production and have now rolled back production to 1.7.2. However the problem exists on our dev and uat environments and we won't upgrade production until we can fix it on dev and uat. The dev and uat databases are a clone of production. I'm not sure if it's worth mentioning but the auto-increment is set to 2 on production and 1 on dev and uat. I'm wondering if something is going wrong during the upgrade when the new tables are populated.
Please let me know if I can provide any more information.
Changed in mahara: | |
status: | Fix Committed → Fix Released |
no longer affects: | mahara/1.9 |
I'm unable to replicate the issue. It is a bit strange that the auto-increment is 2 rather than 1, but we wrote the code in a way that does not make any assumption about the automatically generated ID numbers, so that shouldn't pose a problem.
Looking at your error stack, one thing that makes me scratch my head is that the warning message "Unknown view layout (id=)" is from line 2725 of lib/view.php. In the code for release 1.8.1 (and 1.8.2dev) that warning should be on line 2721.
Do you have custom code in lib/view.php?
Cheers,
Aaron