amigaman Posted April 17, 2007 Posted April 17, 2007 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
kgt Posted April 17, 2007 Posted April 17, 2007 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
♥FWR Media Posted April 17, 2007 Posted April 17, 2007 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. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
amigaman Posted April 18, 2007 Author Posted April 18, 2007 Thanking you. No idea why this happened. I think I had some problems uploading files with my FTP programme inserting garbage at random intervals.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.