Would anyone can help me, saying what it is?

version 1.5.1.1
When we completed the sales get an error ...
Warning: sprintf() [function.sprintf]: Too few arguments in /home/cheiroec/public_html/catalog/controller/checkout/success.php on line 52
as well as in the image below

When I click the link order, apresenda the following error ...


Someone could help me?
store image looks standard Brazilian forum.

I would like help from someone please because nobody answers the Brazilian forum.
If that works fine, then it is the payment method causing the problem, in which case you will need to contact the payment module developer.
I believe that there is method of payment.
Please go to ...
www.opencartbrasil.com.br/loja
/catalog/language/[language]/checkout/success.php
Code: Select all
$_['text_customer'] = '<p>Your order has been successfully processed!</p><p>You can view your order history by going to the <a href="%s">my account</a> page and by clicking on <a href="%s">history</a>.</p>If your purchase has an associated download, you can goto the account <a href="%s">downloads</a> page to view them.</p><p>Please direct any questions you have to the <a href="%s">store owner</a>.</p><p>Thanks for shopping with us online!</p>';
-Ryan
I have the same problem in the same line that isSnufkin wrote:Hi
I have the same problem, but in another line. It seems that missing language tag, but i can't understand which
Warning: sprintf() [function.sprintf]: Too few arguments in catalog/controller/account/success.php on line 31
Code: Select all
$this->data['text_message'] = sprintf($this->language->get('text_message'), $this->url->link('information/contact'));
Sigaretta elettronica Opencart 1.5.4.1 italian translation
If you replace:
Code: Select all
$this->data['text_message'] = sprintf($this->language->get('text_message'), $this->url->link('information/contact'));
Code: Select all
$this->data['text_message'] = str_replace(array("{contact_url}"), array($this->url->link('information/contact')), $this->language->get('text_message'));
if you replace:
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 email the store owner.</p> <p>A confirmation has been sent to the provided email address. If you have not received it within the hour, please <a href="%s">contact us</a>.</p>';
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 email the store owner.</p> <p>A confirmation has been sent to the provided email address. If you have not received it within the hour, please <a href="{contact_url}">contact us</a>.</p>';
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
albsim81, your language file isn't current for the version of OpenCart you're using. Yes, it is that simple.
-Ryan
And stating that it's simple without providing an alternative solution is a better way ?rph wrote:Straightlight, man, you've gotta stop doing this. Rewriting the cart is not how you debug.
albsim81, your language file isn't current for the version of OpenCart you're using. Yes, it is that simple.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
You have a hole in your skill set Straightlight. I'm not pointing it out to tear you down or to pretend I'm better. I'm pointing it out so you can be better at what you do.
-Ryan
I appreciate your concern rph but I can definitely handle this.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Yes, because you didn't understand the problem and didn't take the time to try to understand it. You just made an assumption and started coding.straightlight wrote:This topic only specifies on one location to where the problem needed to be fixed.
Remember, it's not that good programmers don't make mistakes. It's that they acknowledge those mistakes and learn from them. All you do is get argumentative.
-Ryan
A mistake you say ? I would rather call it a cure since there are absolutely no reasons whatsoever on why a customer should notice / see an error on screen during while they're shopping online.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: Google [Bot] and 71 guests