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

Comments

chaos21in’s picture

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

owahab’s picture

Assigned: Unassigned » owahab
apaderno’s picture

Assigned: owahab » Unassigned
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, since Drupal 5 and Drupal 6 are now not supported.