Post by mikimak » Wed Jan 16, 2019 10:22 pm

Hello,
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
 
public_html/index.php line 54 to 59

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']));
	}
/public_html/system/library/session.php line 1 to 25

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();
	}
}
/public_html/catalog/model/extension/module.php line 1 to 12

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();	
		}
	}		
}
Also i can not login to admin panel.

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
public_html/index.php line 37 to 43

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']));
	}
}
/public_html/system/library/session.php line 1 to 25

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();
	}
}
public_html/system/library/user.php on line 15 to 24

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']);
It will be great if someone experienced this before and can help with advice.

Thanks!

Newbie

Posts

Joined
Thu Jun 15, 2017 5:45 pm

Post by mikimak » Wed Jan 16, 2019 10:34 pm

Screenshot

Image

Newbie

Posts

Joined
Thu Jun 15, 2017 5:45 pm

Post by xxvirusxx » Wed Jan 16, 2019 10:35 pm

mikimak wrote:
Wed Jan 16, 2019 10:22 pm
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.
If you uploaded you backup ( 2.0.3.1), you have uploaded same database version? (from 2.0.3.1)

Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - RO

Post by mikimak » Wed Jan 16, 2019 10:39 pm

xxvirusxx wrote:
Wed Jan 16, 2019 10:35 pm
mikimak wrote:
Wed Jan 16, 2019 10:22 pm
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.
If you uploaded you backup ( 2.0.3.1), you have uploaded same database version? (from 2.0.3.1)
I think so. Is there any way to check? I upload what i downloaded (2.0.3.1) before this error 1:1.

Thanks for respond!

Newbie

Posts

Joined
Thu Jun 15, 2017 5:45 pm

Post by xxvirusxx » Wed Jan 16, 2019 10:43 pm

You didn't made back-up before upgrade? Files and database?

Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - RO

Post by mikimak » Wed Jan 16, 2019 10:46 pm

xxvirusxx wrote:
Wed Jan 16, 2019 10:43 pm
You didn't made back-up before upgrade? Files and database?
Just files. I downloaded them using filezilla. When i login to cpanel i found my database /~30mb/

Newbie

Posts

Joined
Thu Jun 15, 2017 5:45 pm
Who is online

Users browsing this forum: No registered users and 15 guests