Search issues when using hebrew langugae

Locked
User avatar
alan-s
Joomla! Explorer
Joomla! Explorer
Posts: 305
Joined: Mon Aug 22, 2005 11:39 am
Location: UK
Contact:

Search issues when using hebrew langugae

Post by alan-s » Fri Nov 11, 2011 5:45 pm

Joomla 1.5.23
PHP 5.2.17
MySQL 5.0

I have a site in RTL style, using Hebrew language pack front and back. I dont speak Hebrew unfortunately.

Whenever a search is conducted an error is produced.
A search results in a url like this:
domain/search?searchword=עמוד+ראשי&ordering=&searchphrase=all

The error produced is:
Warning: Invalid argument supplied for foreach in
mydomain/plugins/search/content.php on line 254

I have tried disabling plugins and have looked at the code which seems to be a problem connected with counting the actual results - the array of results seems to return zero.

I have noticed the $limit -= in queries which seems like minus the count but cant hack my way around it

Code: Select all

$db->setQuery( $query, 0, $limit );
$list = $db->loadObjectList();
$limit -= count($list);
I see language pagination issues mentioned in the forum but assumed this was a separate issue.

Any pointers welcome :)
if you don't know where you're going you are bound to end up somewhere....

Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

oc666
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 215
Joined: Wed Oct 10, 2007 9:46 am
Location: Israel, TA
Contact:

Re: Search issues when using hebrew langugae

Post by oc666 » Wed Dec 21, 2011 10:42 pm

Could you print $query and show us the output?
http://www.embad.com - new way to insert ads to your website


Locked

Return to “Hebrew Forum”