Warning: sprintf(): Too few arguments in /home/www

17 years 11 months ago #13566 by Gloub
Hi,

I have downloaded and installed CB 1 stable.
First of all thanks a lot for this great component.

I have the following error message when trying to send an email from a profile page:

Warning: sprintf(): Too few arguments in /home/www/vhosts/httpdocs/v2/components/com_comprofiler/comprofiler.html.php on line 90

Any idea where this could come from?

Thanks
Gloub

I am using Joomla 1.0.8 with OpenSEF

Post edited by: Gloub, at: 2006/05/22 12:04

Please Log in to join the conversation.

17 years 11 months ago #13571 by nant

Please Log in to join the conversation.

17 years 11 months ago #13573 by Gloub
No I have uploaded it as is

Please Log in to join the conversation.

17 years 11 months ago #13863 by Himgoku
nant wrote:

Have you changed anything in your language files?


Yes Nick A. is right.
Compare your language file with the original english language file.(see my post: email error)

CB 2.0 RC
Joomla 3.3.3

Please Log in to join the conversation.

17 years 11 months ago #13993 by Gloub
OK I think I have found the problem.
It is a problem with the translation file you were right.

On line 387 the translation file has:
[code:1]DEFINE('_UE_EMAILFORMTITLE','Envoyer un mail à <a href="index.php?option=com_comprofiler&task=UserDetails&user=%s">%s</a>');
[/code:1]

I've changed it to:
[code:1]DEFINE('_UE_EMAILFORMTITLE','Envoyer un mail à %s</a>');
[/code:1]

And I have no more warning message BUT I don't get any email from the server.

Post edited by: Gloub, at: 2006/05/26 15:00

Please Log in to join the conversation.

17 years 11 months ago #14016 by Himgoku
check your code:
[code:1]DEFINE('_UE_EMAILFORMTITLE','Envoyer un mail à %s</a>');[/code:1]

you need to remove: </a>

(see also the default language file)

Post edited by: Himgoku, at: 2006/05/27 16:49

CB 2.0 RC
Joomla 3.3.3

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.185 seconds

Facebook Twitter LinkedIn