title: Fatal error: Call to a member function getPermissionKeyByHandle() on a non-object
body: <p>Hello I get the following messages at my site www.csvc.nl</p>
  
  <p>Fatal error: Call to a member function getPermissionKeyByHandle() on a non-object in /var/www/vhosts/csvc.nl/httpdocs/cms/updates/concrete5.6.0/concrete/core/models/permission/response.php on line 53</p>
  
  <p>The PHP code is:</p>
  
  <pre><code>    &lt;?php 
      defined('C5_EXECUTE') or die("Access Denied.");
      class Concrete5_Model_PermissionResponse {
  
  protected $object;
  protected $allowedPermissions = array();
  protected $customClassObjects = array();
  protected $category;
  static $cache = array();
  
  public function setPermissionObject($object) { 
      $this-&gt;object = $object;
  }
  public function getPermissionObject() {
      return $this-&gt;object;
  }
  public function setPermissionCategoryObject($category) {
      $this-&gt;category = $category;
  }
  
  public function testForErrors() { }
  
  public static function getResponse($object) {
      $r = PermissionCache::getResponse($object);
      if (is_object($r)) {
          return $r;
      }
  
      $category = PermissionKeyCategory::getByHandle(Loader::helper('text')-        &gt;uncamelcase(get_class($object)));
      if (!is_object($category) &amp;&amp; $object instanceof Page) {
          $category = PermissionKeyCategory::getByHandle('page');
      }
      $txt = Loader::helper('text');
      $c1 = get_class($object) . 'PermissionResponse';
      if (!class_exists($c1)) {
          $c1 = 'PagePermissionResponse';
      }
      $pr = new $c1();
      $pr-&gt;setPermissionObject($object);
      $pr-&gt;setPermissionCategoryObject($category);
  
      PermissionCache::addResponse($object, $pr);
  
      return $pr;
  }
  
  public function validate($permission, $args = array()) {
      $u = new User();
      if ($u-&gt;isSuperUser()) {
          return true;
      }
  
      $pk = $this-&gt;category-&gt;getPermissionKeyByHandle($permission);
      if (!$pk) {
          print t('Unable to get permission key for %s', $permission);
          exit;
      }
      $pk-&gt;setPermissionObject($this-&gt;object);
      return call_user_func_array(array($pk, 'validate'), $args);
  }
  
  public function __call($f, $a) {
      $permission = substr($f, 3);
      $permission = Loader::helper('text')-&gt;uncamelcase($permission);
      return $this-&gt;validate($permission, $a);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Does anybody knows what the problem is?</p>