Page 1 of 1

[SOLVED] [Error] Too few arguments in success.php on line 68

Posted: Mon Sep 10, 2012 8:18 pm
by i2Paq
No clue why all of a sudden this error appears?

Warning: sprintf() [function.sprintf]: Too few arguments in /var/www/vhosts/australiangoldwinkel.nl/httpdocs/catalog/controller/checkout/success.php on line 68

The checkout goes throe but the error keeps coming up.

I've seen similar errors like this but none related to the catalog/controller/checkout/success.php

Any hints?

OC 1.5.4.1, clean install, vQmod installed but no vQmods in use.
Default theme.

Re: [Error] Too few arguments in success.php on line 68

Posted: Mon Sep 10, 2012 8:29 pm
by i2Paq
Found it, stupid me: Translation error in a Dutch language file :drunk:

Re: [Error] Too few arguments in success.php on line 68

Posted: Sat Nov 17, 2012 11:49 pm
by Ed_Rolla
i2Paq wrote:Found it, stupid me: Translation error in a Dutch language file :drunk:
Hey, i2Paq. Can you please tell us what waas it you did to fix the issue?
Many people are getting the same problem... (me, for instance) :-[

Re: [Error] Too few arguments in success.php on line 68

Posted: Sun Nov 18, 2012 4:45 pm
by i2Paq
I had a %s to few in my Dutch translation I believe.

Re: [Error] Too few arguments in success.php on line 68

Posted: Thu Nov 22, 2012 3:50 am
by Ed_Rolla
I also found out what was generating the errors.

Seems the function on "controller/checkout/success.php" expects 7 argumets (7 occurrences of "%s").

Being that so - more, or less, than 7 calls of "%s" on the "controller/language/[your_lang]/checkout/success.php" will generate the error.

If that was it, i2Paq, mark the post as solved so that the other members know this is the solution. ;)

Cheers!

Re: [Error] Too few arguments in success.php on line 68

Posted: Thu Nov 22, 2012 6:15 pm
by i2Paq
Ed_Rolla wrote: If that was it, i2Paq, mark the post as solved so that the other members know this is the solution. ;)
:-[

:whistle:

Re: [SOLVED] [Error] Too few arguments in success.php on lin

Posted: Tue Mar 05, 2013 5:19 am
by k17
Hi,

I am having the same problem here. Can you please tell me how to fix it?

This is my problem http://forum.opencart.com/viewtopic.php?f=20&t=96911

"Hello guys,

Well, everything is ok. But, today, I added the module for bank transfer that I just edited to the website. Then, shit happened!

After the checkout in my local language, there are this error


Warning: sprintf() [function.sprintf]: Too few arguments in /home/axxxx/public_html/catalog/controller/checkout/success.php on line 68

I don't know what it is because I didn't touch this file at all. Below is the code of checkout/success.php on line 68.

code:
$this->data['text_message'] = sprintf($this->language->get('text_guest'), $this->session->data['last_order_id'], $this->url->link('information/contact'));

But, if I check out with English language, this error won't show up.

Please help me solve this problem.

Thank you."