Joomla 3.x to 4.x Step by Step Migration/fr: Difference between revisions
From Joomla! Documentation
No edit summary |
Created page with "# Assurez-vous d'utiliser la dernière version de Joomla 3.10.x avant de continuer. # Faites une sauvegarde de votre site 3.10.x. Vous pouvez utiliser un outil suggéré (voir..." |
||
| Line 26: | Line 26: | ||
== Etape par étape == | == Etape par étape == | ||
=== Créez un environnement de développement === | === Créez un environnement de développement === | ||
# | # Assurez-vous d'utiliser la dernière version de Joomla 3.10.x avant de continuer. | ||
# | # Faites une sauvegarde de votre site 3.10.x. Vous pouvez utiliser un outil suggéré (voir les outils suggérés en bas de page) ou le faire manuellement. | ||
#*[[S:MyLanguage/Backup_Basics_for_a_Joomla!_Web_Site| | |||
#*[[S:MyLanguage/What_are_the_best_practices_for_site_backups%3F| | #*[[S:MyLanguage/Backup_Basics_for_a_Joomla!_Web_Site|Sauvegarde d'un site Joomla! - principes de base]] | ||
# | #*[[S:MyLanguage/What_are_the_best_practices_for_site_backups%3F|Quelles sont les meilleures pratiques pour les sauvegardes de sites ?]] | ||
# | # Assurez-vous que votre environnement répond aux [https://downloads.joomla.org/pré-requis techniques de Joomla 4] avant de procéder. | ||
# | # Créez une nouvelle base de données et un nouvel utilisateur pour restaurer votre site 3.10.x. | ||
#* | # Créez un site de test ou un espace pour y travailler et restaurez votre copie de sauvegarde de votre site 3.10.x dans l'un de ces emplacements : | ||
#* | #* Un sous-domaine. | ||
#* | #* Un sous-répertoire. | ||
#* | #* Un dispositif local. Joomla propose un tutoriel détaillé sur l'installation de [http://sourceforge.net/projects/xampp/ XAMPP] à [[XAMPP]]. Cependant [https://www.wampserver.com/en/ WAMP], [https://www.mamp.info/en/windows/ MAMP], [https://sourceforge.net/projects/lampas/ LAMP] sont tous des alternatives appropriées. | ||
#** | #* Un compte d'hébergement sur un domaine temporaire à la racine (si vous souhaitez changer d'hébergeur lors du processus de migration) | ||
#** | #** Pour restaurer un site sur un dispositif local, voir [[S:MyLanguage/Installing Joomla locally|Installer Joomla localement]] et [[S:MyLanguage/Setting up your workstation for Joomla development|Configurer votre poste de travail pour le développement Joomla]]. | ||
# | #** Restaurez un site grâce un outil présenté en bas de page (lire la documentation pour les développeurs) | ||
# | # Sur votre espace de test, mettez à jour votre instanceJoomla! 3.10.x ivers la dernière version de maintenance. | ||
# Assurez-vous que le schéma de base de données a bien été mis à jour vers la dernière version 3.10.x en vous rendant dans l'onglet {{rarr|Système Informations,Base de données}}.Si le schéma n'est pas à jour, comme cela est le cas dans l'image suivante, cliquez sur le bouton Fixer ::{{-}}[[File:J310-admin-extension-database-fix-en.png|border]] | |||
# Empty trash: Do you have any articles in the trash? If so, delete them (and any applicable media that may be associated with them if not in use elsewhere on the site). Articles (categories and menu items too) left in the trash can cause issues in having a migration to complete without errors. | # Empty trash: Do you have any articles in the trash? If so, delete them (and any applicable media that may be associated with them if not in use elsewhere on the site). Articles (categories and menu items too) left in the trash can cause issues in having a migration to complete without errors. | ||
# Test. | # Test. | ||
Revision as of 17:01, 5 February 2021
This article is tagged because it NEEDS UPDATING. You can help the Joomla! Documentation Wiki by contributing to it.
More pages that need help similar to this one are here. NOTE-If you feel the need is satistified, please remove this notice.
Reason: Upload screenshots
Ce guide suppose que vous avez la version 3.10.x de Joomla. Si vous êtes sous une version antérieure, faites une mise à jour vers Joomla 3.10 avant de passer à Joomla 4.
Vous trouverez ci-après les instructions étape par étape pour migrer votre site 3.10.x vers Joomla! 4.x. Même s'il existe des centaines de scénarios différents, cette page vous indique la procédure de base à suivre. Des extensions tierces peuvent rendre cette migration très complexe. Nous vous encourageons à contacter les développeurs d'extensions tierces pour qu'ils vous guident dans la migration de leurs extensions.
La migration de Joomla! 3.10.x vers 4.x est considérée comme une migration mineure. En effet, les extensions de base de Joomla! seront mises à jour en un seul clic via le composant de mise à jour de Joomla! dans le panneau d’administration de Joomla. De nombreuses extensions tierces sont également mises à jour en un seul clic. Certaines ne le sont pas. Vous devez examiner chacune d'entre elles et déterminer comment effectuer la mise à jour de la version 3.10 à la version 4.x. Si vous ne l'avez pas encore fait, vous pourriez être intéressé par la lecture de Self Assessment et Planning for 3.10 to 4.x Migration avant de suivre les étapes ci-dessous.
Les Extensions du noyau Joomla!
- Catégories
- Articles
- Menus
- Modules (les modules natifs - non tierces)
- Bannières
- Champs
- Historique de contenu
- Contacts
- Messagerie privée
- Fils d'actualité
- Redirections
- Recherche (séparé dans 4.x. Utilisez la recherche intelligente à l'avenir. Voir les notes sous Évaluer Chaque Extension)
- Recherche avancée
- Tags
- Liens web (séparé mais votre site peut l'utiliser et pourra migrer. See Notes under Assess Each Extension)
Etape par étape
Créez un environnement de développement
- Assurez-vous d'utiliser la dernière version de Joomla 3.10.x avant de continuer.
- Faites une sauvegarde de votre site 3.10.x. Vous pouvez utiliser un outil suggéré (voir les outils suggérés en bas de page) ou le faire manuellement.
- Assurez-vous que votre environnement répond aux techniques de Joomla 4 avant de procéder.
- Créez une nouvelle base de données et un nouvel utilisateur pour restaurer votre site 3.10.x.
- Créez un site de test ou un espace pour y travailler et restaurez votre copie de sauvegarde de votre site 3.10.x dans l'un de ces emplacements :
- Un sous-domaine.
- Un sous-répertoire.
- Un dispositif local. Joomla propose un tutoriel détaillé sur l'installation de XAMPP à XAMPP. Cependant WAMP, MAMP, LAMP sont tous des alternatives appropriées.
- Un compte d'hébergement sur un domaine temporaire à la racine (si vous souhaitez changer d'hébergeur lors du processus de migration)
- Pour restaurer un site sur un dispositif local, voir Installer Joomla localement et Configurer votre poste de travail pour le développement Joomla.
- Restaurez un site grâce un outil présenté en bas de page (lire la documentation pour les développeurs)
- Sur votre espace de test, mettez à jour votre instanceJoomla! 3.10.x ivers la dernière version de maintenance.
- Assurez-vous que le schéma de base de données a bien été mis à jour vers la dernière version 3.10.x en vous rendant dans l'onglet Système Informations → Base de données.Si le schéma n'est pas à jour, comme cela est le cas dans l'image suivante, cliquez sur le bouton Fixer ::

- Empty trash: Do you have any articles in the trash? If so, delete them (and any applicable media that may be associated with them if not in use elsewhere on the site). Articles (categories and menu items too) left in the trash can cause issues in having a migration to complete without errors.
- Test.
- Backup again.
Assess Each Extension
In your planning, you determined which third-party extensions were staying or going and how they migrate. For this portion of the Step by Step, you’ll be using two different sections of the site extensively; The Pre-Update Check in Components → Joomla! Update and Extensions → Manage → Manage. You are going to be looking at every single extension installed on your site. You will be determining if they need to be updated to the latest version or uninstalled.
- Using the Pre-Update Check: in order to use the Pre-Update Check, you will need to set the Joomla! Update component to Joomla 4. To do this follow:
- Go to Components → Joomla Update. (It should say no updates found. If it doesn’t, update Joomla to the latest version (must be 3.10.x) and test. Then do another backup.) Click on the Options button at the top right corner.
- Select Joomla Next (This is the current text - it may be different in the future) from the drop-down for Update server.
Need an image just like below in go to j4 but the thing will not let me do it.
- Click Save & Close
- You will then see your Installed Joomla Version, the latest Joomla! version and the URL for the update package. Joomla will show you the requirements again for Joomla 4. If it flags that you have either an incompatible system or extensions it will tell you here. Take a moment to review this page.
Need an image just like below in the going to 4 section but the thing will not let me do it.
BIG NOTE: DO NOT UPDATE TO JOOMLA! 4 RIGHT NOW. THIS IS ONLY TO PREPARE YOUR THIRD-PARTY EXTENSIONS AND GET THE SITE COMPATIBLE WITH JOOMLA 4.
- Look at the Pre-Update Check and the Extension Pre-Update Check in the Pre-Update Check tab of the Joomla Update component. If any extension that isn’t in your planning is listed here, add it to your list of extensions to investigate.
- If you migrated from Joomla! 2.5 to 3.x in the past, there may be some leftover extensions that need to be cleaned up. The following are older 2.5 or 3.x extensions that need to be uninstalled before updating to Joomla 4:
- plg_content_geshi
- Bluestork Administrator Template
- Beez_20
- Beez5
- Atomic
- When it comes to templates, uninstall all core frontend or backend templates except Protostar and Beez3 (frontend templates) and Isis or Hathor (administrator templates)
- If you come across other files that need to be uninstalled, please add them to this page. This is a wiki so anyone can add to the page. Thank you in advance for your service.
- You will notice the tags for whether an extension is compatible or not. These tags generally tell a true story if they say No or Yes. If they say “Missing Compatibility Tag” it means that the extension developer didn’t use a tag in their extension so we don’t know if it is or isn’t compatible with Joomla 4. Talk to the developer to verify.
- Update Extensions: update any extensions that you will keep in your website. In Joomla! 3.10.x you can go to Extension Manager → Update tab and click Find Updates which will add a tooltip in the Version column, under the Manage tab, giving some compatibility information from the backend. This functionality only supports extensions that update via the Extension Manager Update tab. If you have extensions installed that do not use the Joomla extension update they need to be assessed manually as detailed below. The same goes for those extensions that have a tooltip. You will still need to check the type of package and migration path with the extension developer to verify how to upgrade/migrate.
- Uninstall and Investigate Extensions: go to Extension Manager → Manage tab
- Click the drop-down for Type.
- Select Package from the drop-down.
Selecting Package first is recommended because if there is something you need to uninstall in a package, it will automatically uninstall the associated Modules, Plugins, or anything else in the package at one time. - Uninstall any Packages that are no longer needed or will not be migrating to Joomla 4.
- Repeat this process of going through the Manage tab for all Types in the drop-down: Component, File, Language, Library, Module, Plugin and Template. If the Author states Joomla! Project, then leave those extensions alone. For all others, make sure that you uninstall those not in use or not compatible with Joomla! 4.x.NOTE! You will not be able to uninstall any template that is set as default. You will need to select a Core supported template like Beez3 or Protostar and then uninstall the template if you need to do so.
- Make a note of any versions of Packages and Components currently running that you will be keeping on your site. You can use the Third Party Extension Checklist and Inventory Sheet or just copy/paste them into a document for reference.
- For any extensions you are keeping but don't use the Extension Manager to one-click update (Extensions → Manage → Update) update all extensions to the latest versions.
- Before and as you update, note if the extensions have both 3.10.x & 4.x versions in the same package. If so, they will be fine to "one-click update." If not, and 3.10 and 4.x have different packages, you need to look at them case by case. They will normally fall into one of the following scenarios:
- The extension has separate packages but upon upgrading to 4.x, they automatically detect this and still work. Make sure the developer confirms this.
- The extension has separate packages that need to be uninstalled in 3.10.x and then installed with the Joomla 4.x version once the site is migrated. An example of this might be a content plugin. It is very simple to uninstall it in 3.10.x and then install it again in 4.x.
- See Template Considerations for more specific information on templates and Converting a previous Joomla! Version template
Notes on Search (com_search)
Search (com_search) will be decoupled in Joomla 4.x. Search (com_search) will migrate to Joomla 4. After migration, you'll need to update it to the Joomla 4.x version via com_installer. It will continue to be maintained, but more the same way a third-party extension is by receiving updates via com_installer. It is recommended to use Smart Search (com_finder) going forward. Search will still be available at https://extensions.joomla.org/category/official-extensions/.
Notes on Weblinks
Weblinks was decoupled back in Joomla 3.4. If it was in use on a 2.5 site, the migration process would note this and migrate the Weblinks component and data. For the migration from 3.10.x to 4.x, it will be the same. It is still available and maintained on the JED at Official Extensions.
Going to Joomla! 4.x
Once you have either updated or uninstalled your third-party extensions so that only those compatible with Joomla! 4 remain in your installation, continue with the following steps:
- Go to Site → Global Configuration → Server tab and turn Error Reporting from System Default to Maximum. Make sure to Save & Close.

- Take another backup.
- Go to Components → Joomla Update. (It should say no updates found. If it doesn’t, update Joomla to the latest version and test. Then do another backup.) Click on the Options button at the top right corner.
- Select Joomla Next (This is the current text—it may be different in the future.) from the drop-down for Update server.

- Click Save & Close.
- You will then see your Installed Joomla Version, the Latest Joomla! version and the URL for the update package. Joomla will show you the requirements again for Joomla 4. If it flags that you have either an incompatible system or extensions it will tell you here. Take a moment to review this page.

- If the update is not showing up, go to Extension manager → Update and press Purge Cache from the toolbar. Now the update to Joomla! 4 should show up.
- Cross your fingers, and make sure you have that backup available in case.
- Click the Install the Update button.
- Make tea whilst the spinning circle goes round and round. The amount of time the wheel spins is dependent on your site, Internet connection and server speed. The process takes about two minutes. When the update is finished, you will probably be logged out of the Administrator. Sign in again. Twice.
- If all goes well, you will get to a totally new look to the backend administrator panel.

- Click the Clear Cache button. You will now see a A Joomla update was found notice for a later version of Joomla. Postpone this update temporarily.
- Go to Extensions → Manage → Database and click Fix if any errors show.
- In the Extension Manager, go to Discover and see if there are any extensions to install. (There shouldn't be any!)
- Go to the frontend of your site and see if it shows up even if it’s not the right template. If so, continue. If not, see common errors during migration.
- Take a backup.
- Install your new template or other extensions if you have them to install. Back up often.
- Configure them. Back up often.
- Test everything. Back up often.
- If everything works as expected, turn Error Reporting back to System Default (System → Global Configuration → Server tab). Make sure to Save & Close.
Going Live with your Joomla! 4.x Site
- When you’re ready to go live, back up your 3.10 site for the last time. Restore it in a subdirectory or subdomain if you would like to.
- Back up your Joomla! 4.x site and move or restore your Joomla! 4.x site to the root (or change nameservers if you were building on a temporary domain at a new hosting account root).
- Test again.
- Remove the Joomla! 3.10 site from the server within a couple of days unless you have edited your robots.txt file to block the search engine spiders.
- Remove all development sites you have been working with or keep them up-to-date if they are running a current version in order to ward off hack attempts on your server.
If you had data change on the 3.10 site while you were migrating to 4.x, you will want to get that data moved over to the 4.x site before going live. You can do this manually (make sure you keep the same user IDs - go in order) or by using a third party extension.
Suggested Tools
- Akeeba Backup is very popular for backup and restore. See more backup tools.