Sorry, I'm very unskilled. You said language file isn't current for the version of OpenCart I am using.
What do you mean? Where Have I to correct it? Can you explain better to me? Thank you
What do you mean? Where Have I to correct it? Can you explain better to me? Thank you
Sigaretta elettronica Opencart 1.5.4.1 italian translation
The Italian language files you're using are for an earlier version of OpenCart and need to be upgraded to 1.5.1.3. That or you're using a mod which needs changes made to non-English language files to accommodate it. The easiest place to start is by installing an Italian language translation that is verified for 1.5.1.3.
http://www.opencart.com/index.php?route ... order=DESC
http://www.opencart.com/index.php?route ... order=DESC
-Ryan
Hi guys
Bringing back the old topic
The magic of "too few arguments" 
Info:
OC 1.5.4.1
Installed Slovenian language where success.php language file says

No additional payment module ..
Shipping
- Flat Rate
Payment
- Cash on Delivery
Error says:
Warning: sprintf(): Too few arguments in /domains/mydomain.si/public_html/catalog/controller/checkout/success.php on line 60
where line 60 says
Order is done, is accepted .. i can see it.
Really no idea where else to look. Please help me .. i turned this forum and Google around .. no luck ... must be something i don't see
Thank you
Bringing back the old topic


Info:
OC 1.5.4.1
Installed Slovenian language where success.php language file says
so, language file is up and runing<?php
// Heading
$_['heading_title'] = 'Naročilo je oddano!';
$_['heading_title_customer'] = 'Naročilo (#%s) je oddano!';
// Text
$_['text_customer'] = '<p>Vaše naročilo (<a href="%s">#%s</a>) je bilo oddano v nadaljno obdelavo.</p><p>Zgodovino in status naročil lahko kadarkoli spremljate v <a href="%s">Moj račun</a>, s klikom na <a href="%s">Zgodovina</a>.</p>Če vaš nakup vključuje tudi pretok podatkov, lahko to naredite na strani <a href="%s">Prenosi</a>.</p><p>Če imate kakršnokoli vprašanje, pišite na naš <a href="%s">e-mail naslov</a>.</p><p>Hvala za vaše naročilo!</p>';
$_['text_guest'] = '<p>Vaše naročilo je bilo oddano v nadaljno obdelavo.</p><p>Če imate kakršnokoli vprašanje, pišite na naš <a href="%s">e-mail naslov</a>.</p><p>Hvala za vaše naročilo!</p>';
$_['text_basket'] = 'Košarica';
$_['text_checkout'] = 'Na blagajno';
$_['text_success'] = 'Sprejeto';
?>

No additional payment module ..
Shipping
- Flat Rate
Payment
- Cash on Delivery
Error says:
Warning: sprintf(): Too few arguments in /domains/mydomain.si/public_html/catalog/controller/checkout/success.php on line 60
where line 60 says
Code: Select all
$this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
Really no idea where else to look. Please help me .. i turned this forum and Google around .. no luck ... must be something i don't see

Thank you
Its is a simple problem:
"Warning: sprintf(): Too few arguments in"
its meaning that more "%s" is request on the language file that the parameters of the code:
in that case:
we have 4 solicitations.
So, check $_['text_customer'] in your language file
"Warning: sprintf(): Too few arguments in"
its meaning that more "%s" is request on the language file that the parameters of the code:
in that case:
Code: Select all
if ($this->customer->isLogged()) {
$this->data['text_message'] = sprintf($this->language->get('text_customer'),
$this->url->link('account/account', '', 'SSL'),
$this->url->link('account/order', '', 'SSL'),
$this->url->link('account/download', '', 'SSL'),
$this->url->link('information/contact'));
}
So, check $_['text_customer'] in your language file

Thank you for your help!asdrubal wrote:Its is a simple problem:
"Warning: sprintf(): Too few arguments in"
its meaning that more "%s" is request on the language file that the parameters of the code:
in that case:we have 4 solicitations.Code: Select all
if ($this->customer->isLogged()) { $this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact')); }
So, check $_['text_customer'] in your language file
I had the same problem and your advice has be very helpful to solve it. The reason was a mistake in translating /catalog/language/english/checkout/success.php to my mother tongue.
I only had to open the original file and my bad translated file at the same time and compare them to discover the mistake. Fixing it was pretty easy.
I hope your advice will be useful for more OpenCartians!
Hi friends,
I need help, this is the error:
but it is only generated with Portuguese.
I thought I was the "multi payment fee" module but not with the developer and Portuguese work.
The error appeared in v1.5.6, after migrating local to remote, in local mode works very well.
Thank!
I need help, this is the error:
I have installed 4 languages (English, Spanish, French and Portuguese)Warning: sprintf() [function.sprintf]: Too few arguments in /home/classic/public_html/catalog/model/account/customer.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/classic/public_html/index.php:108) in /home/classic/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/classic/public_html/index.php:108) in /home/classic/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 29
but it is only generated with Portuguese.
I thought I was the "multi payment fee" module but not with the developer and Portuguese work.
The error appeared in v1.5.6, after migrating local to remote, in local mode works very well.
Thank!
Just to explain, how I solved my Problem,just realized today, with this:
1. Checking out with the Default english Language, everything worked well.
2. In the German Language File, I have, for some reason, this HREF-Link and the Number of the Order ??, I assume, but NEITHER ENTRY is tolerated by the Script:
and it produced:
3. So, in the German language File, I just removed this <a href="%s">#%s</a> Stuff in the Line, to make it look like the english Version, without a HREF Link in between:
and it all worked well.
Conclusion: Since I, so far, never found out, how this Kind of href="%s" stuff works in the first place, I just had to resign from trying more, especially, since all other HREF-Links on this Page, like:
But possibly, someone could tell us, why the first ['text_consumer'] link does screw up the 'following' information after the ['heading_title'], that it even produced an error. The ['heading_title_consumer'] itself works.
My final solution to this:
It possibly the german language file only, not containing all 'references' required, I imagine anyway...
Ernie
bigmax.ch/shop/
1. Checking out with the Default english Language, everything worked well.
Code: Select all
<p>Your order has just been successfully processed...
Code: Select all
<p>Ihr Auftrag <a href="%s">#%s</a> wurde soeben erfolgreich verarbeitet... (default)
nor:
<p>Ihr Auftrag #%s wurde soeben erfolgreich verarbeitet... (test1)
nor:
<p>Ihr Auftrag <a href="%s"> </a> wurde soeben erfolgreich verarbeitet... (test2)
Code: Select all
Warning: sprintf() [function.sprintf.php]: Too few arguments in /home/jacob/www/bigmax/shop/catalog/controller/checkout/success.php on line 54
Code: Select all
<p>Ihr Auftrag wurde soeben erfolgreich verarbeitet...
Conclusion: Since I, so far, never found out, how this Kind of href="%s" stuff works in the first place, I just had to resign from trying more, especially, since all other HREF-Links on this Page, like:
work flawless, beeing WRITTEN exactly the same way...<a href="%s">Mein Konto</a>
<a href="%s">Historie</a>
<a href="%s">Downloads</a>
But possibly, someone could tell us, why the first ['text_consumer'] link does screw up the 'following' information after the ['heading_title'], that it even produced an error. The ['heading_title_consumer'] itself works.
My final solution to this:
Code: Select all
$_['heading_title'] = 'Ihr Auftrag wurde erfolgreich verarbeitet!';
$_['heading_title_customer'] = 'Ihr Auftrag wurde erfolgreich verarbeitet!';
// Text
$_['text_customer'] = '<p>Ihr Auftrag wurde soeben erfolgreich verarbeitet!</p><p>Sie können die Auftragshistorie abrufen, indem Sie die Seite <a href="%s">Mein Konto</a> aufrufen und auf <a href="%s">Historie</a> klicken.</p>Wenn Ihr Einkauf ein Download war, können Sie die Seite <a href="%s">Downloads</a> aufrufen, um sie anzuzeigen.</p><p>Richten Sie bitte alle Fragen an den <a href="%s">Shop Inhaber</a>.</p><p>Vielen Dank für Ihren Einkauf bei uns.</p>';
$_['text_guest'] = '<p>Ihr Auftrag wurde soeben erfolgreich verarbeitet!</p><p>Richten Sie bitte alle Fragen an den <a href="%s">Shop Inhaber</a>.</p><p>Vielen Dank für Ihren Einkauf bei uns.</p>';
Ernie
bigmax.ch/shop/
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
This solution worked spot on for me, I have however translated to Spanish the text above.rph wrote: ↑Wed Aug 03, 2011 2:37 pmThe problem is your language pack. Make sure this is present:
/catalog/language/[language]/checkout/success.phpCode: 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>';
Thanks again Ryan

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