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

kevinn’s picture

You need to activate context module first.

sutharsan’s picture

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

ar-jan’s picture

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.

michaelfavia’s picture

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

sanduhrs’s picture

Status: Active » Needs review
StatusFileSize
new927 bytes

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

sanduhrs’s picture

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.

tekante’s picture

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.

Status: Fixed » Closed (fixed)

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