Error showing up in google search

iaminawe - August 30, 2008 - 07:48
Project:Global Redirect
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

I updated to the latest dev after upgrading drupal to 5.10 which I received a similar error message with.
When I updated to the dev the following error shows up in a google search even after resubmitting the sitemap several times...

I have turned it off temporarily but would like to get it fixed so that I can use it...

Fatal error: Call to undefined function _menu_item_is_accessible() in /sites/all/modules/globalredirect/globalredirect.module

Thanks
Gregg

#1

nicholasThompson - September 5, 2008 - 15:54
Status:active» fixed

Fixed in dev by adding a check for the function in the initial IF statement...

<?php
 
if (function_exists('drupal_get_path_alias') &&
     
function_exists('_menu_item_is_accessible') &&
     
_menu_item_is_accessible(menu_get_active_item()) &&
      isset(
$_REQUEST['q']) &&
      empty(
$_POST)) {
?>

This will eventually make it into 5.x-1.4.

Cheers,
Nick

#2

Anonymous (not verified) - September 19, 2008 - 16:02
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.