Can't update or edit block (Access Denied)
Permalink
I'm getting a 500 error when trying to add/edit a block after moving a site from one server to another. C5 logs say:
Also for ease I've included the code:
Any ideas?
updates/concrete5-8.4.3_remote_updater/concrete/controllers/backend/user_interface/page.php:31 Access Denied (0)
Also for ease I've included the code:
public function on_start() { $request = $this->request; $cID = $request->query->get('cID'); if (!$cID) { $cID = $request->request->get('cID'); } if ($cID) { $page = ConcretePage::getByID($cID); } else { $page = null; } if (is_object($page) && !$page->isError()) { $this->setPageObject($page); $request->setCurrentPage($this->page);
Viewing 15 lines of 19 lines. View entire code block.
Any ideas?

your server permissions might not be set correctly. Check the chmod value for that file.
Thanks for the suggestion mnakalay; I thought it had to do with permissions
too but unfortunately the file was 0755 with the correct owner/group.
too but unfortunately the file was 0755 with the correct owner/group.
From that code I would deduce that the page doesn't exist (anymore).
The page exists still, the error occurs when editing a block or adding a block on the page while in edit mode on the page.