Can anyone help please?
5 posts
• Page 1 of 1
Can anyone help please?
Hi all I am new to this software. Got it install version 1. something everything is fine apart from when a new customer goes to logh in the following error is presented:
Can someone please advise?
Thank you in advance!
David
- Code: Select all
Notice: unserialize() [function.unserialize]: Argument is not a string in /var/www/vhosts/mywebsite.co.uk/httpdocs/system/library/customer.php on line 66
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mywebsite.co.uk/httpdocs/system/library/customer.php:66) in /var/www/vhosts/mywebsite.co.uk/httpdocs/system/engine/controller.php on line 23
Can someone please advise?
Thank you in advance!
David
- websteer
- Posts: 16
- Joined: Thu Mar 26, 2009 1:45 pm
Re: Can anyone help please?
replace the code with this:
I'm going to include this in the next version.
- Code: Select all
if (($query->row['cart']) && (is_string($query->row['cart']))) {
$cart = unserialize($query->row['cart']);
foreach ($cart as $key => $value) {
if (!array_key_exists($key, $this->session->data['cart'])) {
$this->session->data['cart'][$key] = $value;
} else {
$this->session->data['cart'][$key] += $value;
}
}
}
I'm going to include this in the next version.
-

Daniel - Administrator
- Posts: 5173
- Joined: Fri Nov 03, 2006 10:57 am
Re: Can anyone help please?
Hi Daniel
Thank you for the prompt reply...
Which code do I replace?
Thanks in advance.
David
Thank you for the prompt reply...
Which code do I replace?
Thanks in advance.
David
- websteer
- Posts: 16
- Joined: Thu Mar 26, 2009 1:45 pm
Re: Can anyone help please?
Hi,
I believe the code you need to change is system/library/customer.php on line 66
Change it from:
to:
I believe the code you need to change is system/library/customer.php on line 66
Change it from:
- Code: Select all
foreach ((array)@unserialize($query->row['cart']) as $key => $value) {
if (!array_key_exists($key, $this->session->data['cart'])) {
$this->session->data['cart'][$key] = $value;
} else {
$this->session->data['cart'][$key] += $value;
}
}
to:
- Code: Select all
if (($query->row['cart']) && (is_string($query->row['cart']))) {
$cart = unserialize($query->row['cart']);
foreach ($cart as $key => $value) {
if (!array_key_exists($key, $this->session->data['cart'])) {
$this->session->data['cart'][$key] = $value;
} else {
$this->session->data['cart'][$key] += $value;
}
}
}
- phpuk
- Global Moderator
- Posts: 457
- Joined: Wed Mar 25, 2009 2:57 am
Re: Can anyone help please?
Thanks guys that is perfect. Great support.


- websteer
- Posts: 16
- Joined: Thu Mar 26, 2009 1:45 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests













