This is a regression.
The fix for: https://bugs.launchpad.net/mahara/+bug/1251089 has created a new bug where if the site does NOT have License metadata config option set it throws an error:
[WAR] ce (account/index.php:103) Undefined index: licensedefault
Call stack (most recent first):
log_message("Undefined index: licensedefault", 8, true, true, "/home/robertl/htdocs/mahara-testing/mahara/htdocs/...", 103) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/errors.php:433
error(8, "Undefined index: licensedefault", "/home/robertl/htdocs/mahara-testing/mahara/htdocs/...", 103, array(size 55)) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/account/index.php:103
[WAR] ce (account/index.php:103) Undefined index: licensedefault
Call stack (most recent first):
log_message("Undefined index: licensedefault", 8, true, true, "/home/robertl/htdocs/mahara-testing/mahara/htdocs/...", 103) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/errors.php:433
error(8, "Undefined index: licensedefault", "/home/robertl/htdocs/mahara-testing/mahara/htdocs/...", 103, array(size 55)) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/account/index.php:103
[WAR] ce (account/index.php:103) array_keys() expects parameter 1 to be array, null given
Call stack (most recent first):
log_message("array_keys() expects parameter 1 to be array, null...", 8, true, true, "/home/robertl/htdocs/mahara-testing/mahara/htdocs/...", 103) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/errors.php:433
error(2, "array_keys() expects parameter 1 to be array, null...", "/home/robertl/htdocs/mahara-testing/mahara/htdocs/...", 103, array(size 55)) at Unknown:0
array_keys(null) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/account/index.php:103
[WAR] ce (account/index.php:103) array_search() expects parameter 2 to be array, null given
Call stack (most recent first):
log_message("array_search() expects parameter 2 to be array, nu...", 8, true, true, "/home/robertl/htdocs/mahara-testing/mahara/htdocs/...", 103) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/lib/errors.php:433
error(2, "array_search() expects parameter 2 to be array, nu...", "/home/robertl/htdocs/mahara-testing/mahara/htdocs/...", 103, array(size 55)) at Unknown:0
array_search(null, null) at /home/robertl/htdocs/mahara-testing/mahara/htdocs/account/index.php:103
I found that reverting the patch https:/ /reviews. mahara. org/#/c/ 2893/ from the original bug 1251089 both fixes this problem, *and* the problem originally described in bug 1251089 can also not be replicated after reverting.
So I've pushed a new gerrit patch to simply revert patch 2893. Here's the URL: https:/ /reviews. mahara. org/#/c/ 3117/