Post by i2Paq » Mon Sep 10, 2012 8:18 pm

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.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by i2Paq » Mon Sep 10, 2012 8:29 pm

Found it, stupid me: Translation error in a Dutch language file :drunk:

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by Ed_Rolla » Sat Nov 17, 2012 11:49 pm

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) :-[

WIP Design Publicidade e Marketing Digital


User avatar
New member

Posts

Joined
Sun Jul 15, 2012 12:16 am
Location - Brazil, Rio de Janeiro

Post by i2Paq » Sun Nov 18, 2012 4:45 pm

I had a %s to few in my Dutch translation I believe.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by Ed_Rolla » Thu Nov 22, 2012 3:50 am

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!

WIP Design Publicidade e Marketing Digital


User avatar
New member

Posts

Joined
Sun Jul 15, 2012 12:16 am
Location - Brazil, Rio de Janeiro

Post by i2Paq » Thu Nov 22, 2012 6:15 pm

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

:whistle:

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by k17 » Tue Mar 05, 2013 5:19 am

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."

k17
New member

Posts

Joined
Tue Jan 08, 2013 4:53 am
Who is online

Users browsing this forum: No registered users and 8 guests