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.
Install failed due to globalredirect.install calling a function from globalredirect.module, which hasn't been loaded yet.
Workaround follows:
diff -u -r1.4 globalredirect.install
--- globalredirect.install 13 Jul 2010 00:46:27 -0000 1.4
+++ globalredirect.install 10 Dec 2010 20:50:29 -0000
@@ -28,6 +28,9 @@
$ret = array();
// Get the default settings
+ if (!function_exists('_globalredirect_get_settings')) {
+ require_once(dirname(__FILE__) . '/globalredirect.module');
+ }
$defaults = _globalredirect_get_settings(TRUE);
// Define a settings array based on the variables already set (or their defaults)
Comment | File | Size | Author |
---|---|---|---|
globalredirect-DRUPAL-7--1.patch | 707 bytes | pillarsdotnet | |
Comments
Comment #1
mgiffordthis seems like the best place to report this error:
I don't know if this patch fixes the problem.
Comment #2
adellefrank CreditAttribution: adellefrank commentedThis fixes the installation issue, as far as I can tell. You'll need to run cron before global redirect will pick up on your legacy aliases from Drupal 6.
Comment #3
bfroehle CreditAttribution: bfroehle commented~
Comment #4
bfroehle CreditAttribution: bfroehle commentedWhy can't they be processed in a hook_update_N() function? That's what the end user is expecting.
Comment #5
bfroehle CreditAttribution: bfroehle commentedAlready fixed in #861994: Call to undefined function _globalredirect_get_settings().
See #1045842: Development releases link to wrong branch for an explanation of why the Development download links on the main page are broken.
Comment #6
bfroehle CreditAttribution: bfroehle commented