Closed (fixed)
Project:
Update script processor
Version:
7.x-4.11
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Oct 2013 at 10:47 UTC
Updated:
5 Dec 2013 at 08:42 UTC
Jump to comment: Most recent
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
Comment #1
Hroudtwolf commentedHi,
Do you have drush installed? If yes... Do it work?
Best regards
Hroudtwolf
Comment #2
aexchecker commentedYes, I have Drush and it works with no error.
Comment #3
cbeier commentedThe 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:
Comment #4
Hroudtwolf commentedFixed. See new release (4.15).
Thank you for posting the bug report.
Comment #5
a.milkovskyGreat. I can confirm that issue is fixed in new release