Advertisement:

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

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
2.0.14 session_start(): Failed to decode....
« on: May 31, 2017, 05:07:37 PM »
Hi all !
Since i updated to 2.0.14 i have any same error in my error log , it's not a probleme , i juste always need cleaning ...

Those errors come only, I think, from the aggressiveness of access of spams bots
Those errors never come from members of the forum.

Is there a way to stop seeing these errors?

Here are the errors:

Quote
https: / /...
2: session_start(): Failed to decode session object. Session has been destroyed
File: /home/lpdm/public_html/v3/Sources/Load.php
Line: 2574

Code: [Select]
2565: // Use cache setting sessions?
2566: if (empty($modSettings['databaseSession_enable']) && !empty($modSettings['cache_enable']) && php_sapi_name() != 'cli')
2567: {
2568: if (function_exists('mmcache_set_session_handlers'))
2569: mmcache_set_session_handlers();
2570: elseif (function_exists('eaccelerator_set_session_handlers'))
2571: eaccelerator_set_session_handlers();
2572: }
2573:
==>2574: session_start();
2575:
2576: // Change it so the cache settings are a little looser than default.
2577: if (!empty($modSettings['databaseSession_loose']))
2578: header('Cache-Control: private');
2579: }

Those IP from bots spam are not in error log, they come anytime and are banned ( in the admin Ban area )

I never see those error before, i use SMF 2 since december 2011

My other info :
Votre version du forum: SMF 2.0.14
Version courante de SMF: SMF 2.0.14
Version de GD: bundled (2.1.0 compatible)
Version MySQL: 10.0.30-MariaDB
Memcached: 1.4.4
XCache: 3.2.0
PHP: 5.6.30
Version du serveur: Apache



Thanks for all :)

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #1 on: June 01, 2017, 12:30:50 PM »
hi , what do I have to do to find out what it can be ?  :laugh:

Offline Colin

  • Lead Developer
  • SMF Hero
  • *
  • Posts: 7,760
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: 2.0.14 session_start(): Failed to decode....
« Reply #2 on: June 01, 2017, 01:25:54 PM »
Check your session.save_path in your PHP configuration file (php.ini). Did you just upgrade SMF or did you also do some PHP configuration changes?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #3 on: June 01, 2017, 03:05:43 PM »
hi , thanks :)

session.save_path   : /tmp
only some phpmyadmin sessions are in this directory...

https://www.lepaysdumanga.fr/phpinfo2.php
( i will delete this file later )

I just upgrade 2.0.13 to 2.0.14 , nothing else
I tested this upgrade before in my computer with wamp :) ( but i haven't any spams bot in interne  ;D  )

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #4 on: June 01, 2017, 03:23:55 PM »
I checked my parametter in my forum , session are by the database , must i unactivate de session by database ?

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #5 on: June 02, 2017, 03:52:36 PM »
any news for me ? it's happen only with some russian spams bot

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #6 on: June 03, 2017, 07:16:15 PM »
Nothing is written anywhere in the sessions
I can just see the correspondence between the banned IP and the time of the error ...

In the picture you will see that there is no ip, no sessions ...?
I did not have these worries with 2.0.13

it's this IP for the moment : https://cleantalk.org/blacklists/178.127.187.13


Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #7 on: June 06, 2017, 03:08:47 PM »
Good evening, some news about this little problem? thank you :)

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #8 on: June 08, 2017, 02:40:14 PM »
I do not know if you have looked at this problem, but I have the impression that there is a bug with the list of banned IPs trying to access and sessions (I banned spam bots ), Can you control at this level?
I'll test the bans options, I'm using partial banning right now. (All checked in partial)
Thank you.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,098
  • Gender: Male
    • Kindred-999 on GitHub
Re: 2.0.14 session_start(): Failed to decode....
« Reply #9 on: June 08, 2017, 04:45:13 PM »
Banning spammers, especially spambots, is a waste of time and system resources.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #10 on: June 08, 2017, 05:03:23 PM »
I have only 105 ip address ranges and all go well on my server, I add no more for several years.

The only problem I have is 2.0.14, I'm testing a change and would tell you what it's like tomorrow.
« Last Edit: June 08, 2017, 05:15:12 PM by NekoSensei »

Offline Colin

  • Lead Developer
  • SMF Hero
  • *
  • Posts: 7,760
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: 2.0.14 session_start(): Failed to decode....
« Reply #11 on: June 09, 2017, 11:45:17 AM »
Can you PM me forum admin, and SSH or ftp credentials. I'll take a look at this during the weekend.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #12 on: June 09, 2017, 05:36:47 PM »
Done, thank you :)

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #13 on: July 11, 2017, 06:56:23 PM »
Any News In This Side ? :D
Can we hide this error? Because it bores me only visually...  :D

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #14 on: November 28, 2017, 08:59:26 PM »
Hello, this problem still exists with 2.0.15 ;)

Offline Colin

  • Lead Developer
  • SMF Hero
  • *
  • Posts: 7,760
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: 2.0.14 session_start(): Failed to decode....
« Reply #15 on: December 07, 2017, 02:27:15 AM »
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #16 on: December 07, 2017, 02:33:27 PM »
Hi colin , in this page it's for session.php , remove 2 lines on it which are :

Code: [Select]
function sessionDestroy($session_id)
{
global $smcFunc;

==> if (preg_match('~^[A-Za-z0-9,-]{16,32}$~', $session_id) == 0)
==> return false;
( https://github.com/SimpleMachines/SMF2.1/pull/4393/commits/c533c6b722fa187d70384322ff2083ec8de1afc7 )

then i try remove those same lines in load.php

I delete them now and I will see I continue to have these errors ;)
thanks

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #17 on: December 07, 2017, 05:58:11 PM »
bad news ! i still got the same error !

Code: [Select]
Aujourd'hui à 23:41
.../index.php?action=search2
2: session_start(): Failed to decode session object. Session has been destroyed
Fichier: .../Sources/Load.php
Ligne: 2575

Code: [Select]
2575 : session_start();

Offline shawnb61

  • Support Specialist
  • Full Member
  • *
  • Posts: 507
    • sbulen on GitHub
Re: 2.0.14 session_start(): Failed to decode....
« Reply #18 on: December 07, 2017, 10:13:20 PM »
I see in this other thread:
https://www.simplemachines.org/community/index.php?topic=554833.msg3933477#msg3933477

You were going to try renaming the cookie.  Another user reported that resolved the issue.

Have you done that?   Did the issue come back?
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline NekoSensei

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
  • SMF User
    • Le Pays Du Manga et des Cartoons oubliés
Re: 2.0.14 session_start(): Failed to decode....
« Reply #19 on: December 08, 2017, 05:12:43 AM »
Hello, no rename cookies do not change anything, in fact I noticed that most errors come from some spam servers, these servers go through paths that generate these errors when a guest does not have the right to go without a session (a real guest does not generate an error)