Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.

User

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Stats


  • *Total Posts: 16389
  • *Total Topics: 2501
  • *Online Today: 14
  • *Most Online: 292
(12.11.16, 09:37:31)
  • *Users: 0
  • *Guests: 0
  • *Spiders: 3
  • *Total: 3

  • *Baidu (3)

Author Topic: General error - 8: unserialize(): Error at offset 23 of 27 bytes  (Read 7059 times)

0 Members and 0 Guests are viewing this topic.

Offline ahrasis

  • Full Member
  • ***
  • Posts: 134
  • Gender: Male
  • Peace2u
    • ahrasis
In only recent three (3) days, the following general errors filled my error log by almost 1500 errors.

Quote
Type of error: General
8: unserialize(): Error at offset 23 of 27 bytes
File: /home5/ulatbiz/public_html/community/Sources/Subs-MembersOnline.php
Line: 86

URLs -
http://anypost.qom.my/index.php?action=login2
http://anypost.qom.my/index.php?http://anypost.qom.my/ (and other subforum domain)


Code: [Select]
85: // Subforums
==>86: $subf = unserialize($row['url']);
87: if(isset($subf['subforums']) && SubforumsAllocator('checkurl', $subf['subforums']) != $_SERVER['SERVER_NAME'])
88: continue;

I am not sure what it is and why this is happening but something / somebody seems to be checking the subforum urls.

Offline ahrasis

  • Full Member
  • ***
  • Posts: 134
  • Gender: Male
  • Peace2u
    • ahrasis
I nailed down the culprit. It was a new mod on SMF list - Unknown Actions. I removed it and no more errors. Sigh...

Offline ahrasis

  • Full Member
  • ***
  • Posts: 134
  • Gender: Male
  • Peace2u
    • ahrasis
Nope. It was not that mod. Though I really would like think it was that mod. The same errors seem to happen again and again. Attempt to apply feline's fix in SMF as follows:
Quote from: feline link=http://www.simplemachines.org/community/index.php?topic=464060.msg3244125#msg3244125
Open your Load.php in a editor (like notepad++) and find around line 1232:
Code: [Select]
// Are we also loading the members custom fields into context?
if ($display_custom_fields && !empty($modSettings['displayFields']))
{
$memberContext[$user]['custom_fields'] = array();
if (!isset($context['display_fields']))
$context['display_fields'] = unserialize($modSettings['displayFields']);

Replace this with:
Code: [Select]
// Are we also loading the members custom fields into context?
if ($display_custom_fields && !empty($modSettings['displayFields']))
{
$memberContext[$user]['custom_fields'] = array();
if (!isset($context['display_fields']))
{
$context['display_fields'] = @unserialize($modSettings['displayFields']);
if($context['display_fields'] === false)
$context['display_fields'] = unserialize(preg_replace('/s:\d+:"([^"]*)";/e', "'s:'. strlen('\\1') .':\"\\1\";'", $modSettings['displayFields']));
}

Save and test again ...

Will update later.