Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

My Home Page Gives Me Errors


exitbuy

Recommended Posts

Posted

Hi My Home of My Shop Gives Me Errors

 

Error Message is

 

Fatal error: Cannot redeclare tep_session_recreate() (previously declared in \\premfs18\sites\premium18\satishkumar\webroot\Shop\includes\functions\sessions.php:178) in \\premfs18\sites\premium18\satishkumar\webroot\Shop\includes\functions\sessions.php on line 222

 

My homepage URL is www.exitbuy.com/shop

 

What Can I Do For This.

 

Regards,

Satish Kumar

ExitBuy.Com

Posted
Hi My Home of My Shop Gives Me Errors

 

Error Message is

 

Fatal error: Cannot redeclare tep_session_recreate() (previously declared in \\premfs18\sites\premium18\satishkumar\webroot\Shop\includes\functions\sessions.php:178) in \\premfs18\sites\premium18\satishkumar\webroot\Shop\includes\functions\sessions.php on line 222

 

My homepage URL is www.exitbuy.com/shop

 

What Can I Do For This.

 

Regards,

Satish Kumar

ExitBuy.Com

Posted

There's no end to your problems is there?

 

looks like you've got two instances of that function in the same file!

 

Get Beyond Compare (www.scootersoftware.com) text compare tool and a copy of the default osc installation and compare you'ye screwed site with the original files. It'll save you a lot of time and it's a great tool for osc development!

Posted

You Told me I have Two instances of function file

 

Where is the How Do I Find..

 

Regards,

Satish Kumar

Posted

open the file and do a find for the function 'tep_session_recreate'!

 

But seriously, there's been so many probs with you're site the errors could be anywhere, they're not always where they say they are. Get a text compare tool and it'l be much easier for you to find them!

Posted

OKk The Code Is

 

// <<< END REGISTER_GLOBALS

return session_destroy();

}

 

function tep_session_recreate() {

if (PHP_VERSION >= 4.1) {

$session_backup = $_SESSION;

 

unset($_COOKIE[tep_session_name()]);

 

tep_session_destroy();

 

if (STORE_SESSIONS == 'mysql') {

session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');

}

 

Is This Correct

 

Reagrds,

Satish Kumar

Archived

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

×
×
  • Create New...