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

Drush pipe error

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markhalliwell’s picture

Status: Active » Closed (duplicate)
Related issues: +#2534640: Call to undefined function drush_sqlsync_sql_sync_validate()
kyletaylored’s picture

Damn, I need to read more.

Maybe change this to a feature request to add a notification that detects the version of drush before upgrading?

markhalliwell’s picture

Title: Error: Call to undefined function drush_sqlsync_sql_sync_validate() » Fix update and notify of older version of Drush
Version: 7.x-2.0 » 7.x-2.x-dev
Status: Closed (duplicate) » Active

Yes... 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.

  • markcarver committed ae2ae64 on 7.x-1.x
    Issue #2534744 by markcarver: Fix update and notify of older version of...

  • markcarver committed 7505e1f on 7.x-2.x
    Issue #2534744 by markcarver: Fix update and notify of older version of...
markhalliwell’s picture

Status: Active » Fixed

Ok... 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.