Hi there! I get an error message when a customer register a new account:
Warning: sprintf(): too few arguments in xxxx/catalog/controller/account/success.php line 32
I'm using Opencart 2.1.0.2 version
Does anyone know how to fix it?
Thanks in advance
Hi,
Have you made changes in langauge files?
In catalog/language/english/account/success.php you can find message like this:
In controller you can find:
This means that in text_message is replaced %s with contact link;
If in catalog/language/english/account/success.php, $_['text_message'] don't have %s then that reason for your error;
If you don't use english then path is catalog/language/your_language/account/success.php
Goog luck !
Have you made changes in langauge files?
In catalog/language/english/account/success.php you can find message like this:
Code: Select all
$_['text_message'] = '<p>Congratulations! Your new account has been successfully created!</p> <p>You can now take advantage of member privileges to enhance your online shopping experience with us.</p> <p>If you have ANY questions about the operation of this online shop, please e-mail the store owner.</p> <p>A confirmation has been sent to the provided e-mail address. If you have not received it within the hour, please <a href="%s">contact us</a>.</p>';
Code: Select all
$data['text_message'] = sprintf($this->language->get('text_message'), $this->url->link('information/contact'));
If in catalog/language/english/account/success.php, $_['text_message'] don't have %s then that reason for your error;
If you don't use english then path is catalog/language/your_language/account/success.php
Goog luck !

Hi.
Same error with OC 2.3.0.2
account/success.php language file has:
So, what? 
Same error with OC 2.3.0.2
account/success.php language file has:
Code: Select all
"$_['text_message'] = '<p>Su cuenta ha sido registrada.</p> <p> Se ha enviado confirmación a su email. Si no lo ha recibido, por favor <a href="%s"> contáctenos </a>.</p>';

Who is online
Users browsing this forum: No registered users and 8 guests