Quote Originally Posted by blumcafe View Post
Thanks all for your feedback. I did check and did verify that the modules were different. I guess I am just stumped at the moment and was wondering if I really needed this function call? If I don't need it, can someone tell me how to work around it?

Thanks
the work around as i told u is commenting the function, but be careful, the other function must do the same as the one commented

or, if u prefer, rename that function, and all the calls to it in the gcheckout.php file.

in fact just line 39

try replacing this
(googlecheckout/gcheckout.php line 37)
PHP Code:
  function selfURL() { 
    
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" ""
    
$protocol strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s
    
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); 
    return 
$protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; 
  }
  function 
strleft($s1$s2) { 
    return 
substr($s10strpos($s1$s2)); 
  } 
with

PHP Code:
  function selfURL() { 
    
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" ""
    
$protocol gc_strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s
    
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); 
    return 
$protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; 
  }
  function 
gc_strleft($s1$s2) { 
    return 
substr($s10strpos($s1$s2)); 
  }