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

greg.1.anderson’s picture

Status: Active » Postponed (maintainer needs more info)

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

greggles’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Without an update in over 2 weeks, marking as cannot reproduce.

craigmc’s picture


~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]

craigmc’s picture

Status: Closed (cannot reproduce) » Active
bjaspan’s picture

Status: Active » Closed (fixed)

drush_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?

lalit774’s picture

Hi,

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.

moshe weitzman’s picture

It is in drush.inc. Maybe your drush install is corrupted or too old.

psynaptic’s picture

I had this problem with drush 5.x-dev. Updating to the latest via drush self-update fixed the issue.

lalit774’s picture

may 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