Fatal error, call to undefined function

drupaloSa - February 1, 2008 - 09:55
Project:Global Redirect
Version:5.x-1.2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

When i enable Global Redirect on my site and try non-clean version of urls i get this error:

Fatal error: Call to undefined function: token_replace() in /var/www/vhosts/focagenc.net/httpdocs/tv/modules/link/link.module on line 620

BTW, I have the "token" module.

#1

nicholasThompson - February 1, 2008 - 10:08
Status:active» active (needs more info)

I fail to see what this has to do with GlobalRedirect except that the error only seems to happen when you enable GR...

The error is happening in Link.module and it calling a token function.

Which version of link.module are you using? By this I mean what is the first line of code in the link.module file? Eg:

<?php
// $Id: link.module,v 1.20.2.33 2007/10/31 18:15:45 quicksketch Exp $
?>

That's the $Id for the latest release under Drupal5 Dev (as of right now). I assume yours is different as line 620 in that version is a blank line - nothing to do with token_replace... The version i've linked to also appears to wrap all token related function calls with an if statement which is checking if the module exists...

I advise you update the Link module...

I believe the reason GR looks like its triggering this error is because its setting headers to redirect but because an error has been output already, redirection fails (maybe?!)...

#2

drupaloSa - February 1, 2008 - 14:15

Thanks for response. I checked link.module and it seems an older version:

// $Id: link.module,v 1.20.2.32 2007/10/21 06:01:11 quicksketch Exp $

I'll update link module and try again.

#3

nicholasThompson - February 1, 2008 - 14:38

Hmmm... Not sure upgrading will help in this case then...

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/link/link.m...

Try anyway.

#4

nicholasThompson - July 3, 2008 - 14:04
Status:active (needs more info)» fixed

Assume that as there has been no response since Feb, the problem has gone away.

#5

Anonymous (not verified) - July 23, 2008 - 10:56
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.