Hebrew Search problem

Locked
magnetall
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Fri Jan 25, 2008 8:16 am

Hebrew Search problem

Post by magnetall » Tue Sep 16, 2008 8:41 am

I have Joomla 1.5.7 installed.
When I perform hebrew search on site i get following warnings :

Code: Select all

Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 6 in E:\hosting\member\****\components\com_search\views\search\view.html.php on line 145

Warning: sprintf() [function.sprintf]: Too few arguments in E:\hosting\member\*****\libraries\joomla\methods.php on line 138

after the warnings search results are apear.
If i perform english search , sprintf() warning apear

magnetall
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Fri Jan 25, 2008 8:16 am

Re: Hebrew Search problem

Post by magnetall » Wed Sep 17, 2008 6:20 am

As workaround I disabled following line at components\com_search\views\search\view.html.php

Code: Select all

$row = preg_replace($searchRegex, '<span class="highlight">\0</span>', $row );
But I looking for real solution. Somebody have an idea?

sprintf() warning was because of wrong format in language file.

User avatar
3dentech
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 120
Joined: Fri Feb 01, 2008 11:39 pm
Location: Brazil
Contact:

Re: Hebrew Search problem

Post by 3dentech » Mon Nov 03, 2008 10:55 am

the error is because of line

Code: Select all

		$this->result	= JText::sprintf( 'TOTALRESULTSFOUND', $total );
probably your translation use more or less then 1 arguments %s
make shure that there are only one %s on the translation
http://3den.org
3DEN - Open Software

boozi
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Thu Jun 07, 2007 2:38 pm
Contact:

Re: Hebrew Search problem

Post by boozi » Mon Jun 08, 2009 2:07 pm

to solve this remove the second "%s" parameter in the line :

TOTALRESULTSFOUND=נמצאו סה"כ %s תוצאות. חיפוש הביטוי <b>%s</b> בעזרת

in the file languages\he-IL.com_search.ini

like 3dentech mentioned, there is only one parameter expected.

Hope this helps anyone running into the same issue,

Boaz

User avatar
3dentech
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 120
Joined: Fri Feb 01, 2008 11:39 pm
Location: Brazil
Contact:

Re: Hebrew Search problem

Post by 3dentech » Wed Jun 17, 2009 11:47 pm

This also happens on pt-BR, is just a simple tranlation error
http://3den.org
3DEN - Open Software

winndd5
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Jul 27, 2009 5:13 pm

Re: Hebrew Search problem

Post by winndd5 » Mon Jul 27, 2009 5:25 pm

I got the same problem:

Warning: sprintf() [function.sprintf]: Too few arguments in /home/*****/public_html/rtupgrade/libraries/joomla/methods.php on line 138

Went ahead and check all that's been posted here. All seems to be correct. The problem persist. Any other suggestion?

User avatar
SoftDux
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 223
Joined: Sun Oct 02, 2005 4:39 pm
Location: Johannesburg, South Africa
Contact:

Re: Hebrew Search problem

Post by SoftDux » Wed Mar 17, 2010 4:00 pm

Hi,

Have you found a problem to the solution yet? I'm getting the same error, on a Joomla 1.5.15 website

User avatar
talchu
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Nov 25, 2009 11:02 am
Location: Israel
Contact:

Re: Hebrew Search problem

Post by talchu » Mon Jul 12, 2010 12:29 pm

Thanks, Boozi solution (changing the translation string) worked.
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

User avatar
talchu
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Nov 25, 2009 11:02 am
Location: Israel
Contact:

Re: Hebrew Search problem

Post by talchu » Mon Aug 02, 2010 9:21 am

Supplemental: the problem of "too few arguments" can happen in other cases too (e.g. when you have more than 1 page in the results), even after you change the TOTALRESULTSFOUND, as Boozi wrote).

I found out that the pagination function looks for text translation JPAGE_CURRENT_OF_TOTAL, so changing it in /langages/he-IL/he-IL.ini to JPAGE_CURRENT_OF_TOTAL=עמוד %s מתוך %s solved the pagination missing parameters warning message.
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

victoriayz
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Jan 12, 2014 4:41 pm

Re: Hebrew Search problem

Post by victoriayz » Thu Apr 24, 2014 10:42 am

Hello,www.leaksfix.com http://www.workouttoday.net
http://www.restoreacar.net
I was looking for this and I've found this thread !
http://www.gardenhosepro.com
Thanks talchu. I've changed JPAGE_CURRENT_OF_TOTAL and it worked.http://www.bugskiller.net http://snorerx.wordpress.com
tycoongoldaddon.org
Victoriawww.ipillows.net
www.abetterhearing.net

seinfeld001
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Aug 05, 2015 1:26 am
Contact:

Re: Hebrew Search problem

Post by seinfeld001 » Thu Aug 06, 2015 2:18 pm

Both methods described work for me.


Locked

Return to “Hebrew Forum”