How to enable search - Joomla 1.6

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 9 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: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 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: 292
  • Thank you received: 5
  • Hikashop Business
13 years 9 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: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 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.061 seconds
Powered by Kunena Forum