Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / error sending GiftCert. [function.sprintf]: Too few arguments

error sending GiftCert. [function.sprintf]: Too few arguments

Locked

Views: 6,779

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
29 Jun 2006, 18:17
#1
kookiewookie avatar

kookiewookie

New Zenner

Join Date:
Jun 2006
Posts:
75
Plugin Contributions:
0

error sending GiftCert. [function.sprintf]: Too few arguments

Warning: sprintf() [function.sprintf]: Too few arguments in somewhere\templates\tpl_gv_send_default.php on line 49

IF i hit the send button to send the GiftCertificate to someone

** in my language files there are also some defines missing but that cannot be it i guess.

using zencart 1.3.x ( not the lastest patch yet )

line 49 is just the errormessage...

<form action="<?php echo zen_href_link(FILENAME_GV_SEND, 'action=process', 'SSL', false); ?>" method="post">

<div id="gvSendDefaultMainMessage" class="content"><?php echo sprintf(MAIN_MESSAGE, $currencies->format($_POST['amount'], false), $_POST['to_name'], $_POST['email']); ?></div> 

Some mistakes in there?

Thanks!

30 Jun 2006, 12:49
#2
kookiewookie avatar

kookiewookie

New Zenner

Join Date:
Jun 2006
Posts:
75
Plugin Contributions:
0

Re: error sending GiftCert. [function.sprintf]: Too few arguments

mistakes in the language file ( too many returns! ) crashed it... all is working now. Translated the original english version

01 Jul 2006, 02:03
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: error sending GiftCert. [function.sprintf]: Too few arguments

Thanks for the update on how you fixed this by correcting your language file ... :smile:

20 Mar 2007, 13:44
#4
dcr avatar

dcr

New Zenner

Join Date:
Mar 2007
Posts:
1
Plugin Contributions:
0

Re: error sending GiftCert. [function.sprintf]: Too few arguments

kookiewookie:

mistakes in the language file ( too many returns! ) crashed it... all is working now. Translated the original english version

I'm having the same problem, what languages file do you mean? Can someone please help me with this one? Any examples?

21 Mar 2007, 03:04
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: error sending GiftCert. [function.sprintf]: Too few arguments

More than likely your language file for:
/includes/languages/english/gv_send.php

is out of date either in your templates and overrides directory or in whatever language directory you have ...