Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just upgraded to 7.x-2.0 and started getting this error.
Drush command terminated abnormally due to an unrecoverable error.
Error: Call to undefined function drush_sqlsync_sql_sync_validate() in ~/.drush/drush_sql_sync_pipe/sql_sync_pipe.drush.inc, line 92
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2015-07-16 at 2.43.00 PM.png | 48.51 KB | kyletaylored |
Comments
Comment #1
markhalliwellComment #2
kyletaylored CreditAttribution: kyletaylored at LevelTen Interactive commentedDamn, I need to read more.
Maybe change this to a feature request to add a notification that detects the version of drush before upgrading?
Comment #3
markhalliwellYes... I unfortunately thought about this after the fact and the way the updating works in the 7.x-1.x branch, it will always see the 7.x-2.x releases as an "upgrade", so there's no longer a way for 1.x releases to do this.
I suppose what I can do is check the Drush version in 2.x and notify users that they have an outdated version of Drush. Also giving instructions on how to download the older version.
Comment #6
markhalliwellOk... this should be a little easier for everyone.
I have released 7.x-2.1 and 7.x-1.4 with a fix that prevents this command from trying to automatically update to major versions.
I've also added Drush version support detection so that is the first thing that is checked, so no nasty errors anymore when there's a version mismatch.