My error log is showing some errors and I am not able to solve them. I looked on the internet but with no succes. Contacted the developer but they do not reply. Is there somebody here who can guide me in the right direction?
The error logs shows the following errors,
PHP Notice: unserialize(): Error at offset 0 of 28 bytes in /var/www/vhosts/subsupply.eu/httpdocs/store/catalog/controller/ne/cron.php on line 1132
PHP Notice: unserialize(): Error at offset 0 of 1641 bytes in /var/www/vhosts/subsupply.eu/httpdocs/store/catalog/controller/ne/cron.php on line 1132
The code on line 1132 is,
1132: $this->config->set($setting['key'], unserialize($setting['value']));
I am using OC 2.1.0.1
Regards,
Rob
Code: Select all
// Settings
$query = $db->query("SELECT * FROM " . DB_PREFIX . "setting WHERE store_id = '0'");
foreach ($query->rows as $setting) {
if (!$setting['serialized']) {
$config->set($setting['key'], $setting['value']);
} else {
$config->set($setting['key'], json_decode($setting['value'], true));
}
}
Code: Select all
// Settings
$query = $db->query("SELECT * FROM " . DB_PREFIX . "setting WHERE store_id = '0' OR store_id = '" . (int)$config->get('config_store_id') . "' ORDER BY store_id ASC");
foreach ($query->rows as $setting) {
if (!$setting['serialized']) {
$config->set($setting['key'], $setting['value']);
} else {
$config->set($setting['key'], unserialize($setting['value']));
}
}
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
I finally managed to get in contact with the developer and he will have a look into it. Hopefully he will solve my problem and if not I need somebody else to fix it for me. Thank you very much so far.
Code: Select all
if ($this->customer->isLogged()) {
$customer_info = $this->model_account_customer->getCustomer($this->customer->getId());
$data['customer_id'] = $this->customer->getId();
$data['customer_group_id'] = $customer_info['customer_group_id'];
$data['firstname'] = $customer_info['firstname'];
$data['lastname'] = $customer_info['lastname'];
$data['email'] = $customer_info['email'];
$data['telephone'] = $customer_info['telephone'];
$data['fax'] = $customer_info['fax'];
$data['custom_field'] = unserialize($customer_info['custom_field']);
} elseif (isset($this->session->data['payment_address']) && isset($this->session->data['payment_address']['firstname'])) {
$data['customer_id'] = 0;
$data['customer_group_id'] = $this->session->data['payment_address']['customer_group_id'];
$data['firstname'] = $this->session->data['payment_address']['firstname'];
$data['lastname'] = $this->session->data['payment_address']['lastname'];
$data['email'] = $this->session->data['payment_address']['email'];
$data['telephone'] = $this->session->data['payment_address']['telephone'];
$data['fax'] = $this->session->data['payment_address']['fax'];
$data['custom_field'] = $this->parseCustomFields($this->session->data['payment_address'], 'account');
} else { // ->this is the row!!!!
return false;
}
How can i fix it?
Users browsing this forum: No registered users and 61 guests