Page 1 of 1

I can't create new account while i have products in cart...

Posted: Fri Oct 21, 2011 3:47 am
by chrizt
Hello,
i setup my new eshop with OpenCart (v1.5.1.3) and everything works perfect, until now i'm investigating a new problem when I'm testing the site:
I'm not login in the site, i'm browsing as a new customer. I put some products in the shopping cart and i'm click the button to checkout.
After, i'm click as a new customer, i write all the necessary fields, but nothing happends.
A beta-tester friend tells me how it takes this error (with firebug):

Code: Select all

"<b>Fatal error</b>: Call to undefined function utf8_strlene() in <b>/home/MYSITE/public_html/MYSITE.gr/catalog/controller/checkout/register.php</b> on line <b>28</b><br />"
The error is not visible in the simple way, but the result is the same: I can't create a new account...
If i've make click at account/register i can create the account... But as continue from the cart... i can't... :(
Any solution? Any idea?
Thanks in advance!

(if anyone wants, i can write the site 'cause is in online for beta testing...)

Re: I can't create new account while i have products in cart

Posted: Fri Oct 21, 2011 4:11 am
by i2Paq
How can we test and tell if we have no link to your store to check four our-selfs?

Do you use a custom theme or default theme, and if it is a custom theme, what if you use the default theme.
Yes, changing just a small thing to the default theme makes it a custom theme ;)

Re: I can't create new account while i have products in cart

Posted: Fri Oct 21, 2011 4:15 am
by chrizt
No, this is the default theme... Here the site: http://webtrade.gr/...
Is in Greek... only... :)

Re: I can't create new account while i have products in cart

Posted: Fri Oct 21, 2011 4:14 pm
by chrizt
A friend help me and here is my solution to solve the problem:
In /catalog/controller/checkout/register.php on line 28 i change the utf8_strlene to utf8_strlen.
An e bug... ;)

Re: I can't create new account while i have products in cart

Posted: Fri Oct 21, 2011 10:14 pm
by Daniel
just checked the code from the 1.5.3.1 and this bug is not there. so it must be something you did.

Re: I can't create new account while i have products in cart

Posted: Sun Jan 29, 2012 7:23 pm
by surilox
HI Daniel
I have just come across this issue too in 1.5.1.3. - Clean default installation after finding it on local as well as beta site.

Also traced it using Firefox/Firebug as there is no error message on the screen or in the error log file.
The typo is in the upgrade patchfile opencart_patch_151x_to_1513-v2.zip

btw is that a typo in your response 1.5.3.1 or should it be 1.5.1.3?

Re: I can't create new account while i have products in cart

Posted: Mon Jan 30, 2012 2:29 am
by Daniel
i don;t know where your getting your files fr4om but again this code does not exist in the latest release or any release.

Re: I can't create new account while i have products in cart

Posted: Mon Jan 30, 2012 4:25 am
by straightlight

Code: Select all

utf8_strlene(
for:

Code: Select all

utf8_strlen(
This is a user modification, not from fresh installation.