VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Rittermann on October 14, 2011, 13:27:55 PM

Title: Error in Customer Order Confirmation
Post by: Rittermann on October 14, 2011, 13:27:55 PM
In the top of the Orderconfirmation email sent to the customer i get the following message:

Warning: sprintf() [function.sprintf]: Too few arguments in "Joomlapath"/libraries/joomla/methods.php on line 268

What to do ??  ???

Best Regards,
Maibritt
Title: Re: Error in Customer Order Confirmation
Post by: Milbo on October 14, 2011, 14:02:58 PM
We worked on this problem last days already, so it may be already fixed in the svn.
Title: Re: Error in Customer Order Confirmation
Post by: alatak on October 14, 2011, 14:36:09 PM
Hi,

As said Milbo, we probably have fixed it.
Is your shop in english?
Title: Re: Error in Customer Order Confirmation
Post by: Rittermann on October 17, 2011, 15:22:04 PM
Great,

No my shop is Danish, is that a problem?

:D
Title: Re: Error in Customer Order Confirmation
Post by: alatak on October 17, 2011, 15:38:39 PM
Hi,

Nei det er ikke et problem :)
But  I think that it is a translation problem.
The string in english has been probably changed, and should be changed also in danish file.

Title: Re: Error in Customer Order Confirmation
Post by: Namit on December 02, 2011, 15:21:09 PM
I have the same problem in virtuemart  1.9.8m and polish translation for joomla 1.7.3. When I recive confirmation email, on top of the message appears "Warning: sprintf() [function.sprintf]: Too few arguments..." in file methods.php (line 268).  I really dont know what to do..  how to fix it..  i know the problem.. but my knowledge of this topic is to poor to solve it.
Title: Re: Error in Customer Order Confirmation
Post by: alatak on December 02, 2011, 15:24:43 PM
Hi,

It is a problem with the language file. There is a %s missing on that key.
Title: Re: Error in Customer Order Confirmation
Post by: Norman27 on December 16, 2011, 15:22:18 PM
Quote from: alatak on December 02, 2011, 15:24:43 PM
Hi,

It is a problem with the language file. There is a %s missing on that key.

Hello! I have the same Problem. I donĀ“t know who in the line the %s is missing...:-(

Here the line 268: return call_user_func_array('sprintf', $args);

Can you help me, please?
Title: Re: Error in Customer Order Confirmation
Post by: yota on December 29, 2011, 18:25:48 PM
Quote from: Norman27 on December 16, 2011, 15:22:18 PM
Can you help me, please?

Sure!

Open file:
/webpage/language/pl-PL/.pl-PL.com_virtuemart.ini (polish language in this case - please open your language file)

Near line 42:
This (polish language in this case - just remove %1$s przez %2$s and change it to %s):
COM_VIRTUEMART_CART_MAIL_SHOPPER_SUMMARY="otrzymalismy od Ciebie potwierdzenie zakupu %1$s przez %2$s."

Change to this:
COM_VIRTUEMART_CART_MAIL_SHOPPER_SUMMARY="otrzymalismy od Ciebie potwierdzenie zakupu %s."
Title: Re: Error in Customer Order Confirmation
Post by: basia12 on April 17, 2012, 13:43:23 PM
Hi,

I work with Virtuemart 2.0 and i have the same problem. I changed translation file (PL) as it is show here and nothig changed. Whet to do?

Title: Re: Error in Customer Order Confirmation
Post by: alatak on April 18, 2012, 10:32:22 AM
Hi,

where do you have that code?
QuoteHere the line 268: return call_user_func_array('sprintf', $args);