Page 1 of 1

Search issues when using hebrew langugae

Posted: Fri Nov 11, 2011 5:45 pm
by alan-s
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 :)

Re: Search issues when using hebrew langugae

Posted: Wed Dec 21, 2011 10:42 pm
by oc666
Could you print $query and show us the output?