1

I know is kind of stupid question, but I need some 'comforting' words :) We are going to update a very old version of Craft. We have Craft Client 2.4.2684 and going to update to the last Craft 2.6 version 2794 - 29/06/2016.

It is a very big update and usually such jumps are never going well :) What about Craft? Do the updates work good or like WP :) do they need lot of fixing of the server afterwards?

If I copy all the files present in root to my HD and a copy of the database before the upgrade, will I be able to go back without problems?

5

The good news is, 2.4 isn't that old. The bad news is, 2.5 was one of the most significant updates Craft has ever seen. For that reason, you'll want to exercise a little more caution than you typically would need to.

To begin with, backup your database! I can't emphasize this enough... you want to make sure that you have captured a "moment in time" for your site to roll back to, in the unlikely event that it's necessary.

After that, you'll want to perform a manual update. The vast majority of times (99%), an auto-update is a clean and easy way to update your Craft site. In fact, it's one of the things that makes Craft so amazing to begin with! However, upgrading from 2.4 -> 2.5 involves a lot of file changes, so this is one of those rare instances where you'd be wise to upgrade manually.

Lastly, you'll want to update all of your plugins after you update Craft itself. The arrival of 2.5 brought a few breaking changes for some plugins, and several awesome new features for plugins to take advantage of. Besides, it's always best to be running the latest versions of your plugins anyway. :)

In short, set aside 1-2 hours. If you're cautious and follow these tips, you'll almost certainly have a smooth transition. And if something goes horribly wrong, just roll back to your backup, and reach out to the community on the Craft Slack channel.

Good luck!

4

In additional to Lindsey's excellent answer, I find a lot more comfort in updating Craft than WordPress. P&T spent a lot of time making sure the one click updates just work.

Unlike WordPress, Craft will make a backup of your database before it updates so if anything goes south, it can revert back automatically, though on a big version jump like this, you'd be wise to take a backup of the live site, and test it locally (or another testing server) to see what, if anything, is going to cause any problems since there are a lot of files involved. If all goes well, do it on the live server. If not, than you may have to do a manual update.

Saying that, I've rarely had a WP update go wrong—it's usually plugins that have caused the most problems after updating. If your sites are anything like mine, you rely on plugins far less in Craft than WordPress so it's less of a concern. But it's still a concern. As Lindsey mentions, theres a few breaking changes in plugins in the newest version of Craft that can bork your site.

Some plugins only work with certain versions of Craft so it's an in-or-out situation. You'll may have to disable the plugin, update Craft, download the newest version of the plugin, "install" it and then Craft will prompt you to migrate the plugin's database schema. Again, probably best done on another box to see how you fare.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.