Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2006
    Posts
    75
    Plugin Contributions
    0

    Default 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...
    Code:
    <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!

  2. #2
    Join Date
    Jun 2006
    Posts
    75
    Plugin Contributions
    0

    Default 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

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    Thanks for the update on how you fixed this by correcting your language file ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Mar 2007
    Posts
    1
    Plugin Contributions
    0

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

    Quote Originally Posted by kookiewookie View Post
    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?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Password Retrieval Returns Error (too few arguments)
    By fwood in forum Basic Configuration
    Replies: 3
    Last Post: 10 Apr 2010, 07:30 PM
  2. Replies: 4
    Last Post: 10 Sep 2009, 09:07 PM
  3. Replies: 1
    Last Post: 10 Feb 2008, 04:26 AM
  4. Paypal error: Arguments is not an array?
    By anhjet in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 1 Oct 2007, 10:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR