Call to undefined function themekey_invoke_modules() in .../themekey/themekey_build.inc on line 69

Error occurred during update to 3.1. Originally had only Themekey installed with themekey and themekey_ui enabled. Attempted downloading and enabling themekey_properties but this made no difference.

Comments

mkalkbrenner’s picture

Assigned: Unassigned » mkalkbrenner

From which version did you upgrade?

mkalkbrenner’s picture

Priority: Critical » Major
Status: Active » Needs review

I tested again the update from 6.x-3.0 which works well. So I guess you're using an older version of ThemeKey.

I cleaned up some older update functions in themekey.install and committed it to CVS. Are you able to test that?
Alternatively you can download the 6.x-3.x-dev build as soon as it's available for 2011-Jan-11.

ITMonkey’s picture

Assigned: mkalkbrenner » Unassigned

I was using 2.5, but didn't see anything in the readme so went for a straight update (it's on a dev system)
I rolled back and tried a 2.5-3.0 update with the same errors.
I'll try the dev snapshot and let you know.

samalone’s picture

I just had the same problem upgrading from ThemeKey 6.x-2.5 to 6.x-3.1 using drush. Here's the log:

Executing themekey_update_6300 [success]
Drush command could not be completed. [error]
Output from failed command : [error]

Fatal error: Call to undefined function themekey_invoke_modules() in
/Users/samalone/Sites/edgewoodsailing.org/sites/all/modules/themekey/themekey_build.inc on line 69

mkalkbrenner’s picture

Priority: Major » Critical

ITMonkey, samalone:
Please test the upgrade http://ftp.drupal.org/files/projects/themekey-6.x-3.x-dev.tar.gz

As soon as someone of you confirms that this version works for the upgrade from 2.5 to 3.1 I will immediately release it as 3.2.

greg.harvey’s picture

I didn't use the attached module, but I added module_load_include('inc', 'themekey', 'themekey_base'); at line 364 of themekey.install, which is essentially the fix (except you also moved the rebuild to 6301). I can confirm adding that line definitely fixes the install error.

Reluctant to mark R&TBC, since I didn't test the specific code attached, but rather did something very similar to my own install file and, looking at yours, I think it will be fine.

This was 2.3 -> 3.1, btw.

memcinto’s picture

Same error here, upgrading from 6.x-2.5 to 6.x-3.1. I ripped out 3.1 and dropped in themekey-6.x-3.x-dev.tar.gz. Update.php ran this time with no errors. Now I will try enabling it and see if the site is OK :-)

mkalkbrenner’s picture

Status: Needs review » Fixed

fix released with 6.x-3.2

Status: Fixed » Closed (fixed)

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