vote-comment problem as guest user

  • Posts: 20
  • Thank you received: 0
1 month 3 weeks ago #330891

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.3.5

Hi
when send a vote(vote and comment sync) as guest user, your request doesn't have any response in network tab
and where is problem?;)
in vote class at path:
administrator/components/com_hikashop/classes/vote.php in line 364 if $count equal zero then $data->product_average_score will equal NaN
this problem can solve by a small trick, in line 365 replace with this:

$data->product_average_score = is_nan($sum / $count) ? 0 : $sum / $count;

I hope helped to Hika a little

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

  • Posts: 72763
  • Thank you received: 11096
  • MODERATOR
1 month 3 weeks ago #330894

Hi,

Thanks for your feedback !
We've added the patch on our end.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum