Denkster Posted April 22, 2017 Share Posted April 22, 2017 Please please.. Who can help me? I have OsC2.3.4BS Edge on PHP5.6. Existing clients with >1 address get this error: (see attached image) Warning: session_start(): Failed to decode session object. Session has been destroyed. The effect is that the checkout procedure is redirected to the login page again This line: ...\sessions.php:122 contains this: return session_start(); This code previously used to be at line 95 (I did only add some comment). Please help, I have been researching for days already, without results.. Much obliged if.. Eveline Bernard Link to comment Share on other sites More sharing options...
Dan Cole Posted April 22, 2017 Share Posted April 22, 2017 Do you have it installed on a live environment and if so can you duplicate the results there? Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
Denkster Posted April 22, 2017 Author Share Posted April 22, 2017 Hi Dan, THank you for taking the trouble of answering! Do you have it installed on a live environment and if so can you duplicate the results there? Dan Yes: https://www.denkster.nl/winkel/ But the problem manifests itself with existing clients only. I will send you an login by private message. Eveline Link to comment Share on other sites More sharing options...
Denkster Posted April 22, 2017 Author Share Posted April 22, 2017 More information: attached is a page_parse_time.log. At line 9 the session key is set. At line 245 the session is still available. At line 249 a query is made for a session key with the value '': select session_id from whos_online where session_id = '' limit 1 How .. ?? Eveline Link to comment Share on other sites More sharing options...
tgely Posted April 23, 2017 Share Posted April 23, 2017 @@Denkster,What is the session table collation? osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
Denkster Posted April 24, 2017 Author Share Posted April 24, 2017 utf8_unicode_ci Same as all other tables+ Link to comment Share on other sites More sharing options...
Denkster Posted May 6, 2017 Author Share Posted May 6, 2017 I solved my problem 'Sent back to login. Failed to decode session object. Session has been destroyed'. I am not sure which of my acts actually was the solution. 1. I removed this form my configure.php files: define('CFG_TIME_ZONE', 'UTC'); I doubt if that helped, since it was in both configure.php files and did not experience my problem in the admin. 2. I added a missing error message translation in my /catalog/includes/languages/dutch/checkout_process.php Could that have been the cause? Anyway, problem solved. Link to comment Share on other sites More sharing options...
tgely Posted June 10, 2017 Share Posted June 10, 2017 @Denkster maybe this help: https://library.oscommerce.com/Online&en&oscom_2_3&release_notes&v2_3_4#upg7 osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
callenords Posted March 21, 2018 Share Posted March 21, 2018 I had this problem as well and I discovered the problem was when someone posted an emojli. My current server set up couldn't handle these four bytes symbols, resulting "Failed to decode session object. Session has been destroyed". What I did was to update to character set utf8mb4 with the collation utf8mb4_unicode_ci. In order for this to work you need to make this change to your database, the database tables and the table columns. Also, in your application code, set the connection character set to utf8mb4. This guide might help: https://mathiasbynens.be/notes/mysql-utf8mb4 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.