[Skip to main content](#vessel-content)

#   Rating error helpful comment

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

3 years 1 month ago -  3 years 1 month ago [\#355355](#355355) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Rating error helpful comment](/forum/42-vote/907038-rating-error-helpful-comment#355355 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.17 -- Browser(s) name and version -- : Google Chrome 117  Hi, I'm getting the following error when rating a helpful comment: POST http://localhost/demo/index.php/component/hikashop/vote/save?tmpl=component 500 (Internal Server Error)")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.3.4
-- PHP version -- : 8.1.17
-- Browser(s) name and version -- : Google Chrome 117

Hi, I'm getting the following error when rating a helpful comment: POST http://localhost/demo/index.php/component/hikashop/vote/save?tmpl=component 500 (Internal Server Error)
Code:

0 round(): Argument #1 ($num) must be of type int&#124;float, string given

Last edit: 3 years 1 month ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvOTA3MDM4LXJhdGluZy1lcnJvci1oZWxwZnVsLWNvbW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

3 years 1 month ago [\#355359](#355359) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Rating error helpful comment](/forum/42-vote/907038-rating-error-helpful-comment#355359 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.17 -- Browser(s) name and version -- : Google Chrome 117  Hi, I'm getting the following error when rating a helpful comment: POST http://localhost/demo/index.php/component/hikashop/vote/save?tmpl=component 500 (Internal Server Error)")*

Hello,

Can you active the Joomla Debug at maximum level, and process a screenshot in order to show us everything?
This will allow us to better understand the error and his context.

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvOTA3MDM4LXJhdGluZy1lcnJvci1oZWxwZnVsLWNvbW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

3 years 1 month ago [\#355373](#355373) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Rating error helpful comment](/forum/42-vote/907038-rating-error-helpful-comment#355373 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.17 -- Browser(s) name and version -- : Google Chrome 117  Hi, I'm getting the following error when rating a helpful comment: POST http://localhost/demo/index.php/component/hikashop/vote/save?tmpl=component 500 (Internal Server Error)")*

[ ![ScreenShot09-26-23at09.59AM.PNG](/forum/attachment/57897) ](/forum/attachment/57897 "...3at09.59AM.PNG")

- [ ![ScreenShot09-26-23at09.59AM.PNG](/forum/attachment/57897) ](/forum/attachment/57897 "...3at09.59AM.PNG") [ ](/forum/attachment/57897?download=1 "...3at09.59AM.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvOTA3MDM4LXJhdGluZy1lcnJvci1oZWxwZnVsLWNvbW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

3 years 1 month ago [\#355376](#355376) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Rating error helpful comment](/forum/42-vote/907038-rating-error-helpful-comment#355376 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.17 -- Browser(s) name and version -- : Google Chrome 117  Hi, I'm getting the following error when rating a helpful comment: POST http://localhost/demo/index.php/component/hikashop/vote/save?tmpl=component 500 (Internal Server Error)")*

fixed

components/com_hikashop/controllers/vote.php

row 72 and 73
Code:

$return['values'] = array('average' =&gt; round($voteClass-&gt;values['average'],2), 'rounded' =&gt; round($voteClass-&gt;values['average']), 'total' =&gt; $voteClass-&gt;values['total']); $return['tooltip'] = JText::sprintf('HIKA_VOTE_TOOLTIP',round($voteClass-&gt;values['average'],2),$voteClass-&gt;values['total'],$element-&gt;vote_rating);

changed to
Code:

$return['values'] = array('average' =&gt; round((float)$voteClass-&gt;values['average'],2), 'rounded' =&gt; round((float)$voteClass-&gt;values['average']), 'total' =&gt; $voteClass-&gt;values['total']); $return['tooltip'] = JText::sprintf('HIKA_VOTE_TOOLTIP',round((float)$voteClass-&gt;values['average'],2),$voteClass-&gt;values['total'],$element-&gt;vote_rating);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvOTA3MDM4LXJhdGluZy1lcnJvci1oZWxwZnVsLWNvbW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

3 years 1 month ago [\#355378](#355378) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Rating error helpful comment](/forum/42-vote/907038-rating-error-helpful-comment#355378 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.17 -- Browser(s) name and version -- : Google Chrome 117  Hi, I'm getting the following error when rating a helpful comment: POST http://localhost/demo/index.php/component/hikashop/vote/save?tmpl=component 500 (Internal Server Error)")*

Hi,

Thank you for the details and the patch. We've added it on our end.
For others with the issue, you can download the install package of HikaShop on our website and install it on yours and it will automatically apply the patch.

The following user(s) said Thank You: [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvOTA3MDM4LXJhdGluZy1lcnJvci1oZWxwZnVsLWNvbW1lbnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.146 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
