Download & Extend

Undefined function context_load() during update

Project:Context
Version:7.x-3.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When upgrading context throws the error

Error: Call to undefined function context_load() in
/Users/erik/www/wizzlern7/sites/all/modules/context/context.install, line 292

context_load() is defined in context.module.

Comments

#1

You need to activate context module first.

#2

This occurs during the standard upgrade procedure, in this case executed with "drush sup". In my opinion the module should handle this situation.

#3

Perhaps a notice on the project page and in the README.txt concerning "Upgrading from Context 6.x-3.x to 7.x-3.x"? Since the standard way to upgrade is with modules disabled.

#4

This error occurs with the module disabled as well when you upgrade it after d7 does its thing.

#5

Status:active» needs review

Had the same problem.
The attached patch fixed it for me.

AttachmentSize
Undefined_function_context_load_during_update-1128528-5.patch 927 bytes

#6

Priority:normal» critical

Just had the same problem again, upgrading a different site.
The patch in #5 fixed it.

Increasing this to critical, as it breaks the upgrade path from D6 to D7.
In addition the patch doesn't introduce any problems, it just checks whether the module is loaded and if not loads it.

Please review.

#7

Status:needs review» fixed

Committed to 7.x-3.x branch and will be available in latest dev release shortly. Thanks for the bug report and patch.

#8

Status:fixed» closed (fixed)

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

nobody click here