سؤال

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?

هل كانت مفيدة؟

المحلول

Updating a module is usually two steps:

  1. Replace the files with the new version you downloaded, for example via FTP.
  2. 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.

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى drupal.stackexchange
scroll top