Olorin Posted February 15, 2004 Posted February 15, 2004 Got a major problem! I was installing the Information Pages Unlimited contribution, and after I fnished I checked the site and I'm getting this error... Fatal error: Cannot redeclare tep_exit() (previously declared in /home/virtual/site143/fst/var/www/html/catalog/includes/functions/general.php:16) in /home/virtual/site143/fst/var/www/html/catalog/includes/functions/general.php on line 15 www.v3leds.com if you want to see it for yourself.. I searched general.php, and here are thw two I found... // Stop from parsing any further PHP code function [B]tep_exit()[/B] { tep_session_close(); exit(); } //// AND // Redirect to another page or site function tep_redirect($url) { if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } header('Location: ' . $url); [B] tep_exit();[/B] } //// What do you think? This is urgent, it's all down cause of something most likely relatively simple! ARG!
ibandyop Posted February 15, 2004 Posted February 15, 2004 The error was caused by the function tep_exit() defined in two places / files not where it was called. I would first search through Information Pages Unlimited and find which file has Information Pages Unlimited the function definition of tep_exit() then if they are the same as what you already have comment out the one in Information Pages Unlimited The contribution you are adding is probably not compatible to your version of osCommerce. One definition should be in general.php The new definition in another /same file... ? Goes without saying your likely to see more issues if the version of the contribution is very dissimilar to your oscommerce version ibandyop
Olorin Posted February 15, 2004 Author Posted February 15, 2004 It wasn't that, I've been going through all the files I played with while installing this contribution and it seems that I missed a few lines here and there, but now theres a different error message. feel free to look. I'm still going through them all... Ridiculous.. www.v3leds.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.