Posted by Sutharsan on April 15, 2011 at 3:48pm
7 followers
| 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 292context_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
Had the same problem.
The attached patch fixed it for me.
#6
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
Committed to 7.x-3.x branch and will be available in latest dev release shortly. Thanks for the bug report and patch.
#8
Automatically closed -- issue fixed for 2 weeks with no activity.