Website down and "An unexpected error occurred" after upgrading to 5.5.2.1

Permalink
After logging in to the "/login"-page and entered the dashboard and I got a message saying I was running and old version and should upgrade. I took a backup (so I go the dbu_mynumbers.sql"-file) and runned the upgrade, and the site just went down...

So now, when entering the webpage it says: "An unexpected error occurred. Invalid task permission", and when trying to enter the dashboard at "/index.php/dashboard" the same error message is three times in a row.

How do I restore my site? (I know html, but I´m no php-guru, I use the Concrete since I think it´s an great and easy way of running websites, that´s about it...)

Please help me!
Webpage:http://www.anderssonssmide.se

Hiawatha73
 
mhawke replied on at Permalink Best Answer Reply
mhawke
To return to your previous version, you can try going into your server via FTP and open up the [root]/config/site.php file. Find the line that looks like the first line below. Put a # just before the word 'define' to comment out this line:

<?php define('DIRNAME_APP_UPDATED', 'concrete5.5.2.1');?>


so it looks like this:

<?php # define('DIRNAME_APP_UPDATED', 'concrete5.5.2.1');?>


What version were you upgrading from?
JohntheFish replied on at Permalink Reply
JohntheFish
First off, well done on taking a backup first. So many of those with upgrade problems have failed that critical stage.

Before reverting, you could try running the upgrade process again manually. There are instructions on how to do that in a file within the upgrade zip package.

Then as mhawke says, you can comment out the line in config/site.php to try running your site using the pre-upgrade version of c5. However, there could be some database changes from the upgrade process, so if that does not work you will also need to import the database backup you made, probably using phpMyAdmin to run the import if you cant get at the dashboard.
Hiawatha73 replied on at Permalink Reply
Hiawatha73
Are you guys like the best!!!!! Big thanks!!!!

I use the #-solution that mhawke mentioned, since I only could access the files by FTP, and now I can access the webpage and dashboard by http again. Everything looks just like before, and I still got this message that I´m running 5.4.1.1 and need to upgrade... but no, I won´t do that this time...
:-)

Now, that I can access the webpage and changed a file, do I need to to some restore or delete some files, or can I just go on like before?
JohntheFish replied on at Permalink Reply
JohntheFish
That is probably a sign that the upgrade process didn't fully complete, because completion of the upgrade would have changed that info in the database.

If you want to try the upgrade again, the safest way is to make a clone of the site on a development system and text/practice the upgrade on that clone. Then, once all issues are known and resolved, repeat the process on the actual site (with backups at all stages, just in case).
JohntheFish replied on at Permalink Reply
JohntheFish
PS. If it is running happily, you can continue as before. However, bear in mind that upgrades do things with the database. So check through everything thoroughly (do some edits, run some jobs, check the log for errors). If you get any glitches, you should restore the pre-upgrade database backup you made from Backup/Restore.
Hiawatha73 replied on at Permalink Reply
Hiawatha73
Big thanks for your tips JohntheFish!
I learned me a lesson the hard way.
I´ll be more careful upgrading in the future....
:-)
mhawke replied on at Permalink Reply
mhawke
JohntheFish has created a great add-on that eases the process of backing up or moving a site. Check it out:

http://www.concrete5.org/marketplace/addons/backup-voodoo/...
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
One of the reasons why your update failed may be because you tried to upgrade to 5.5.2.1 from version 5.4.1.1
To do this you must upgrade sequentially from 5.4.1.1 through 5.4.2.2 and then make the leap to 5.5.2.1
nzdairyevent replied on at Permalink Reply
Im having the same issue my website is down, but I can go anywhere as there is no edit or anything showing, have I broken it?