0

I tried to update a Drupal 7 site to the latest version. The old Drush update doesn't work and it throws an error about a unknown engine type output format.

I tried to delete the web folder, extract Drupal 8 files, change the database connection settings to use the old database, and call update.php. It doesn't work, and it throws errors about MySQL encoding.

I tried to install Drush 9 to upgrade core, but it keeps complaining about the composer.json file.

I tried to install Drush 8, but it shows more errors.

How am I supposed to update an old Drupal installation to latest core version?

  • D7 is an apple, D8 is an orange. You just can't "upgrade it". You'll need to do a "migration". – No Sssweat Apr 13 '18 at 23:24
1

From Drupal documentation :

Strictly speaking, 'updating' refers to taking your site from one 'minor' version to another, as for example, from Drupal 7 version d7.1, to d7.2; or from Drupal 8 version d8.0.0 to d8.1.3, etc.

Which means upgrade can be done only to minor version.

If you want to change the whole version for example moving from Drupal 7 to Drupal 8 you need to migrate your site, and this normally involved a data migration and restructuring, Also changing and reviewing your custom modules code.

See Upgrading from Drupal 6 or 7 to Drupal 8

| improve this answer | |
  • And to further clarify, while Drupal 7 is still supported (should be for at least another year or two—whenever Drupal 9 is released), it’s best to just keep it updated to the latest 7.x release unless you really have a compelling reason to upgrade to Drupal 8. Unless it’s a really simple site, migrating from 7 to 8 will take some time, and you need to see if it’s worth it yet. – geerlingguy Apr 15 '18 at 5:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.