Skip to main content

How to enable search - Joomla 1.6

More
15 years 8 months ago #5806 by brainforge
I added a List Search Results to my main menu.
Enabled Hikashop category and product search plugins.
When I try to do a search I get the following errors:

Warning: Missing argument 1 for plgSearchHikashop_categories::onSearch(), called in ...\plugins\search\hikashop_categories\hikashop_categories.php on line 27 and defined in ...\plugins\search\hikashop_categories\hikashop_categories.php on line 35

Warning: Missing argument 1 for plgSearchHikashop_products::onSearch(), called in ...\plugins\search\hikashop_products\hikashop_products.php on line 27 and defined in ...\plugins\search\hikashop_products\hikashop_products.php on line 35

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #5809 by nicolas
Thanks for the feedback.

You should edit the files plugins\search\hikashop_categories\hikashop_categories.php and plugins\search\hikashop_products\hikashop_products.php and replace the code:
Code:
function onContentSearch(){ return $this->onSearch(); }
by the code:
Code:
function onContentSearch( $text, $phrase='', $ordering='', $areas=null ){ return $this->onSearch( $text, $phrase, $ordering, $areas ); }

That will be included in next release.

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #5844 by brainforge
Then got this error:

Notice: Undefined variable: parent in ...\plugins\search\hikashop_products\hikashop_products.php on line 164

Changed:
Code:
$parent
to
Code:
@$parent
for now.

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #5845 by nicolas
Ok thanks. We'll fix that one as well for next release. It's just a variable which is not initialized in all cases.

Please Log in or Create an account to join the conversation.

Time to create page: 0.192 seconds
Powered by Kunena Forum