I created update script

$this->setAuthor('Oleksiy Kalinichenko');
$this->setDescription('Base installation: update all wetropa\'s features.');

// Revert all features
$this->drush('features-revert-all');

// Clear cache
drupal_flush_all_caches();

$this->finished();

and when I run it in admin zone, I got error message

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=2&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function drush_shell_exec() in sites/all/modules/contrib/updatescripts/includes/UpdatescriptAPI.class.inc on line 93

Comments

Hroudtwolf’s picture

Assigned: Unassigned » Hroudtwolf

Hi,

Do you have drush installed? If yes... Do it work?

Best regards
Hroudtwolf

aexchecker’s picture

Yes, I have Drush and it works with no error.

cbeier’s picture

The problem occurs if a $this->drush() command is executed via the admin interface ("Start processing?"). The drush_shell_exec() is only available if the updatescript is executed via the "drush runbsu".

@AxexChecker: You can also write:

$this->setAuthor('Oleksiy Kalinichenko');
$this->setDescription('Base installation: update all wetropa\'s features.');
// Revert all features
$this->drush('fra');
// Clear cache
$this->drush('cc all');
$this->finished();
Hroudtwolf’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

Fixed. See new release (4.15).
Thank you for posting the bug report.

a.milkovsky’s picture

Great. I can confirm that issue is fixed in new release