How to enable search - Joomla 1.6

  • Posts: 290
  • Thank you received: 4
  • Hikashop Business
11 years 5 months ago #5806

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.

  • Posts: 75859
  • Thank you received: 11840
  • MODERATOR
11 years 5 months ago #5809

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:

    function onContentSearch(){
    	return $this->onSearch();
    }
by the 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.

  • Posts: 290
  • Thank you received: 4
  • Hikashop Business
11 years 5 months ago #5844

Then got this error:

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

Changed:
$parent
to
@$parent
for now.

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

  • Posts: 75859
  • Thank you received: 11840
  • MODERATOR
11 years 5 months ago #5845

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.058 seconds
Powered by Kunena Forum