-
Every time activating the plugin get error ^Warning: sprintf() [function.sprintf]: Too few arguments in /home/mysite/plugins/userpro/functions/defaults.php on line 150
$array[‘mail_newaccount_s’] = sprintf(__(‘Welcome to %s!’,’userpro’), get_bloginfo(‘name’) );
Thats whot i see in line 150Hi Мылов Тарас,
just a guess but are you running something non-english? The code looks fine in core, but one of the translation files might be wrong.
Are you running some translation files? Because the file is correct here. Anyway, simple solution is to change
$array[‘mail_newaccount_s’] = sprintf(__(‘Welcome to %s!’,’userpro’), get_bloginfo(‘name’) ); to
$array[‘mail_newaccount_s’] = sprintf(__(‘Welcome to %s’,’userpro’), get_bloginfo(‘name’) );
A few days ago it worked fine, then I turned it off and after a couple of days activated again. After that, the problems began. Could there be a problem in hosting? translation files I did not touch or change any
Please try my suggestion
$array[‘mail_newaccount_s’] = sprintf(__(‘Welcome to %s!’,’userpro’), get_bloginfo(‘name’) ); to
$array[‘mail_newaccount_s’] = sprintf(__(‘Welcome to %s’,’userpro’), get_bloginfo(‘name’) );
That showed after your suggestion
The plugin was not activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_STRING in /home/…/wp-content/plugins/userpro/functions/defaults.php on line 150Deleted file ru_RU.po and mo – plugin works. But I need the Russian language. How to solve the problem? Where is the error in the file ru_RU.po and mo?
It looks like a bug in ru_RU installation file. can you check the translation of that sentence in the ru po file?
You must be logged in to reply to this topic.