← Back to team overview

mahara-contributors team mailing list archive

[Bug 1296915] Re: settings page error Undefined index: licensedefault

 

** Changed in: mahara
       Status: Fix Committed => Fix Released

-- 
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/1296915

Title:
  settings page error Undefined index: licensedefault

Status in Mahara ePortfolio:
  Fix Released

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1296915/+subscriptions


References