News:

Support the VirtueMart project and become a member

Main Menu

function.sprintf.php error

Started by deadmeiker, November 28, 2011, 08:02:30 AM

Previous topic - Next topic

deadmeiker

Hello

Can anyone help me to fix this error in the e-mail from VM???

Warning : sprintf() [ function.sprintf.php ]: Too few arguments in /home/thechose/public_html/Joomla1.7/libraries/joomla/methods.php on line 268


Thanks


[attachment cleanup by admin]

Namit

This is a problem with the language file for Joomla. Apparently the solution is to add the parameter $s somewhere in the language file. I also have this problem but I do not know how to solve it.

Milbo

Which language? I think this is a topic for the language board
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jjk

#3
Please try the updated german language file(s) for Joomla & VM2. Could be a problem with one of the "%s" in the previous version.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Namit

polish language file for joomla 1.7.3

jjk

ok - I was refering to the screenshot in the first post of this thread. Which exact version of VM2 are we talking about?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

yota

@Namit

Plik: /strona/language/pl-PL/.pl-PL.com_virtuemart.ini

Linijka około 42:
To:
COM_VIRTUEMART_CART_MAIL_SHOPPER_SUMMARY="otrzymalismy od Ciebie potwierdzenie zakupu %1$s przez %2$s."

Zamień na:
COM_VIRTUEMART_CART_MAIL_SHOPPER_SUMMARY="otrzymalismy od Ciebie potwierdzenie zakupu %s."

Tadam!!