Jump to content

Notice: unserialize(): Error at offset 1256821 of 2097152 bytes in/webroot/system/library/session/file.php


Recommended Posts

Всем здравствуйте, на зарегистрированных покупателях выдает вот такую фигню - Notice: unserialize(): Error at offset 1256821 of 2097152 bytes in in/webroot/system/library/session/file.php   

 

там в принципе ничего такого нет 

public function read($session_id) {

    $file = DIR_SESSION . '/sess_' . basename($session_id);

 

    if (is_file($file)) {

      $filesize = filesize($file);

      if ($filesize > 0) {

        $handle = fopen($file, 'r');

        flock($handle, LOCK_SH);

        $data = fread($handle, $filesize);

        flock($handle, LOCK_UN);

        fclose($handle);

 

        return unserialize($data);

      }

    }

    return array();

  }

 

ругается на return unserialize($data); 

подскажите пожалуйста как побороть эту хрень, потому что после этого выбрасывает из. админки, а покупатели не могут оформить заказ, похоже слетает корзина

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...