Hello,

I switched from D6 to D7 and I've updated Strongarm too.
When I try to run the updb command with drush, I have this:

Do you wish to run all pending updates? (y/n): y
The external command could not be executed due to an application error.                                                                                                  [error]
Drush command terminated abnormally due to an unrecoverable error.                                                                                                       [error]
Error: Call to undefined function strongarm_vars_load() in
/var/www/htdocs/site/public_html/sites/all/modules/strongarm/strongarm.install, line 24
Output from failed command :                                                                                                                                             [error]
 
Fatal error: Call to undefined function strongarm_vars_load() in
/var/www/htdocs/site/public_html/sites/all/modules/strongarm/strongarm.install on line 24

Finished performing updates.

To get it working properly, I had to add one line in strongarm.module, the module_load_include() function.

The patch for 7.x-2.x is following.

Comments

pol’s picture

pol’s picture

Issue summary: View changes

Remove domain.

ezeedub’s picture

I encountered this also. If I apply this patch, I just get an error about ctools not being enabled (in strongarm_vars_load()). I don't really understand why either strongarm or ctools are not available in strongarm_update_7201() since both strongarm and ctools are enabled in the db I'm trying to update. Any help greatly appreciated.

febbraro’s picture

Version: 7.x-2.x-dev » 6.x-2.1
Status: Needs review » Patch (to be ported)
NROTC_Webmaster’s picture

I added the same patch from 7 to the 6 module when I was installing it and it worked for me.

function strongarm_update_6202() {
+  module_load_include('module', 'strongarm', 'strongarm');
  $ret = array();
  $variables = strongarm_vars_load(TRUE, TRUE);
agileware’s picture

#4 works for me on 6.x-2.1

helmo’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new654 bytes

One thing that was not obvious to me is the TRUE, TRUE parameters which you add to strongarm_vars_load(TRUE, TRUE);.

Before I realized this I already added a line like:

  module_load_include('module', 'ctools', 'ctools');

Both solutions probably have the same effect. I've rolled #4 into a patch.

patricksettle’s picture

Status: Needs review » Closed (fixed)

Committed backport patch, commit: f5eef1a

patricksettle’s picture

Status: Closed (fixed) » Fixed

Setting to correct "fixed" status

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Typo