How do I update a module manually?
-
16-10-2019 - |
Pergunta
I need to update my Views module in Drupal 7. Drupal won't do it automatically. It says the download is not available.
I have downloaded the new version manually, but when I try to install it via 'add new module', the message is 'views is already installed'. How do I update the module?
Solução
Updating a module is usually two steps:
- Replace the files with the new version you downloaded, for example via FTP.
- Run update.php (it is not always needed, but run it to check if updates are needed).
When updating, it can be a good idea to try the update on a local development environment to check that nothing breaks, and do a backup before the live update. Some updates are minor and won't need this.
Views, which stores a lot of configuration in the database and has recently undergone major changes, is one of those modules where you usually want to test it out before upgrading.
Outras dicas
I think you'll find everything you need from at the following links:
IMO, the most important step is: don't forget to always backup your database before any changes.