I get a fatal PHP error when I try to run the archive-dump
PHP Fatal error: Call to undefined function drush_export_info() in /REDACTED/.drush/drush/commands/core/archive.drush.inc on line 83
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function drush_export_info() in /REDACTED/.drush/drush/commands/core/archive.drush.inc, line 83
Comments
Comment #1
greg.1.anderson commentedIt is working for me in 5.x-dev. Please follow the issue submission guidelines.
This may or may not be related to your issue, but it is preferable to not store drush in your $HOME/.drush folder. If you put it there, then everything in the "examples" folder is in drush's search path, so the sample policy file is in effect, etc.; in the past, this has sometimes caused problems for some people.
Comment #2
gregglesWithout an update in over 2 weeks, marking as cannot reproduce.
Comment #3
craigmc commented~Sites/REDACTED $ drush archive-dump default --destination=~/tmp/test.tar --debug
Bootstrap to phase 0. [0.02 sec, 1.99 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.02 sec, 2.19 MB] [bootstrap]
Bootstrap to phase 2. [0.04 sec, 4.93 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.04 sec, 4.94 MB] [bootstrap]
Initialized Drupal 6.22 root directory at /Users/REDACTED/Zend/workspaces/DefaultWorkspace7/REDACTED [0.05 sec, 5.85 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.05 sec, 5.86 MB] [bootstrap]
Initialized Drupal site default at sites/default [0.05 sec, 5.86 MB] [notice]
Found command: archive-dump (commandfile=archive) [0.15 sec, 6.6 MB] [bootstrap]
Initializing drush commandfile: user [0.15 sec, 6.61 MB] [bootstrap]
Running: /usr/local/php5/bin/php /usr/local/drush/drush.php --php='/usr/local/php5/bin/php' --all --root='/Users/REDACTED/Zend/workspaces/DefaultWorkspace7/REDACTED' --uri='default' sql-conf --backend 2>&1 [0.15 sec, 6.66 MB] [command]
Undefined index: name sitealias.inc:665 [0.34 sec, 6.67 MB] [notice]
Executing: tar --exclude 'sites/*' -cf '~/tmp/test.tar' '.'
tar: Failed to open '~/tmp/test.tar': No such file or directory
Executing: tar -rf '~/tmp/test.tar' './sites/all'
tar: Cannot open ~/tmp/test.tar: No such file or directory
Executing: mkdir '/tmp/drush_tmp_1308862008'
Executing: mysqldump --result-file /tmp/drush_tmp_1308862008/handbago.sql --single-transaction --opt -Q handbago --host=localhost --user=drupal --password=drupal1
Calling chdir(/tmp/drush_tmp_1308862008)
Executing: tar -rf '~/tmp/test.tar' 'handbago.sql'
tar: Cannot open ~/tmp/test.tar: No such file or directory
Calling chdir(/Users/cmceldowney/Zend/workspaces/DefaultWorkspace7/handbago)
PHP Fatal error: Call to undefined function drush_export_info() in /usr/local/drush/commands/core/archive.drush.inc on line 83
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function drush_export_info() in /usr/local/drush/commands/core/archive.drush.inc, line 83 [8.11 sec, 6.66 MB]
Comment #4
craigmc commentedComment #5
bjaspan commenteddrush_export_info() is a new function in drush 4 dev and drush 5 dev. Did you take the archive.drush.inc file out of the git repo and try to run it under drush 4.4 or earlier?
Comment #6
lalit774 commentedHi,
drush_export_info() function is missing from drush 5.0. this function should be in drush/include/drush.inc.
download Development releases drush All-versions-5.x-dev release date on 2011-Nov-17.
drush_export_info() function found in new release.
Comment #7
moshe weitzman commentedIt is in drush.inc. Maybe your drush install is corrupted or too old.
Comment #8
psynaptic commentedI had this problem with drush 5.x-dev. Updating to the latest via drush self-update fixed the issue.
Comment #9
lalit774 commentedmay be drush self-update update stable release. you directly download drush from following link.
i face same problem 20 days ago. try this one.
http://ftp.drupal.org/files/projects/drush-All-versions-5.x-dev.tar.gz