Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Made error with purchase without account/help if you can


timmay

Recommended Posts

Hi , i installed purchase without account con, and i now get this error.

 

Fatal error: Cannot redeclare tep_session_start() (previously declared in /home/tnovakow/public_html/cart/includes/functions/sessions.php:67) in /home/tnovakow/public_html/cart/includes/functions/sessions.php on line 66

 

 

please help if possible. i would really like this option

 

thanks

www.raffleland.com

Link to comment
Share on other sites

did you tried to look at those line numbers ???

 

it is just not possible to declare them TWICE with loading the osC

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

Hi , i installed purchase without account con, and i now get this error.  

 

Fatal error: Cannot redeclare tep_session_start() (previously declared in /home/tnovakow/public_html/cart/includes/functions/sessions.php:67) in /home/tnovakow/public_html/cart/includes/functions/sessions.php on line 66

 

 

please help if possible. i would really like this option

 

thanks

 

Mr Novakow,

 

please copy/paste line 63 - 70 from cart/includes/functions/sessions.php

 

that would be easier for everyone to give an answer ;)

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

Here is lines 50 through 130 i pasted these becuase 60 -70 did not have any thing about tep_session_start().

 

expiry = '" . $expiry . "', value = '" . $value . "' where sesskey = '" . $key . "'");

} else {

return tep_db_query("insert into " . TABLE_SESSIONS . " values ('" . $key . "', '" . $expiry . "', '" . $value . "')");

}

}

 

function _sess_destroy($key) {

return tep_db_query("delete from " . TABLE_SESSIONS . " where sesskey = '" . $key . "'");

}

 

function _sess_gc($maxlifetime) {

tep_db_query("delete from " . TABLE_SESSIONS . " where expiry < '" . time() . "'");

 

return true;

}

 

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

}

 

function tep_session_start() {

return session_start();

}

 

function tep_session_register($variable) {

return session_register($variable);

}

 

function tep_session_is_registered($variable) {

return session_is_registered($variable);

}

 

function tep_session_unregister($variable) {

return session_unregister($variable);

}

 

function tep_session_id($sessid = '') {

if ($sessid != '') {

return session_id($sessid);

} else {

return session_id();

}

}

 

function tep_session_name($name = '') {

if ($name != '') {

return session_name($name);

} else {

return session_name();

}

}

 

function tep_session_close() {

if (function_exists('session_close')) {

return session_close();

}

}

 

function tep_session_destroy() {

return session_destroy();

}

 

function tep_session_save_path($path = '') {

if ($path != '') {

return session_save_path($path);

} else {

return session_save_path();

}

}

?>

www.raffleland.com

Link to comment
Share on other sites

I had this same problem... I've noticed from the readme.txt file that it says to replace these files...

 

/catalog/includes/modules/languages/english/login.php

/catalog/includes/modules/languages/english/images/buttons/button_create_account.gif

 

But in the current snapshot they do not exists.

 

When I installed everything I got an after entering the contact info about something about error encrypting password.....

 

heyday

--

 

http://www.auctionpals.com

 

Long Distance as low as 2.9 cents

http://www.phonecow.com

Link to comment
Share on other sites

I did see that myself but figured since it said that is working with new version that it was an wording error. But any help would be greatly appreciated on this.Somebody has to know how to fix this error.

 

thanks

www.raffleland.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...