Error message when activating filters

  • Posts: 13
  • Thank you received: 1
11 years 6 months ago #100846

Hi all,
I get an error message on the frontent when I activate two different filters. One is for products' properties (colours) and the other is for material. In the articles properties I have defined the colours and the materials in order to be able to use filters.

>> The error message I get is this:
Warning: implode() [function.implode]: Invalid arguments passed in ../administrator/components/com_hikashop/classes/filter.php on line 981

After activating the filters, only the titles of the filters can be seen on the frontend, but nothing else...

Could anyone tell me what that means?

Last edit: 11 years 6 months ago by kimono.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #100942

Hi,

Have you the latest version of HikaShop ?

Can you give us the screenshot of your filters configuration ?
And the corresponding lines where the error is ?

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

  • Posts: 13
  • Thank you received: 1
11 years 6 months ago #100974

Hi Xavier,

1)my HikaShop Business version is 2.1.2

2)Screenshot No.1:



3)Screenshot No.2:


4)The corresponding lines in "filter.php" are the following. (The second from top is line 981, mentioned in the error message):
if($filter->filter_data=='category'){

				if(!($infoGet[0]==$filter->filter_namekey && count($infoGet)==1)){

					$categoriesList='';

					foreach($infoGet as $cat){

						if($cat!=$filter->filter_namekey){

							$categoriesList.=(int)$cat.',';

						}

					}

					$categoriesList=substr($categoriesList,0,-1);



					$table = 'a';

					if(preg_match('#hikashop_product AS ([a-z0-9_]+)#i',$a,$matches)){

						$table = $matches[1];

					}

					$on.=' INNER JOIN '.hikashop_table('product_category').' AS '.$filter->filter_namekey.$i.' ON '.$filter->filter_namekey.$i.'.product_id='.$table.'.product_id AND '.$filter->filter_namekey.$i.'.category_id IN ('.$categoriesList.')';

				}

			}


I hope you can help me...

Last edit: 11 years 6 months ago by kimono. Reason: image url was wrong...

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #101468

We are not able to reproduce the problem on our end.

Please provide a backend access to your website via our contact form so that we can check your settings.

Last edit: 11 years 6 months ago by nicolas.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum