Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Upon updating the module while it is disabled, a call is done to apachesolr_multiligual_confgen_register_multilingual_variables()
which is in the (unincluded) module file.
We get the following error:
PHP Fatal error: Call to undefined function apachesolr_multiligual_confgen_register_multilingual_variables() in modules/contrib/apachesolr_multilingual/apachesolr_multilingual_confgen/apachesolr_multilingual_confgen.install on line 46
Patch atttached
Comment | File | Size | Author |
---|---|---|---|
#1 | interdiff.txt | 713 bytes | stefan.r |
#1 | apachesolr_multilingual-2147927-installer-1.patch | 980 bytes | stefan.r |
apachesolr_multilingual-installer.patch | 1.4 KB | stefan.r | |
Comments
Comment #1
stefan.r CreditAttribution: stefan.r commentedActually including in hook_disable should not be needed as the module is enabled there already.
Comment #2
mkalkbrennerhttps://api.drupal.org/api/drupal/modules!system!system.api.php/function...
So the include is only needed in the hook_update_N().
Committed to git:
http://drupalcode.org/project/apachesolr_multilingual.git/commit/6e584af
BTW I mentioned you as author:
[7.x-1.x fadf9c0] #2147927: Error message when running update hooks with disabled module stefan.r, mkalkbrenner: Error message when running update hooks with disabled module
Author: stefan.r
2 files changed, 4 insertions(+), 1 deletion(-)
I have no idea why this is not reflected on drupal.org git. Maybe an 7.x upgrade issue?
Comment #3
stefan.r CreditAttribution: stefan.r commentedthanks.
Did you forget to push it perhaps? I don't see any commit fadf9c0 yet
Comment #4
mkalkbrennerYou're right:
http://drupalcode.org/project/apachesolr_multilingual.git/commit/fadf9c0