Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

!! Fatal Error, includes/functions/general.php


Olorin

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...