Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Call to undefined function: tep_setcookie() in /var/www/html/includes/application_top.php on line 167


amigaman

Recommended Posts

Posted

I have tried to install the Google Checkout module. However after doing so I receive the following error on my site:

 

Fatal error: Call to undefined function: tep_setcookie() in /var/www/html/includes/application_top.php on line 167

 

I un-installed the Google Checkout module by re-uploading my backups but the error remains. I haven't actually edited application_top and I can't understand why this error has occurred.

 

Can someone please help as my site is broken and I can't see why.

 

Free t-shirt to anyone who can solve the problem!

 

Thanks

Posted

The problem is that the function is missing from includes/functions/general.php. Either restore that file again from backup and see it if fixes it, or restore from the oscommerce install zip if you don't have any contributions that edited that file, or simply add the function to general.php:

 

  function tep_setcookie($name, $value = '', $expire = 0, $path = '/', $domain = '', $secure = 0) {
setcookie($name, $value, $expire, $path, (tep_not_null($domain) ? $domain : ''), $secure);
 }

Contributions

 

Discount Coupon Codes

Donations

Posted

I recon you have

 

catalog/admin/includes/functions general.php

 

in

 

catalog/includes/functions general.php

 

kgt is quite right ofc and this is just a guess.

Posted

Thanking you. No idea why this happened. I think I had some problems uploading files with my FTP programme inserting garbage at random intervals.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...