Is it save to update to Concrete 5.4.2?

Permalink
Hi Just saw that Concrete5 version 5.4.2 is out, and was wondering , if it will effect the older version addons if i install it on one of my site witch are already running on version 5.4.1 ??

1. How do i update from version Concrete 5.4.1 to version 5.4.2?
2. Will it effect the addons i've already installed?

Thanks

/Mike

mikefatty
 
adamjohnson replied on at Permalink Best Answer Reply
adamjohnson
Yes, C5 v5.4.2 is a stable release version. How to upgrade instructions:

http://www.concrete5.org/documentation/installation/upgrading_concr...

It should not effect any of your add ons, but it is always a good idea to test. They updated jQuery to 1.6.2 in this release so, if you have an add on that is not compatible with jQuery 1.6.2, then it might not function 100% properly.

Like I said, test it in a development environment and see what happens. I bet everything will be all good.
mikefatty replied on at Permalink Reply
mikefatty
Thx Riotaj for the detailed answer, ill get right to it;-) i've have a test server i can do that on, didnt want to fuc#@k up my client site hehe

Thanks again


/Mike
foxhallhomes replied on at Permalink Reply
So...all my content remained in tact but all the coding and edits I did...well its a mess. I clicked update and it looked like it wiped out all my changes to my coding on the site (like changing the footer, spacing, lines, etc.) Funny thing for me was, none of the coding or work I did was missing which made me freak out for a bit.

Now, after spending an hour and a half digging, I found what happened. so when it "updates" a whole new little copy of concrete 5 appears in a folder called "updates". Its reset to how it looked when I first loaded it so now I have to dig around and move copies of old files here and there till it looks like it did and hour and a half ago.

Do I blame the site for updating, god no. But I warn anyone who clicks that button, make a mental note of what you need to edit again (I backed up a couple files out of fear before all this happened).
mikefatty replied on at Permalink Reply
mikefatty
#foxhallhomes, thanks for the heads up, i've installed the new version on my test server, and like you said it also wiped out all my changes to the css. so im thing of waiting updating my main site, coz i have like 300 readers a day and i dont wanna stress out over my site bening down :-)

/Mike
mesuva replied on at Permalink Reply
mesuva
Just a note here - when you upgrade Concrete5, you really only update the /concrete folder, everything else is untouched. The upgrade process should only mean you are down for about 30 seconds if you do it this way:

- Download the new version and unzip
- Inside the fresh, unzipped folder, rename /concrete to something like /concrete_new
- Upload this to your server, next to your existing /concrete folder
- Put your site into maintenance mode (good idea, but not massively important IMO).
- On the server rename /concrete to /concrete_old and /concrete_new to just /concrete (swap them over)
- Visit http://yoursite.com/index.php/tools/required/upgrade... and perform the update
- Take your site out of maintenance mode.

Doing the above in this way means your site only needs to be offline for only a few seconds. I've done this to quite a few sites in the last week without any problems.

The second big thing to note. DO NOT EVER edit the files inside the concrete directory, not even tiny edits. You are supposed to OVERRIDE files, placing themes, block overrides, or anything else you want to modify in their respective top level folders.

Although it is a good idea to keep a track of change you make and take backups, an upgrade shouldn't mean you have to make them again to your site.
mikefatty replied on at Permalink Reply
mikefatty
Hi Mesuva

Thanks for your detailed description, ill will try that right away, but the thing i worry about is the addons on my site, most of them are using jquery. im use to work with Drupal and when u download a module/addon u can choose between versions..


/ Thx Mike
abulka replied on at Permalink Reply
abulka
Here are the notes from my own journey in upgrading concrete5 with instructions. Hope this helps someone.

How to upgrade concrete 5

Manually
========

Not needed anymore with later versions of concrete5.

preamble:

The trick here is to identify the folder named 'concrete' in your site and replace it with a new version of 'concrete' from the concrete5 download zip - but BEWARE you only want the 'concrete' sub-folder from the concrete5 download zip, not the whole contents of the zip.
Don't overwrite 'concrete' on your site, rename the existing 'concrete' and put the new 'concrete' in.
Its easy to be confused because the concrete5 downloads are named e.g. concrete5.4.0.5 and contain paths like
concrete5.4.0.5/concrete
That's just too many concrete's for some people ;-)
You can identify the wanted folder in the zip named 'concrete' because it has a sibling folder called 'files'.
Similarly look at your website structure to identify the concrete folder to replace, it too has a sibling folder called 'files'. E.g.

/your_root_once_called_eg.concrete5.4.0.5_etc
  config         
  controllers         
  concrete         <--- this is the one to replace
  css         
  elements         
  files         
  helpers
  etc.


Note that the sub folder named 'concrete' is where the core concrete functionality lives and which should never be edited. This folder can be swapped for a new version, that's how upgrading works (plus running a script afterwards).
Everything else is your personal stuff e.g. the folder 'files' is where a lot of your content lives.

P.S. The reason the zip downloads from concrete5 contain more than the wanted 'concrete' folder is that you need all the other stuff for fresh new installs. It would be much easier if concrete5.org supplied special upgrade zips with nothing in them except the 'concrete' sub-folder. As it is, you have to prepare these upgrade zips yourself and upload them to your website.

instructions:

download the latest release and pull out the e.g. concrete5.4.1.1/concrete folder and rezip just that by itself.
rename the /yoursite-dir/concrete to /yoursite-dir/concrete_OLD
upload and unzip into destination /yoursite-dir/ which will restore a fresh /yoursite-dir/concrete

run
http://yoursite.com/index.php/tools/required/upgrade...
or possibly
http://yoursite.com/index.php/tools/upgrade...

Auto
====

create the dir
/yoursite-dir/updates (if it doesn't exist)
and unzip a download of a concrete 5 download straight into there - you don't need to rezip or worry about structure.

Concrete 5 should now see that upgrade in the dashboard maintenance gui. Click to upgrade and you are done.

Note earlier versions of concrete don't have a proper dashboard upgrade gui and merely link you to download the zip - leaving you on your own (to stress out). If your installed version of concrete5 is this old, you will probably have to follow my manual upgrade steps above until you get a proper dashboard upgrade gui appearing. Then you can follow the 'auto' instructions.

By the way - often upgrading in smaller steps is safer. For example my recent upgrade path was:

from concrete5.3.3
went to concrete5.3.3.1
went to concrete5.4.0.5
went to concrete5.4.1.1
then to concrete5.5.2.1

More recent versions of concrete even download the latest zip for you and put it in /yoursite-dir/updates
automatically! So the process is now super easy.