I did run "drush updatedb" & "drush cc all" but in the frontend of the site i'm getting this error:

Fatal error: Call to undefined function context_set_by_condition() in [...] modules/context/context_contrib/context_contrib.module on line 86

ctools is up to date...

Help...?

Comments

yhahn’s picture

Status: Active » Fixed

Please upgrade as you would for a major branch upgrade - remove the old context codebase and replace it with the new one. Context contrib no longer exists in 3.x (it's been merged in to context proper), so you're getting an error because the 2.x version is still around and kicking.

muschpusch’s picture

Thank you but could you be a little more specific? I disabled the module, deleted the "context" and enabled "context" again but the table isn't made... I can import the table from a clean install but isn't there an easier way? Another question would be how can i migrate my contexts to the new version?

ps: the documentation on updating looked a little bit easier than it actually is :p

yhahn’s picture

"remove the old context codebase" means actually delete the old module before unpacking context 3. e.g.

$ rm -rf context

As for upgrading I don't have much to add to what's been written in README.txt. Don't disable context before updating, it needs to remain enabled when drush updatedb runs.

electblake’s picture

Thanks, my issue was also replacing files in place. I -rf'd the dir and expanded latest release and without any update.php action it works just fine.

Status: Fixed » Closed (fixed)

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