Updating Concrete5

Permalink
Could someone enlighten me on how to properly update Concrete5? I've now tried to update 2 times using the dashboard's update button (after backing up the database and the entire ftp folder, better safe than sorry right), and twice it has gone horribly wrong.

After the update I can't reach any part of the site, and only after restoring some files from the backup I regain access.

If there's someone out there willing to help I can try updating again via the dashboard and elaborate on the error messages I get.

In the environment info it says I'm on 5.6.0.1, but when I click on update is says I'm currently running 5.6.1.2, so I guess something's wrong there as well..


Thanks in advance for anyone trying to help.

 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
What error you are getting?

Rony
kochster replied on at Permalink Reply
Im trying to update from 5.6.0.2 to 5.6.2.1 but when i hit the update button this pops up everytime, and i have to run my backup to get the site running again.


"An unexpected error occurred.

Unable to get permission key for write"

im guessing its the same problem as the op.
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Check your config/site.php files permission. Seems like it doesn't have the write permission.

Rony
kochster replied on at Permalink Reply
so i need to change the file permission of the config.php to 777 or?
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Yes. After doing the upgrade, just revert it back to the previous permission.

Rony
kochster replied on at Permalink Reply
same problem.
When i go back to the page it says: " Fatal error: Call to undefined method Page::supportsPageCache() in /home/*sitename*/public_html/libraries/view.php on line 787"

but the page that comes when i hit the update still remains the same
kochster replied on at Permalink Reply
the view.php from line 787 is:

if ($view->supportsPageCache($_pageBlocks, $this->controller)) {
                  $pageContent = $view->getFromPageCache();
                  if ($pageContent != false) {
                     Events::fire('on_before_render', $this);
                     if (defined('APP_CHARSET')) {
                        header("Content-Type: text/html; charset=" . APP_CHARSET);
                     }
                     print($pageContent);
                     Events::fire('on_render_complete', $this);
                     if (ob_get_level() == OB_INITIAL_LEVEL) {
                        require(DIR_BASE_CORE . '/startup/shutdown.php');
                        exit;
enlil replied on at Permalink Reply
enlil
Have you tried updating to 5.6.1.2 first ??
kochster replied on at Permalink Reply
might be a stupid question... but how? if i upload 5.6.1.2 to the updates folder it doesnt seem to register in the concrete5 dashboard