Closed (fixed)
Project:
Strongarm
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2011 at 22:24 UTC
Updated:
2 Jul 2012 at 16:31 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 1345328-6-Add-strongarm.module-in-the-function-to-avoid-error-d6.patch | 654 bytes | helmo |
| #1 | 1345328-Add-strongarm.module-in-the-function-to-avoid-error-.patch | 816 bytes | pol |
Comments
Comment #1
polComment #1.0
polRemove domain.
Comment #2
ezeedub commentedI 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 instrongarm_update_7201()since both strongarm and ctools are enabled in the db I'm trying to update. Any help greatly appreciated.Comment #3
febbraro commentedThanks. Committed to 7.x-2.x
http://drupalcode.org/project/strongarm.git/commit/1914cff
Comment #4
NROTC_Webmaster commentedI added the same patch from 7 to the 6 module when I was installing it and it worked for me.
Comment #5
agileware commented#4 works for me on 6.x-2.1
Comment #6
helmo commentedOne 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:
Both solutions probably have the same effect. I've rolled #4 into a patch.
Comment #7
patricksettle commentedCommitted backport patch, commit: f5eef1a
Comment #8
patricksettle commentedSetting to correct "fixed" status
Comment #9.0
(not verified) commentedTypo