← Back to team overview

mahara-contributors team mailing list archive

[Bug 1591304] A change has been merged

 

Reviewed:  https://reviews.mahara.org/6597
Committed: https://git.mahara.org/mahara/mahara/commit/e859baf0699804ef676165dd344040b461d68444
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    16.04_STABLE

commit e859baf0699804ef676165dd344040b461d68444
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Mon Jun 13 08:38:37 2016 +1200

Bug 1591304: Undefined $view in is_themeable()

Should be $this rather than $view as we are within a view object

Change-Id: I3132d6d380a82c3cd4cbc6fc35a4ab5fb19af673
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
(cherry picked from commit 8203904b32a24e4eafca9ac9ebb5213607c0cd41)

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

Title:
  is_themeable function is breaking page editing

Status in Mahara:
  Fix Committed
Status in Mahara 16.04 series:
  Fix Committed
Status in Mahara 16.10 series:
  Fix Committed

Bug description:
  Updated from 15.04.5 to 16.04.2 and ran into this issue when editing
  any page:

  [Fri Jun 10 10:57:51 2016] [error] [client  ] [WAR] c3 (lib/view.php:5999) Undefined variable: view, referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ] Call stack (most recent first):, referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ]   * log_message("Undefined variable: view", 8, true, true, "/var/www/html/mahara1604/lib/view.php", 5999) at /var/www/html/mahara1604/lib/errors.php:489, referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ]   * error(8, "Undefined variable: view", "/var/www/html/mahara1604/lib/view.php", 5999, array(size 1)) at /var/www/html/mahara1604/lib/view.php:5999, referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ]   * View->is_themeable() at /var/www/html/mahara1604/view/blocks.php:271, referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ] , referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ] [WAR] c3 (lib/errors.php:508) An exception was thrown of class Error. , referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ] [WAR] c3 (lib/errors.php:508) THIS IS BAD and should be changed to something extending MaharaException,, referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ] [WAR] c3 (lib/errors.php:508) unless the exception is from a third party library., referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ] [WAR] c3 (lib/errors.php:508) Original trace follows, referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ] [WAR] c3 (lib/view.php:5999) Call to a member function get() on null, referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ] Call stack (most recent first):, referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ]   * View->is_themeable() at /var/www/html/mahara1604/view/blocks.php:271, referer: http://learningdev.campus.up.edu/mahara1604/view/index.php
  [Fri Jun 10 10:57:51 2016] [error] [client  ] , referer: http://learningdev.campus.up.edu/mahara1604/view/index.php

  Before I got this error, I got a message about a user's theme not
  being available and it asked me to switch to a different one. After
  switching, this is the error that occurred. It seems to be happening
  on any page I try to edit and any new page I attempt to create.

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


References