Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Parafox

Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."

Post 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!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."

Post by Ted »

Does it do the same with the English translation?  What version of php are you running?
Parafox

Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."

Post by Parafox »

on my server is running PHP-Version 5.0.3.

and the english tranlsation/version is okay. no errors.
MSch

Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."

Post 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.
pinthenet

Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."

Post 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.
Parafox

Re: Errors in the admin-section: "Warning: vsprintf() [function.vsprintf]..."

Post 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.
Locked

Return to “[locked] Installation, Setup and Upgrade”