[not bug. language update] Search - Warning: sprintf() [function.sprintf]

Locked
User avatar
1nf1n17yLOVE
Joomla! Explorer
Joomla! Explorer
Posts: 279
Joined: Wed May 17, 2006 10:52 pm
Contact:

[not bug. language update] Search - Warning: sprintf() [function.sprintf]

Post by 1nf1n17yLOVE » Mon Jan 07, 2008 5:53 am

Hello,
i get this error message when using the search:

Code: Select all

Warning: sprintf() [function.sprintf]: Too few arguments in /www/htdocs/xxx/libraries/joomla/methods.php on line 145
Nightly Build is from friday...

What can i do to fix this?
The search in the forum here returned nothing at all ... google givs more, but not specific enough.

Thanks,
Laura
Last edited by infograf768 on Thu Jan 24, 2008 10:49 am, edited 1 time in total.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Warning: sprintf() [function.sprintf]

Post by infograf768 » Mon Jan 07, 2008 6:42 am

Which precise term are you using in the search?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
1nf1n17yLOVE
Joomla! Explorer
Joomla! Explorer
Posts: 279
Joined: Wed May 17, 2006 10:52 pm
Contact:

Re: Warning: sprintf() [function.sprintf]

Post by 1nf1n17yLOVE » Mon Jan 07, 2008 6:45 am

i use the default word phrase

"Finde Deinen Tarif"

Changeing these makes no diffrence ..

Example

tarif-star.de

thx

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Warning: sprintf() [function.sprintf]

Post by infograf768 » Mon Jan 07, 2008 7:52 am

Confirmed, what ever the string used.
Added to dev list.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
3wP
Joomla! Explorer
Joomla! Explorer
Posts: 261
Joined: Mon May 14, 2007 6:29 pm
Location: Norway

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by 3wP » Mon Jan 07, 2008 3:52 pm

Tested the search in my install wich got the latest svn files - but cant replicate this error there.
Nightly Build is from friday...
Might be a none error as per latest svn

But, if you got the same problem infograf, and i guess you are up 2 date on the files on ure system? = i must be doing something wrong in trying to replicate...or?

User avatar
1nf1n17yLOVE
Joomla! Explorer
Joomla! Explorer
Posts: 279
Joined: Wed May 17, 2006 10:52 pm
Contact:

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by 1nf1n17yLOVE » Mon Jan 07, 2008 5:00 pm

Hmm strange as i didnt modified anything there but i will setup the search module from scratch ... maybe this helps (Helped with banners module earlyer ...).


I report back ....

UPDATE

Createing the search from scratch want fix it, still same error. Im going to update to teh latest NB later on ...

Cheers,
Laura
Last edited by 1nf1n17yLOVE on Mon Jan 07, 2008 5:03 pm, edited 1 time in total.

User avatar
rufuz
Joomla! Explorer
Joomla! Explorer
Posts: 303
Joined: Wed May 09, 2007 10:07 am
Location: Rome
Contact:

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by rufuz » Tue Jan 08, 2008 2:33 pm

Hi, I had the same error and solved updating frontend language (it_IT in my case)

see here my post:

http://forum.joomla.org/index.php/topic,246066.0.html

hope this will solve

bye

ricc.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by infograf768 » Tue Jan 08, 2008 2:47 pm

What did you change?

I still have this error using the English language:
Warning: mb_strpos() [function.mb-strpos]: Offset is out of range in /Library/WebServer/Documents/joomla11new/libraries/phputf8/mbstring/core.php on line 32
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
1nf1n17yLOVE
Joomla! Explorer
Joomla! Explorer
Posts: 279
Joined: Wed May 17, 2006 10:52 pm
Contact:

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by 1nf1n17yLOVE » Tue Jan 08, 2008 3:07 pm

So in my case its german frontend language ... will update this (reinstall).

When i uninstall german (default language) the error is gone ( i had formal, now i installed "All")
This file
http://joomlacode.org/gf/download/frsre ... a15RC3.zip

Error re occures, so this is something with the translation ...

User avatar
rufuz
Joomla! Explorer
Joomla! Explorer
Posts: 303
Joined: Wed May 09, 2007 10:07 am
Location: Rome
Contact:

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by rufuz » Tue Jan 08, 2008 3:13 pm

@ infograf

I figured out the problem could be the language, after having checked all differences from my installation and a standard working one: last chance was the language.

I only went to joomla.it (good for my case), downloaded updated frontend lang, and it magically worked...
the problem arose exactly in coincidence with rc4 first build.

anyway my error msg was:

Warning: sprintf() [function.sprintf]: Too few arguments in /www/htdocs/xxx/libraries/joomla/methods.php on line 145

exactly the same one of 1nf1n17yLOVE....  that is using german (?)

bye

ricc.
Last edited by rufuz on Tue Jan 08, 2008 3:15 pm, edited 1 time in total.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by infograf768 » Tue Jan 08, 2008 3:19 pm

I found out about that one.
There was a change in com_search.ini

I still had
TOTALRESULTSFOUND=%s résultats trouvés. Recherche de %s avec
instead of
TOTALRESULTSFOUND=%s résultats trouvés.

I guess the warning came from the second "%s"


I have a remaining error here when searching:
Warning: mb_strpos() [function.mb-strpos]: Offset is out of range in /Library/WebServer/Documents/joomla11new/libraries/phputf8/mbstring/core.php on line 32
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
1nf1n17yLOVE
Joomla! Explorer
Joomla! Explorer
Posts: 279
Joined: Wed May 17, 2006 10:52 pm
Contact:

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by 1nf1n17yLOVE » Tue Jan 08, 2008 3:20 pm

rufuz wrote: exactly the same one of 1nf1n17yLOVE....  that is using german (?)
Hi ricc,
yipp german :)
Well im not sooo sure if this is really a translation bug, maybe its the integration?

Well i dont know ...at least we tracking it now ...

Cheers,
Laura

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by infograf768 » Tue Jan 08, 2008 4:28 pm

OK, we tracked down the second Warning to be only an issue with weblinks titles, when the term is not present in a content.

There is an easy solution but we are testing first.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
Xaus
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Jan 07, 2008 8:43 pm

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by Xaus » Wed Jan 23, 2008 10:19 pm

In my case I getting this warning after using the search function:

Warning: sprintf() [function.sprintf]: Too few arguments in /var/www/libraries/joomla/methods.php on line 139
I am using stable Joomla 1.5 and Spanish language 1.5 RC4

I have solved the problem changing a sentnce in the spanish file in order to mach the english one

File: es-ES.com_search.ini

Line 24: TOTALRESULTSFOUND=Total: %s resultados encontrados.  Buscar para %s con

After changing this to:

Line 24: TOTALRESULTSFOUND=Total: %s resultados encontrados.

The warning is gone
Last edited by Xaus on Wed Jan 23, 2008 10:25 pm, edited 1 time in total.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: [BUG] Search - Warning: sprintf() [function.sprintf]

Post by infograf768 » Thu Jan 24, 2008 10:48 am

Yes, this issue is solved when languages are upgraded to last 1.5 version.
Closing this report.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group


Locked

Return to “Q&T 1.5.x Resolved”