Using drush up I got:

The external command could not be executed due to an application error.
Error: Call to undefined function rules_get_items() in sites/all/modules/rules/rules_admin/rules_admin.module, line 75

I attached a list of installed modules. Let me know if I can help with additional information.

CommentFileSizeAuthor
Installed Modules1.1 KBguidot
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

philipz’s picture

Component: Rules Core » Rules Engine

I get the same problem after installing Drupal Commons and then hitting drush up.

fago’s picture

Looks like hook_menu() of rules_admin is invoked although its dependency "rules" is not there. Sounds like it would be caused by the (unknown) underlying problem causing #903246: Fatal error: Call to undefined function rules_include().

jkugler’s picture

Priority: Normal » Major

This is the traceback I get when trying to install/update to 1.4 (as well as -dev) with drush:

The external command could not be executed due to an application error. [error]
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function rules_include() in
/home/jkugler/websites/domain.com/html/sites/all/modules/rules/rules_admin/rules_admin.sets.inc, line 9
Output from failed command : [error]

Fatal error: Call to undefined function rules_include() in
/home/jkugler/websites/domain.com/html/sites/all/modules/rules/rules_admin/rules_admin.sets.inc on line
9

Call Stack:
0.0008 748432 1. {main}() /usr/local/lib/drush/drush.php:0
0.0179 3653344 2. drush_main() /usr/local/lib/drush/drush.php:41
0.4893 59875968 3. drush_dispatch(array(22), ???) /usr/local/lib/drush/drush.php:101
0.4893 59880632 4. call_user_func_array(string(13), array(0))
/usr/local/lib/drush/includes/command.inc:204
0.4893 59881000 5. drush_command() /usr/local/lib/drush/includes/command.inc:0
0.4895 59887352 6. call_user_func_array(string(12), array(1))
/usr/local/lib/drush/includes/command.inc:721
0.4895 59887408 7. drush_invoke(string(24)) /usr/local/lib/drush/includes/command.inc:0
0.4898 59887720 8. drush_invoke_args(string(24), array(0))
/usr/local/lib/drush/includes/command.inc:58
0.4901 59908816 9. call_user_func_array(string(30), array(0))
/usr/local/lib/drush/includes/command.inc:120
0.4901 59909184 10. drush_pm_updatecode_postupdate() /usr/local/lib/drush/includes/command.inc:0
0.4901 59909184 11. drush_drupal_cache_clear_all()
/usr/local/lib/drush/commands/pm/pm.drush.inc:1590
0.4902 59909544 12. drush_invoke(string(11), string(3)) /usr/local/lib/drush/includes/drush.inc:275
0.4907 59953480 13. drush_invoke_args(string(11), array(1))
/usr/local/lib/drush/includes/command.inc:58
0.4910 59971992 14. call_user_func_array(string(22), array(1))
/usr/local/lib/drush/includes/command.inc:120
0.4910 59972480 15. drush_core_cache_clear(string(3)) /usr/local/lib/drush/includes/command.inc:0
0.4922 60038088 16. drush_op(string(23)) /usr/local/lib/drush/commands/core/clear.cache.inc:30
0.4923 60038480 17. call_user_func_array(string(23), array(0))
/usr/local/lib/drush/includes/drush.inc:1164
0.4923 60038848 18. drupal_flush_all_caches() /usr/local/lib/drush/includes/drush.inc:0
0.5176 60117376 19. menu_rebuild()
/home/jkugler/websites/domain.com/html/includes/common.inc:3770
0.5179 60118328 20. menu_router_build(bool)
/home/jkugler/websites/domain.com/html/includes/menu.inc:1702
0.5258 60982104 21. call_user_func(string(12))
/home/jkugler/websites/domain.com/html/includes/menu.inc:1729
0.5258 60982104 22. trigger_menu() /home/jkugler/websites/domain.com/html/includes/menu.inc:0
0.5258 61000880 23. module_invoke_all(string(9))
/home/jkugler/websites/domain.com/html/modules/trigger/trigger.module:95
0.5265 61018896 24. call_user_func_array(string(18), array(0))
/home/jkugler/websites/domain.com/html/includes/module.inc:483
0.5265 61019264 25. workflow_hook_info()
/home/jkugler/websites/domain.com/html/includes/module.inc:0
0.5271 61025336 26. t(string(45), array(3), ???)
/home/jkugler/websites/domain.com/html/sites/all/modules/workflow/workflow.module:1491
0.5271 61026456 27. theme(string(11), string(7))
/home/jkugler/websites/domain.com/html/includes/common.inc:938
0.5271 61027168 28. init_theme() /home/jkugler/websites/domain.com/html/includes/theme.inc:606
0.5271 61029912 29. _init_theme(class stdClass, array(0), ???)
/home/jkugler/websites/domain.com/html/includes/theme.inc:59
0.5280 61146128 30. _theme_load_registry(class stdClass, array(0), string(11))
/home/jkugler/websites/domain.com/html/includes/theme.inc:179
0.5283 61146208 31. _theme_build_registry(class stdClass, array(0), string(11))
/home/jkugler/websites/domain.com/html/includes/theme.inc:225
0.9757 85009704 32. _theme_process_registry(array(438), string(11), string(6), string(11),
string(35)) /home/jkugler/websites/domain.com/html/includes/theme.inc:421
0.9831 85422648 33.
require_once('/home/jkugler/websites/domain.com/html/sites/all/modules/rules/rules_admin/rules_admin.sets.inc')
/home/jkugler/websites/domain.com/html/includes/theme.inc:291

fago’s picture

Status: Active » Closed (fixed)

Close due to long inactivity. Please don't hesitate to re-open if the issue is still relevant.

Gerald Mengisen’s picture

Component: Rules Engine » Rules Core

For what it's worth: I got this error when trying to uninstall rules_admin via Drush. At that point, I had already disabled the rules module. So I re-enabled the rules module, then I was able to uninstall rules_admin, and finally the rules module itself (all via Drush). Hope this helps somebody.

sja1’s picture

It helped me, thanks!