With the upgrade to drupal-5.11 the caching feature seemed to have broken SecurePages and the GlobalRedirect modules.
Error:
Fatal error: Call to undefined function: drupal_get_path_alias() in /path/to/includes/common.inc on line 1196
Solution:
Added the below code to the beginning of the securepages_init function in "securepages.module" so paths get loaded if cache is enabled.
// If cache is enabled we need to load the path system
if (variable_get('cache';, CACHE_DISABLED) != CACHE_DISABLED) {
drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);
}Reference:
http://drupal.org/node/119009
Error:
Fatal error: Call to undefined function: _menu_item_is_accessible() in /path/to/sites/all/modules/glo balredirect/globalredirect.mod ule on line 37
Solution:
Add "function_exists('_menu_item_is_accessible') &&" check in "globalredirect.module":
if (function_exists('drupal_
get_path_alias') &&
function_exists('_menu_it em_is_accessible') &&
_menu_item_is_accessible(menu_ get_active_item()) &&
isset($_REQUEST['q'] ) &&
empty($_POST)) { Reference:
http://drupal.org/node/301844
- sandip's blog
- Login or register to post comments