Call to undefined function: drupal_get_destination()

chaos21in - May 19, 2007 - 05:20
Project:Google Translate
Version:5.x-1.3
Component:Code
Category:bug report
Priority:critical
Assigned:Omar
Status:active
Description

Hi,

i recently installed and enabled google translate on my drupal 5.1 site. Now when i try to change the site in different language using this module, it gives error message :

Fatal error: Call to undefined function: drupal_get_destination() in /home/site/public_html/drupal/modules/gtrans/gtrans.module on line 143

If i refresh page sometimes it works and translates the site, but most of the time even if you keep hitting the refresh button, it keeps giving same error message.

I guess this is coming due to the following:

according to http://drupal.org/node/110367

"..If you implement this hook and see an error like 'Call to undefined function', it is likely that you are depending on the presence of a module which has not been loaded yet. It is not loaded because Drupal is still in bootstrap mode. The usual fix is to move your code to hook_menu(!$may_cache)..."

please fix this problem asap.

--rafi

#1

chaos21in - May 19, 2007 - 05:26

I am sure this coming only when "page cache" is Enabled in admin/settings/performance. If you disable it, it works fine.

By the way thanks for great module.

--rafi

#2

Omar - May 19, 2007 - 08:48
Assigned to:Anonymous» Omar
 
 

Drupal is a registered trademark of Dries Buytaert.