setPermissionObject() on a non-object in file_list.php
Permalink
I'm moving a site from one server to another, and I'm getting this error on the new server when I'm logged out, if I login everything works fine:
Fatal error: Call to a member function setPermissionObject() on a non-object in /updates/concrete5.6.0.2/concrete/core/models/file_list.php on line 235
in file_list on line 235 there's this:
contained in this:
There's already a thread with the same problem but it seems dead with no responses.
Anyone encountered this and have a solution?
Fatal error: Call to a member function setPermissionObject() on a non-object in /updates/concrete5.6.0.2/concrete/core/models/file_list.php on line 235
in file_list on line 235 there's this:
$pk->setPermissionObject($fs);
contained in this:
if (count($fsIDs) > 0) { $pk = PermissionKey::getByHandle($this->permissionLevel); foreach($fsIDs as $fsID) { $fs = FileSet::getByID($fsID); $pk->setPermissionObject($fs); $list = $pk->getAccessListItems(PermissionKey::ACCESS_TYPE_ALL, $accessEntities); $list = PermissionDuration::filterByActive($list); if (count($list) > 0) { foreach($list as $l) { $pae = $l->getAccessEntityObject(); if ($pae->getAccessEntityID() == $owpae->getAccessEntityID()) { $myviewableSets[] = $fs->getFileSetID(); } else { if ($l->getAccessType() == PermissionKey::ACCESS_TYPE_INCLUDE) { $viewableSets[] = $fs->getFileSetID();
Viewing 15 lines of 26 lines. View entire code block.
There's already a thread with the same problem but it seems dead with no responses.
Anyone encountered this and have a solution?
![tallacman](/files/avatars/376.jpg)
have you tried moving to a local machine and does it still throw errors? Backup Voodoo is absolute magic when it comes to moving a whole site easily.
Was a solution ever found? I'm having the same problem except I wasn't moving my site.