I have 2.x-beta9 installed and if i try to upgrade it always fails.
Tried every version from the beta10 to the latest dev.

The following updates are pending:

workflow module :
7015 - Add database fields. Make Workflow entity-aware, exportable.

Do you wish to run all pending updates? (y/n): y
PHP Fatal error: Call to undefined function workflow_load_multiple() in /var/aegir/platforms/drupal-7.32/sites/all/modules/workflow/workflow.install on line 764

Fatal error: Call to undefined function workflow_load_multiple() in /var/aegir/platforms/drupal-7.32/sites/all/modules/workflow/workflow.install on line 764
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function workflow_load_multiple() in /var/aegir/platforms/drupal-7.32/sites/all/modules/workflow/workflow.install, line 764
The external command could not be executed due to an application error. [error]

Comments

johnv’s picture

Status: Active » Postponed (maintainer needs more info)

Cannot replicate this error. I never updated via Drush. What is your exact comment?
Does it help if you add the following in workflow_install_7015?

 module_load_include('inc', 'workflow', 'workflow.entity');
edgardodg’s picture

I had the same problem when I tried to update the workflow module. To solve this problem I did check the workflows configuration (admin/config/workflow/workflow) previously created and I found that the machine name was wrong. For example I had a workflow machine name "Case Study" and I did change to "case_study". After I made the corrections did the update and the error was gone.

johnv’s picture

Title: Database upgrade fails » Database upgrade fails with Call to undefined function workflow_load_multiple()
Version: 7.x-2.x-dev » 7.x-2.5
Status: Postponed (maintainer needs more info) » Fixed

Fixed. Thanks.
This is not relevant for the D8-version.

  • johnv committed 6fcbfcc on 7.x-2.x
    Issue #2372171: Database upgrade fails with Call to undefined function...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.