Bug in Hikashop 1.6 in breadcrumb.php
13 years 11 months ago #70854
by tefun
Bug in Hikashop 1.6 in breadcrumb.php was created by tefun
Hi,
www.hikashop.com/en/forum/5-support-en-f...ied-for-foreach.html
Can you explane me on English please
My problem
Warning: Invalid argument supplied for foreach() in Z:\home\abt\www\administrator\components\com_hikashop\types\breadcrumb.php on line 17
Warning: Invalid argument supplied for foreach() in Z:\home\abt\www\administrator\components\com_hikashop\types\breadcrumb.php on line 26
Warning: Invalid argument supplied for foreach() in Z:\home\abt\www\administrator\components\com_hikashop\views\product\tmpl\category.php on line 46
www.hikashop.com/en/forum/5-support-en-f...ied-for-foreach.html
Can you explane me on English please
My problem
Warning: Invalid argument supplied for foreach() in Z:\home\abt\www\administrator\components\com_hikashop\types\breadcrumb.php on line 17
Warning: Invalid argument supplied for foreach() in Z:\home\abt\www\administrator\components\com_hikashop\types\breadcrumb.php on line 26
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70893
by nicolas
Replied by nicolas on topic Re: Bug in Hikashop 1.6 in breadcrumb.php
Please try to change the line:
$query = 'SELECT DISTINCT b.* FROM '.hikashop_table(end($this->tables)).' AS a LEFT JOIN '.
hikashop_table(end($this->tables)).' AS b ON a.category_left >= b.category_left WHERE '.
'b.category_right >= a.category_right '.$and.$where.' ORDER BY b.category_left';
to:
$query = 'SELECT b.* FROM '.hikashop_table(end($this->tables)).' AS a LEFT JOIN '.
hikashop_table(end($this->tables)).' AS b ON a.category_left >= b.category_left WHERE '.
'b.category_right >= a.category_right '.$and.$where.' GROUP BY b.category_id ORDER BY b.category_left';
in the file administrator/components/com_hikashop/classes/category.php and that should solve the problem.
$query = 'SELECT DISTINCT b.* FROM '.hikashop_table(end($this->tables)).' AS a LEFT JOIN '.
hikashop_table(end($this->tables)).' AS b ON a.category_left >= b.category_left WHERE '.
'b.category_right >= a.category_right '.$and.$where.' ORDER BY b.category_left';
to:
$query = 'SELECT b.* FROM '.hikashop_table(end($this->tables)).' AS a LEFT JOIN '.
hikashop_table(end($this->tables)).' AS b ON a.category_left >= b.category_left WHERE '.
'b.category_right >= a.category_right '.$and.$where.' GROUP BY b.category_id ORDER BY b.category_left';
in the file administrator/components/com_hikashop/classes/category.php and that should solve the problem.
The following user(s) said Thank You: tefun
Please Log in or Create an account to join the conversation.
13 years 11 months ago #71047
by tefun
Replied by tefun on topic Re: Bug in Hikashop 1.6 in breadcrumb.php
Thanks, it is help me)
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 1
- Thank you received: 0
13 years 10 months ago #73789
by holylander
Replied by holylander on topic Re: Bug in Hikashop 1.6 in breadcrumb.php
Thank you very much for your help ! it worked like a charm
Please Log in or Create an account to join the conversation.
Time to create page: 0.185 seconds