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

Hello guys,

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

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

Post by i2Paq » Tue Mar 05, 2013 3:04 pm

Post the content of your language file.

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 3:34 pm

Thank you so much for your reply.

The files that I added to original opencart are

admin>controller>payment> 6 files in English that I edited from "bank_transfer.php"
admin>language>english>payment> 6 files in English that I edited from "bank_transfer.php"
admin>language>thai>payment> 7 files in thai that I edited from "bank_transfer.php" and "english.php"
admin>view>template>payment> 6 files that I edited from "bank_transfer.tpl"

catalog>controller>payment> 6 files in English that I edited from "bank_transfer.php"
catalog>language>english>payment> 6 files in English that I edited from "bank_transfer.php"
catalog>language>thai>payment> 7 files in thai that I edited from "bank_transfer.php" and "english.php"
catalog>model>payment> 6 files in English that I edited from "bank_transfer.php"
catalog>view>theme>default>template>payment> 6 files that I edited from "bank_transfer.tpl"

So, could you please guide me where to look at?

Thank you so much for your kind help.

k17
New member

Posts

Joined
Tue Jan 08, 2013 4:53 am

Post by i2Paq » Tue Mar 05, 2013 6:08 pm

I need the Thai version of checkout/success.php

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 » Wed Mar 06, 2013 3:26 am

Thank you so much.

This is the code in checkout/success.php.

*knip*

There is no error as I checked in Dreamweaver. Maybe you can help me find one.

I can't say thank you enough for your help. i2Paq.

k17
New member

Posts

Joined
Tue Jan 08, 2013 4:53 am

Post by i2Paq » Wed Mar 06, 2013 6:26 am

Sorry for the confusion, I mean the catalog\your-language\checkout\success.php

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 » Wed Mar 06, 2013 2:42 pm

Hello again,



Thank you so much my friend.

K
Last edited by k17 on Thu Mar 07, 2013 2:05 am, edited 2 times in total.

k17
New member

Posts

Joined
Tue Jan 08, 2013 4:53 am

Post by i2Paq » Thu Mar 07, 2013 12:44 am

In 1.5.5.1 something changed in that file.

If you compare it with the English file you see that in your file there are to many <a href="%s">.

You need to alter your language file to match with the English file.

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 » Thu Mar 07, 2013 2:05 am

i2Paq. You are the man.

I finally fixed it. You are right that I made some mistake on the translation. And I am too stupid to notice that.

Without you, I will not be able to solve it.

Thank you so muchhhhhhhhh for your help and your patience.

Hope you have a great day.

K

k17
New member

Posts

Joined
Tue Jan 08, 2013 4:53 am

Post by i2Paq » Thu Mar 07, 2013 3:23 am

I made the same mistake ;D

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
Who is online

Users browsing this forum: Amazon [Bot] and 53 guests