Page 1 of 1
Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."
Posted: Sun May 22, 2005 1:44 pm
by Parafox
I have installed the latest beta version of cms made simple (0.10beta3) and everything is working fine, but I get two errors in the admin section:
Warning: vsprintf() [function.vsprintf]: Too few arguments in /is/htdocs/wp1003442_L9WTTUYD/www/cmsmadesimple/lib/translation.functions.php on line 35
Warning: vsprintf() [function.vsprintf]: Too few arguments in /is/htdocs/wp1003442_L9WTTUYD/www/cmsmadesimple/lib/translation.functions.php on line 35
what are these errors trying to tell me?
the errors occure on every page in the admin section (running in german)
thanks!
Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."
Posted: Sun May 22, 2005 1:54 pm
by Ted
Does it do the same with the English translation? What version of php are you running?
Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."
Posted: Sun May 22, 2005 3:10 pm
by Parafox
on my server is running PHP-Version 5.0.3.
and the english tranlsation/version is okay. no errors.
Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."
Posted: Sun May 22, 2005 4:14 pm
by MSch
I solved the problem by changing [php]return vsprintf($lang[$realm][$name], $params);[/php] into [php]return $lang[$realm][$name];[/php]. I didn't notice any problems resulting from this fix, but I didn't look very close.
Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."
Posted: Sun May 22, 2005 5:22 pm
by pinthenet
I just switched from English to German in admin and got the same errors. When I switched back to English they disappeared
Lang files?
John
Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."
Posted: Sun May 22, 2005 7:10 pm
by Ted
Changing it won't help in the case where the string has a replacement in it.
vsprintf should work fine on any version of php later than 4.1.0.
Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."
Posted: Sun May 22, 2005 9:24 pm
by Parafox
I'm just installing the sites and everything still works fine - but I'm not really "deep into" PHP & MySQL - so I also siwtched to english for "security reasons", because I really don't know what this error is going to affect - maybe it effects nothing - but I don't know.