i tried to update our OC store from 2.0.3.1 to newest version. I made a backup using FileZilla (i copied all files from public_html and stored to my HDD). Then i export my products, clients and categories using ExcelPort. When i tried to open my site ive got error code just before a store logo. I deleted all te files from public_html and uploaded my backup, but i still get this error. Backup was taken before this error was shown.
Code: Select all
Notice: unserialize(): Error at offset 0 of 5 bytes in /home/***/public_html/index.php on line 58
Notice: unserialize(): Error at offset 0 of 9 bytes in /home/***/public_html/index.php on line 58
Notice: unserialize(): Error at offset 0 of 5 bytes in /home/***/public_html/index.php on line 58
Notice: unserialize(): Error at offset 0 of 209 bytes in /home/***/public_html/index.php on line 58
Notice: unserialize(): Error at offset 0 of 47 bytes in /home/***/public_html/index.php on line 58
Notice: unserialize(): Error at offset 0 of 13 bytes in /home/***/public_html/index.php on line 58
Notice: unserialize(): Error at offset 0 of 245 bytes in /home/***/public_html/index.php on line 58
Notice: unserialize(): Error at offset 0 of 1447 bytes in /home/***/public_html/index.php on line 58
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/***/public_html/index.php:58) in /home/***/public_html/system/library/session.php on line 12Notice: unserialize(): Error at offset 0 of 91 bytes in /home/***/public_html/catalog/model/extension/module.php on line 7Notice: unserialize(): Error at offset 0 of 161 bytes in /home/***/public_html/catalog/model/extension/module.php on line 7Notice: unserialize(): Error at offset 0 of 89 bytes in /home/***/public_html/catalog/model/extension/module.php on line 7
Code: Select all
foreach ($query->rows as $result) {
if (!$result['serialized']) {
$config->set($result['key'], $result['value']);
} else {
$config->set($result['key'], unserialize($result['value']));
}
Code: Select all
<?php
class Session {
public $data = array();
public function __construct() {
if (!session_id()) {
ini_set('session.use_only_cookies', 'On');
ini_set('session.use_trans_sid', 'Off');
ini_set('session.cookie_httponly', 'On');
session_set_cookie_params(0, '/');
session_start();
}
$this->data =& $_SESSION;
}
public function getId() {
return session_id();
}
public function destroy() {
return session_destroy();
}
}
Code: Select all
<?php
class ModelExtensionModule extends Model {
public function getModule($module_id) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "module WHERE module_id = '" . (int)$module_id . "'");
if ($query->row) {
return unserialize($query->row['setting']);
} else {
return array();
}
}
}
Code: Select all
Notice: unserialize(): Error at offset 0 of 5 bytes in /home/****/public_html/admin/index.php on line 41
Notice: unserialize(): Error at offset 0 of 9 bytes in /home/***/public_html/admin/index.php on line 41
Notice: unserialize(): Error at offset 0 of 5 bytes in /home/***/public_html/admin/index.php on line 41
Notice: unserialize(): Error at offset 0 of 209 bytes in /home/***/public_html/admin/index.php on line 41
Notice: unserialize(): Error at offset 0 of 47 bytes in /home/***/public_html/admin/index.php on line 41
Notice: unserialize(): Error at offset 0 of 13 bytes in /home/***/public_html/admin/index.php on line 41
Notice: unserialize(): Error at offset 0 of 245 bytes in /home/***/public_html/admin/index.php on line 41
Notice: unserialize(): Error at offset 0 of 1447 bytes in /home/***/public_html/admin/index.php on line 41
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/***/public_html/admin/index.php:41) in /home/***/public_html/system/library/session.php on line 12Notice: unserialize(): Error at offset 0 of 8445 bytes in /home/***/public_html/system/library/user.php on line 24
Code: Select all
foreach ($query->rows as $setting) {
if (!$setting['serialized']) {
$config->set($setting['key'], $setting['value']);
} else {
$config->set($setting['key'], unserialize($setting['value']));
}
}
Code: Select all
<?php
class Session {
public $data = array();
public function __construct() {
if (!session_id()) {
ini_set('session.use_only_cookies', 'On');
ini_set('session.use_trans_sid', 'Off');
ini_set('session.cookie_httponly', 'On');
session_set_cookie_params(0, '/');
session_start();
}
$this->data =& $_SESSION;
}
public function getId() {
return session_id();
}
public function destroy() {
return session_destroy();
}
}
Code: Select all
if ($user_query->num_rows) {
$this->user_id = $user_query->row['user_id'];
$this->username = $user_query->row['username'];
$this->user_group_id = $user_query->row['user_group_id'];
$this->db->query("UPDATE " . DB_PREFIX . "user SET ip = '" . $this->db->escape($this->request->server['REMOTE_ADDR']) . "' WHERE user_id = '" . (int)$this->session->data['user_id'] . "'");
$user_group_query = $this->db->query("SELECT permission FROM " . DB_PREFIX . "user_group WHERE user_group_id = '" . (int)$user_query->row['user_group_id'] . "'");
$permissions = unserialize($user_group_query->row['permission']);
Thanks!