J2.5

Difference between revisions of "Updating from an existing version"

From Joomla! Documentation

(add 2.5 icon)
(80 intermediate revisions by 12 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{warning|This doc is under review, please do not use until it is updated.}}{{warning|<center>'''Always back up your site before updating.'''</center>}}{{notice|Newer documentation is available that starts with the page [[Why Migrate]] and is a funnel for migrating from 2.5 to 3.x. |title=Please Take Note}} {{notice|This page is only for upgrading from Joomla! versions '''1.7''' to '''2.5''' or a '''2.5.x''' version to '''{{CurrentLTSVer}}'''.{{-}} For '''Version 1.6''' see the [[#Troubleshooting|Joomla! version 1.6 work around]] section.|title=Please Take Note}}
It is recommended that you back up your site before upgrading to a new version. That way, if something goes wrong during the upgrade process, you can easily restore your site to the earlier version. Also, it is a good idea to review the release notes for the new version to be familiar with what was changed.
+
__TOC__
 +
The recommended way to update installations of Joomla! is to use the Joomla Updater component '''(Method A)''' found in the Components menu of your site Administrator.
  
Starting with version 1.6, there is a new option for upgrading your site from within Joomla. The old method of upgrading from an archive file still works as well. Both methods are documented here.
+
== Quick Overview ==
 +
This section is a quick summary of Method A. Most updating is a maintenance version update and a simple procedure. Be sure you have a backup of the current installation.
 +
;Browse to Components {{rarr}} Joomla Update
  
=Simple Upgrade from Joomla Extension Manager=
+
*If an update is available there will be a message indicating this and a button to press.
{{JVer|1.6}}{{JVer|1.7}}{{JVer|2.5}}
+
[[File:Updatewaiting.PNG|670px]]
  
To upgrade from version 1.6.x to Joomla 1.7 please follow this [[Upgrade 1.6.5 to 1.7|guide]]
+
*Click on the "Install the Update" button and allow the update to run.
  
==Step 1: Make sure you have a current backup of your site==
+
[[File:Updatecompleted25.PNG]]
  
==Step 2: Find and install uppdates==
+
{{Tip|When updating has completed you may need to refresh your screen or empty your browser cache to adjust for template CSS changes.}}
# In the back end of your Joomla site, navigate to Extensions &rarr; Extension Manager and open the Update tab.
+
{{warning|Joomla! will notify on your administrator home page (control panel) when an update is needed, but it will not do the update for you. You need to press the button to start the update.|title=It is Very Important to Note!}}
# Click on the Purge Cache icon to clear out the cache.
 
# Click on the Find Updates icon in the toolbar. If there is an available update, the screen will list it, similar to the screen shown below. [[Image:Update_screenshot_20110417-01.png|frame|center]] Note that available upgrades for extensions used in the site will also show in the list.
 
# Select the update (using the checkbox) and click on the Update icon in the toolbar.  
 
# '''IMPORTANT:''' This process will take a few minutes. Wait until the process completes and the success message shows, similar to the screen shown below. [[Image:Update_screenshot_20110417-02.png|frame|center]]
 
# Congratulations! At this point, your site is updated. Check that your site is working correctly. If you have any questions before, during, or after the upgrade then please ask them on the [http://forum.joomla.org/viewforum.php?f=625&sid=259a29d8e21242b6770f86026f6c9c3a Joomla! 1.6 Migrating and Upgrading Forum].
 
  
=Manual Unpack Archive Method=
+
==Checking Site==
{{JVer|1.5}}{{JVer|1.6}}{{JVer|1.7}}
+
'''This is required for method A and B!'''
==Step 1: Download the upgrade file==
+
After an update, it is a good idea to clear your browser cache snd check your site to make sure the update was successful. There are two quick checks you can do from the Extension Manager.
 +
==Extension Manager: Check Database==
 +
{{JVer|2.5}} This feature was added in version 2.5.0. It checks that your database is up to date with your Joomla programs.  
  
To download the most recent patch package and to obtain the MD5 hash:
+
Navigate to Extension Manager: Database. If your database is up to date, you should see a screen similar to the one below:
 +
[[Image:Update-screenshot-20120124-04.png|center|Database Screen With No Problems]]
  
* Proceed to the [http://www.joomla.org/download.html Joomla Download] page.
+
If your database is not up to date, you will see a screen listing the problems found, similar to the one below:
* Click the "Download other Joomla 1.6.x packages" link
+
[[Image:Update-screenshot-20120124-05.png|center|Database Screen With 3 Database Problems]]
* Click the "Joomla1.6.XUpdates" link under the "Packages" heading to go to the detail page about the current package
+
In this case, press the Fix button in the upper right corner. Joomla will update your database to correct the issues listed and then it will re-display the screen. If the fix was successful, the display will indicate that the database is up to date.
* Click the "Files" tab to view the various patch files.
 
*  Locate the row that matches your current installation version and patch  package (zip, tar.gz and tar.bz2) that is most convenient for you.  
 
  
If you have questions about these instructions, read the ''Additional Information'' below this table.
+
'''N.B.''' If any errors fail to fix then make sure all the database Tables are checked in.
  
'''Additional information:'''
+
;Extension Manager: Discover
 +
In some cases, when you update to a new Joomla version, new core extensions are added. If there were problems with the database update, these extensions may not have been correctly installed. To check this, navigate to Extension Manager: Discover. Then click on the Discover icon in the toolbar. The screen should show as follows:
 +
[[Image:Update-screenshot-20120124-06.png|center|Discover Screen With No Extensions To Install]]
 +
If so, you know that any new extensions added during the udpate were correctly installed in the database.
  
{{Ambox|image=notice|text=[[Chunk:patch|What is a patch?]]|style=width:400px}}
+
If there are uninstalled extensions, they will show similar to the following screen:
 +
[[Image:Update-screenshot-20120124-07.png|800px|center|Discover Screen With Two Extensions To Install]]
 +
In this case, check the check boxes and click on the Install icon in the toolbar. Joomla will install the extension(s) and then display the screen showing no extensions discovered. At this point, the new extensions have been installed in the database.
  
 +
==Troubleshooting==
  
{{Ambox|image=notice|text=[[Unpacking a package file|Which package format should I use?]]|style=width:400px}}
+
;Trouble Shooting and Advanced Techniques
 +
Starting with version 1.6, there are three ways to update your Joomla Website to versions 1.6, 1.7 or 2.5.
 +
If you are in an older version that did not support one click updates or are on a server that does not allow such updates you should use one of these options.
  
 +
* Extension Manager: Update
 +
* Extension Manager: Install
 +
* Manually Copy Program Files
  
{{Ambox|image=notice|text=[[How to determine a package checksum|How do I use the MD5 hash to check the package?]]|style=width:400px}}
+
Each of these is discussed below.
  
==Step 2: Backup your site==
+
===Upgrade from version earlier than 1.6.x to Joomla 1.7? ===
Before  you actually upgrade, you really should make a backup of your site. Backup your existing Joomla site files and store all the files and  database in case something gets messed up, you wont have any problem  reverting back.
+
This page does not contain the instructions for migrating a Website from Joomla versions earlier than 1.6. See the [[J2.5:Migrating from Joomla 1.5 to Joomla 2.5|Migrating from Joomla 1.5 to Joomla 2.5]] page.
  
All upgrades should be first tested on a copy of your site before being applied to a live site.
+
===Upgrade from version 1.6.x to Joomla 1.7? ===
 +
Note: To upgrade from version 1.6.x to Joomla 1.7 please follow the [[Upgrade 1.6.5 to 1.7|Upgrade 1.6.5 to 1.7 guide]] before you upgrade to Joomla 2.5.
  
==Step 3: Install the upgrade file==
+
===Upgrade to Joomla 2.5 on shared hosts===
With the 1.7.0 to 1.7.1 upgrade, there are some database changes that need to be made.
+
{{notice|<small>''On some shared host environments (GoDaddy.com and perhaps others), the normal Joomla update from 1.7 to 2.5 can intermittently fail with the error "Internal Server Error". In some cases, this can happen in the middle of the file transfer process and cause errors on the site. On GoDaddy.com, this appears to happen when the server is under a heavy load and the update takes longer than 2 minutes to complete.''
 +
''Based on recent testing, sites on these slower shared hosts can safely be updated using a free third-party extension called [http://tinyurl.com/7d9odse Admin Tools]. If you are updating a site on a shared host, please consider using Admin Tools or else use the Manually Copy Program Files method outlined below.''
 +
''If you have experienced an error during the update, there is a process for repairing the site.''</small>|title=Important note as of 28 January 2012}}
  
If you use one of these manual methods to copy the files, you also need to manually update your site's database. To do so locate the six files  beginning with 1.7.1 in the folder <tt>/administrator/components/com_admin/sql/updates/mysql</tt>.
+
'''Steps and actions:'''
 +
It is recommended that you follow these steps when updating a production site:
 +
# Back up your site before upgrading to a new version. That way, if something goes wrong during the upgrade process, you can easily restore your site to the earlier version.  
 +
# Review the release notes for the new version to be familiar with what was changed.
 +
# Update using one of the recommended methods outlined in this document. These methods install the new program files, delete unneeded old program files, and update the database as needed for the new Joomla version.
 +
# Clear your browser cache and check that the update was successful, using the steps outlined in the '''Checking Site''' tab.
  
Inside these files you will find parts like <code>#__modules</code> and <code>#__categories</code>. Replace the pound sign and the first underscore (<code>#_</code>) with your [[Database Table Prefix|database tables prefix]]. By default this is <code>jos</code>. If you didn't get the prefix before starting, open your site's <tt>configuration.php</tt> and search for <code>$dbprefix</code>. The string inside the single quotes behind it is what you're looking for. So you need to change <code>#__languages</code> to <code>jos_languages</code> and so on.
+
If you have any questions before, during, or after the upgrade then please ask them on the [http://forum.joomla.org/viewforum.php?f=625&sid=259a29d8e21242b6770f86026f6c9c3a Joomla! 1.6 Migrating and Upgrading Forum].
  
Once you've done this go to your site's phpmyadmin (or any way you usually manage your database) and open the database your site uses. There will be a tab called SQL, open this. Paste the content of your modified sql files inside the text area and press go.
+
{{tip|title=Problems or Errors During the Update Process?|
 
+
If you have problems or errors during the update process, here are some tips.
{{installing a package file}}
+
* Clear your browser cache as there may have been changes to the css or javascript that will need to be reloaded by your web browser.
 
+
* If any database error messages show after the update, be sure to check the Extension Manager: Database tab followed by the Extension Manager: Discover tab. In some cases, if a database error occurs it will prevent all the database updates from running. In this case, you can run them from the Database tab and then use the Discover&rarr;Install method to check and install any new extensions.
==Step 4: Check your live site to make sure it is working correctly==
+
* If you encounter any errors or problems during or after the update, be sure to check the FAQ for the version you updated to. For example, for version 2.5.0, this will be an article entitled [http://docs.joomla.org/Category:Version_2.5.0_FAQ http://docs.joomla.org/Category:Version_2.5.0_FAQ].}}
Don't  assume that the upgrade will work flawlessly just because the test  upgrade worked.  Check to make sure that nothing untoward has happened.  It could be that differences between the live site and test site  platforms will bring out a problem that you did not notice during  testing. If you find a problem and it cannot be resolved quickly you  might have to rollback the upgrade using the backup copy you created in  step 2.
 
 
 
Hopefully all will be well and you can relax. If you have any questions before, during, or after the upgrade then please ask  them on the [http://forum.joomla.org/viewforum.php?f=625&sid=259a29d8e21242b6770f86026f6c9c3a Joomla! 1.6 Migrating and Upgrading Forum].
 
 
 
Return to [[Upgrade Instructions]]
 
  
 
[[Category:Upgrading]]
 
[[Category:Upgrading]]
 +
[[Category:Joomla! 2.5]]
 +
[[Category:Update Working Group]]
 +
[[Category:Incoming External Link]]

Revision as of 00:15, 4 March 2015

The "J2.5" namespace is a namespace scheduled to be archived. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Stop hand nuvola.svg.png
Warning!

This doc is under review, please do not use until it is updated.

Stop hand nuvola.svg.png
Warning!

Always back up your site before updating.

Info non-talk.png
Please Take Note

Newer documentation is available that starts with the page Why Migrate and is a funnel for migrating from 2.5 to 3.x.

Info non-talk.png
Please Take Note

This page is only for upgrading from Joomla! versions 1.7 to 2.5 or a 2.5.x version to 2.5.28.

For Version 1.6 see the Joomla! version 1.6 work around section.

The recommended way to update installations of Joomla! is to use the Joomla Updater component (Method A) found in the Components menu of your site Administrator.

Quick Overview[edit]

This section is a quick summary of Method A. Most updating is a maintenance version update and a simple procedure. Be sure you have a backup of the current installation.

Browse to Components    Joomla Update
  • If an update is available there will be a message indicating this and a button to press.

670px

  • Click on the "Install the Update" button and allow the update to run.

File:Updatecompleted25.PNG

A Tip!

When updating has completed you may need to refresh your screen or empty your browser cache to adjust for template CSS changes.

Stop hand nuvola.svg.png
It is Very Important to Note!

Joomla! will notify on your administrator home page (control panel) when an update is needed, but it will not do the update for you. You need to press the button to start the update.


Checking Site[edit]

This is required for method A and B! After an update, it is a good idea to clear your browser cache snd check your site to make sure the update was successful. There are two quick checks you can do from the Extension Manager.

Extension Manager: Check Database[edit]

Joomla 2.5 This feature was added in version 2.5.0. It checks that your database is up to date with your Joomla programs.

Navigate to Extension Manager: Database. If your database is up to date, you should see a screen similar to the one below:

Database Screen With No Problems

If your database is not up to date, you will see a screen listing the problems found, similar to the one below:

Database Screen With 3 Database Problems

In this case, press the Fix button in the upper right corner. Joomla will update your database to correct the issues listed and then it will re-display the screen. If the fix was successful, the display will indicate that the database is up to date.

N.B. If any errors fail to fix then make sure all the database Tables are checked in.

Extension Manager
Discover

In some cases, when you update to a new Joomla version, new core extensions are added. If there were problems with the database update, these extensions may not have been correctly installed. To check this, navigate to Extension Manager: Discover. Then click on the Discover icon in the toolbar. The screen should show as follows:

Discover Screen With No Extensions To Install

If so, you know that any new extensions added during the udpate were correctly installed in the database.

If there are uninstalled extensions, they will show similar to the following screen:

Discover Screen With Two Extensions To Install

In this case, check the check boxes and click on the Install icon in the toolbar. Joomla will install the extension(s) and then display the screen showing no extensions discovered. At this point, the new extensions have been installed in the database.

Troubleshooting[edit]

Trouble Shooting and Advanced Techniques

Starting with version 1.6, there are three ways to update your Joomla Website to versions 1.6, 1.7 or 2.5. If you are in an older version that did not support one click updates or are on a server that does not allow such updates you should use one of these options.

  • Extension Manager: Update
  • Extension Manager: Install
  • Manually Copy Program Files

Each of these is discussed below.

Upgrade from version earlier than 1.6.x to Joomla 1.7?[edit]

This page does not contain the instructions for migrating a Website from Joomla versions earlier than 1.6. See the Migrating from Joomla 1.5 to Joomla 2.5 page.

Upgrade from version 1.6.x to Joomla 1.7?[edit]

Note: To upgrade from version 1.6.x to Joomla 1.7 please follow the Upgrade 1.6.5 to 1.7 guide before you upgrade to Joomla 2.5.

Upgrade to Joomla 2.5 on shared hosts[edit]

Info non-talk.png
Important note as of 28 January 2012

On some shared host environments (GoDaddy.com and perhaps others), the normal Joomla update from 1.7 to 2.5 can intermittently fail with the error "Internal Server Error". In some cases, this can happen in the middle of the file transfer process and cause errors on the site. On GoDaddy.com, this appears to happen when the server is under a heavy load and the update takes longer than 2 minutes to complete.

Based on recent testing, sites on these slower shared hosts can safely be updated using a free third-party extension called Admin Tools. If you are updating a site on a shared host, please consider using Admin Tools or else use the Manually Copy Program Files method outlined below.

If you have experienced an error during the update, there is a process for repairing the site.

Steps and actions: It is recommended that you follow these steps when updating a production site:

  1. Back up your site before upgrading to a new version. That way, if something goes wrong during the upgrade process, you can easily restore your site to the earlier version.
  2. Review the release notes for the new version to be familiar with what was changed.
  3. Update using one of the recommended methods outlined in this document. These methods install the new program files, delete unneeded old program files, and update the database as needed for the new Joomla version.
  4. Clear your browser cache and check that the update was successful, using the steps outlined in the Checking Site tab.

If you have any questions before, during, or after the upgrade then please ask them on the Joomla! 1.6 Migrating and Upgrading Forum.

Problems or Errors During the Update Process?

If you have problems or errors during the update process, here are some tips.

  • Clear your browser cache as there may have been changes to the css or javascript that will need to be reloaded by your web browser.
  • If any database error messages show after the update, be sure to check the Extension Manager: Database tab followed by the Extension Manager: Discover tab. In some cases, if a database error occurs it will prevent all the database updates from running. In this case, you can run them from the Database tab and then use the Discover→Install method to check and install any new extensions.
  • If you encounter any errors or problems during or after the update, be sure to check the FAQ for the version you updated to. For example, for version 2.5.0, this will be an article entitled http://docs.joomla.org/Category:Version_2.5.0_FAQ.