Advertisement:

Author Topic: 2.0.14 session_start(): Failed to decode....  (Read 6379 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,401
    • StoryBB/StoryBB on GitHub
Re: 2.0.14 session_start(): Failed to decode....
« Reply #40 on: January 04, 2018, 12:42:58 PM »
Well, yes, but you want the php_serialize version, that's the newer fixed version.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 60
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #41 on: January 04, 2018, 02:30:38 PM »
I emptied the table smf_sessions and applied like this

Code: [Select]
function loadSession()
{
global $HTTP_SESSION_VARS, $modSettings, $boardurl, $sc;

// Attempt to change a few PHP settings.
@ini_set('session.serialize_handler', 'php_serialize'); // le changement
@ini_set('session.use_cookies', true);
@ini_set('session.use_only_cookies', false);
@ini_set('url_rewriter.tags', '');
@ini_set('session.use_trans_sid', false);
@ini_set('arg_separator.output', '&');


Wait and see  ;)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,401
    • StoryBB/StoryBB on GitHub
Re: 2.0.14 session_start(): Failed to decode....
« Reply #42 on: January 04, 2018, 02:37:21 PM »
Yup. Should find the problem is gone.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 60
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #43 on: January 05, 2018, 05:35:39 AM »
For the moment no error, everything is going very well, we will see in 3 or 4 days, and if all goes well, we can say that it is definitely solved :)

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 60
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #44 on: January 09, 2018, 10:35:24 AM »
Hello everyone,
After a few days, and following the addition of the line in the loap.php, I am forced to find that everything works perfectly! Thanks again to shawnb61 and Arantor !
There is nothing more in my error page, just password errors of the usual members ...

Now all you have to do is add this line to a possible next patch 2.0.16 ;)

See you :D

Offline FishingManMatt

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
Re: 2.0.14 session_start(): Failed to decode....
« Reply #45 on: October 14, 2018, 03:47:30 PM »
Thanks for the info.
I've recently switched to PHP 7 and noticed exactly the same entries i my error log.
Although, I'm not sure if this is related to the new PHP. It's possible they were also on my old 5.6 version but they didn't get my attention.
I will try to add the suggested code to my Load.php file.