Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

session prob


yesudo

Recommended Posts

why would i get this error when a merchant site returns control to my store ? seems to be trying to re insert the my existing session id.

 

1062 - Duplicate entry 'd05c2c117f7d4625956149a578ba2b42' for key 1

insert into sessions values ('d05c2c117f7d4625956149a578ba2b42?payment_error=ckmerchantpartners', '1085006118', 'cart|O:12:\"shoppingcart\":4:{s:8:\"contents\";a:0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"content_type\";b:0;}language|s:7:\"english\";languages_id|s:1:\"1\";currency|s:3:\"USD\";navigation|O:17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0;a:4:{s:4:\"page\";s:9:\"login.php\";s:4:\"mode\";s:3:\"SSL\";s:3:\"get\";a:1:{s:6:\"osCsid\";s:65:\"d05c2c117f7d4625956149a578ba2b42?payment_error=ckmerchantpartners\";}s:4:\"post\";a:0:{}}}s:8:\"snapshot\";a:0:{}}')

[TEP STOP]

1062 - Duplicate entry 'd05c2c117f7d4625956149a578ba2b42' for key 1

insert into sessions values ('d05c2c117f7d4625956149a578ba2b42?payment_error=ckmerchantpartners', '1085006118', 'cart|O:12:\"shoppingcart\":4:{s:8:\"contents\";a:0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"content_type\";b:0;}language|s:7:\"english\";languages_id|s:1:\"1\";currency|s:3:\"USD\";navigation|O:17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0;a:4:{s:4:\"page\";s:9:\"login.php\";s:4:\"mode\";s:3:\"SSL\";s:3:\"get\";a:1:{s:6:\"osCsid\";s:65:\"d05c2c117f7d4625956149a578ba2b42?payment_error=ckmerchantpartners\";}s:4:\"post\";a:0:{}}}s:8:\"snapshot\";a:0:{}}')

[TEP STOP]


Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

Your online success is Paramount.

Link to comment
Share on other sites

and if i change the sessions to be stored in a file rather than the db - iget these messages:

 

Warning: session_start(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /home/your-sty/public_html/catalog/includes/functions/sessions.php on line 67

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/your-sty/public_html/catalog/includes/functions/sessions.php:67) in /home/your-sty/public_html/catalog/includes/functions/sessions.php on line 67

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/your-sty/public_html/catalog/includes/functions/sessions.php:67) in /home/your-sty/public_html/catalog/includes/functions/sessions.php on line 67

Warning: Cannot modify header information - headers already sent by (output started at /home/your-sty/public_html/catalog/includes/functions/sessions.php:67) in /home/your-sty/public_html/catalog/includes/functions/general.php on line 29

Warning: session_write_close(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /home/your-sty/public_html/catalog/includes/functions/sessions.php on line 106

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /home/your-sty/public_html/catalog/includes/functions/sessions.php on line 106

Your online success is Paramount.

Link to comment
Share on other sites

I've had a similar problem with roughly 1 in 100 customers.

 

I also found this thread:

http://www.oscommerce.com/forums/index.php?sho...c=55504&st=180&

 

It seems to indicate a bug when using a callback with some browsers, which results in url's with 2 question marks.

 

There seems to be a fairly simple workaround by editing the includes/modules/payment/worldpay.php

and removing a little bit of code:

 

 

Until it is resolved, the easiest option is just to delete the whole language part from the string ( . '?language=' . $language_code) if you are not using a multi-language installation.

 

see the thread for more details.

 

I'm going to try this now.

Link to comment
Share on other sites

if storing in files, do you have a proper path defined for your server, with 777 properties? create in the doc root, behind the site, where customers, etc can not get to, have the folder 777. i also put page_parse_time.log into there, as well as pointing cache to the same spot.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...