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

#   JS err when trying to vote "useful" for a comment

##

- **[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")**
- [![kenneth.er's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30865-kenneth-er "View kenneth.er's Profile") Topic Author
- [ Offline](/forum/user/30865-kenneth-er)

Less More

- Posts: 22
- Thank you received: 0
-
-

12 years 8 months ago -  12 years 8 months ago [\#143818](#143818) by [kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")  *[JS err when trying to vote "useful" for a comment](/forum/42-vote/865828-js-err-when-trying-to-vote-useful-for-a-comment#143818 "Hi there,  I am running on the most current hikashop and I get the following JS error when trying to up vote a comment. &gt; Uncaught TypeError: Cannot read property 'value' of null.  I also get the same problem with the hikashop demo site. Any idea what's going on?")* was created by *[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")*

Hi there,

I am running on the most current hikashop and I get the following JS error when trying to up vote a comment.
&gt; Uncaught TypeError: Cannot read property 'value' of null.

I also get the same problem with the hikashop demo site. Any idea what's going on?

Last edit: 12 years 8 months ago by [kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODY1ODI4LWpzLWVyci13aGVuLXRyeWluZy10by12b3RlLXVzZWZ1bC1mb3ItYS1jb21tZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 8 months ago [\#144112](#144112) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[JS err when trying to vote "useful" for a comment](/forum/42-vote/865828-js-err-when-trying-to-vote-useful-for-a-comment#144112 "Hi there,  I am running on the most current hikashop and I get the following JS error when trying to up vote a comment. &gt; Uncaught TypeError: Cannot read property 'value' of null.  I also get the same problem with the hikashop demo site. Any idea what's going on?")*

Hi,

Can you please download again the installation package on our website and install it again ?
If that still doesn't help, can you provide a link to the page with the issue ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODY1ODI4LWpzLWVyci13aGVuLXRyeWluZy10by12b3RlLXVzZWZ1bC1mb3ItYS1jb21tZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")**
- [![kenneth.er's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30865-kenneth-er "View kenneth.er's Profile") Topic Author
- [ Offline](/forum/user/30865-kenneth-er)

Less More

- Posts: 22
- Thank you received: 0
-
-

12 years 8 months ago [\#144113](#144113) by [kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")  Replied by *[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")* on topic *[JS err when trying to vote "useful" for a comment](/forum/42-vote/865828-js-err-when-trying-to-vote-useful-for-a-comment#144113 "Hi there,  I am running on the most current hikashop and I get the following JS error when trying to up vote a comment. &gt; Uncaught TypeError: Cannot read property 'value' of null.  I also get the same problem with the hikashop demo site. Any idea what's going on?")*

I can do that, but will it overrides all of my settings?

But do you also know, this problem could also be found in your demo shop.
[ demo.hikashop.com/index.php?option=com\_h...at&amp;Itemid=70&amp;lang=en](http://demo.hikashop.com/index.php?option=com_hikashop&ctrl=product&task=show&product_id=32&name=leather-seat&Itemid=70&lang=en)

I get the same JS error as my site.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODY1ODI4LWpzLWVyci13aGVuLXRyeWluZy10by12b3RlLXVzZWZ1bC1mb3ItYS1jb21tZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 8 months ago [\#144227](#144227) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[JS err when trying to vote "useful" for a comment](/forum/42-vote/865828-js-err-when-trying-to-vote-useful-for-a-comment#144227 "Hi there,  I am running on the most current hikashop and I get the following JS error when trying to up vote a comment. &gt; Uncaught TypeError: Cannot read property 'value' of null.  I also get the same problem with the hikashop demo site. Any idea what's going on?")*

It won't override your settings.

I know that there was the same error on our demo website. You wrote it in your first message.
It's already fixed on the master website of the demo website but it will only appear fixed for you on the demo website when the demo website is reset.

The following user(s) said Thank You: [kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODY1ODI4LWpzLWVyci13aGVuLXRyeWluZy10by12b3RlLXVzZWZ1bC1mb3ItYS1jb21tZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")**
- [![kenneth.er's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30865-kenneth-er "View kenneth.er's Profile") Topic Author
- [ Offline](/forum/user/30865-kenneth-er)

Less More

- Posts: 22
- Thank you received: 0
-
-

12 years 8 months ago [\#144242](#144242) by [kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")  Replied by *[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")* on topic *[JS err when trying to vote "useful" for a comment](/forum/42-vote/865828-js-err-when-trying-to-vote-useful-for-a-comment#144242 "Hi there,  I am running on the most current hikashop and I get the following JS error when trying to up vote a comment. &gt; Uncaught TypeError: Cannot read property 'value' of null.  I also get the same problem with the hikashop demo site. Any idea what's going on?")*

Thanks. I will reinstall the package later. Will let you know again, regardless of the outcome.

Well, since you didn't ack it in your prev message, I thought you might have missed it. Haha. Good to know the problem is fixed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODY1ODI4LWpzLWVyci13aGVuLXRyeWluZy10by12b3RlLXVzZWZ1bC1mb3ItYS1jb21tZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")**
- [![kenneth.er's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30865-kenneth-er "View kenneth.er's Profile") Topic Author
- [ Offline](/forum/user/30865-kenneth-er)

Less More

- Posts: 22
- Thank you received: 0
-
-

12 years 8 months ago [\#144249](#144249) by [kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")  Replied by *[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")* on topic *[JS err when trying to vote "useful" for a comment](/forum/42-vote/865828-js-err-when-trying-to-vote-useful-for-a-comment#144249 "Hi there,  I am running on the most current hikashop and I get the following JS error when trying to up vote a comment. &gt; Uncaught TypeError: Cannot read property 'value' of null.  I also get the same problem with the hikashop demo site. Any idea what's going on?")*

Hi Nicolas,

Good thing is that it works after I have reinstalled it but only when I set the option "Users must be registered to note other comments" to no. However, I only want registered user to vote, so I turned it On and I get the "You need to register to vote" prompt.
Looking at the JS, the hikashop_vote_user_id variable was declared as " ". I have noticed the same case in the demo shop as well. Please have a look at my website and see if things are in order?

P.S. I have PM-ed you my website link because it still under development, so I don't want it to be shared publicly yet. Thank you for your help!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODY1ODI4LWpzLWVyci13aGVuLXRyeWluZy10by12b3RlLXVzZWZ1bC1mb3ItYS1jb21tZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 8 months ago [\#144270](#144270) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[JS err when trying to vote "useful" for a comment](/forum/42-vote/865828-js-err-when-trying-to-vote-useful-for-a-comment#144270 "Hi there,  I am running on the most current hikashop and I get the following JS error when trying to up vote a comment. &gt; Uncaught TypeError: Cannot read property 'value' of null.  I also get the same problem with the hikashop demo site. Any idea what's going on?")*

Hi,

It's normal that you can't thumb up/down votes when not registered and that you get this prompt if you turn on the option "Users must be registered to note other comments"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODY1ODI4LWpzLWVyci13aGVuLXRyeWluZy10by12b3RlLXVzZWZ1bC1mb3ItYS1jb21tZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")**
- [![kenneth.er's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30865-kenneth-er "View kenneth.er's Profile") Topic Author
- [ Offline](/forum/user/30865-kenneth-er)

Less More

- Posts: 22
- Thank you received: 0
-
-

12 years 8 months ago [\#144271](#144271) by [kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")  Replied by *[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")* on topic *[JS err when trying to vote "useful" for a comment](/forum/42-vote/865828-js-err-when-trying-to-vote-useful-for-a-comment#144271 "Hi there,  I am running on the most current hikashop and I get the following JS error when trying to up vote a comment. &gt; Uncaught TypeError: Cannot read property 'value' of null.  I also get the same problem with the hikashop demo site. Any idea what's going on?")*

Hi,

Pardon me for not being clear enough. I logged into a different account from the one that I used to create the comment, and tried to up vote my comment. The result is still the same, I still get the prompt.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODY1ODI4LWpzLWVyci13aGVuLXRyeWluZy10by12b3RlLXVzZWZ1bC1mb3ItYS1jb21tZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 8 months ago [\#145635](#145635) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[JS err when trying to vote "useful" for a comment](/forum/42-vote/865828-js-err-when-trying-to-vote-useful-for-a-comment#145635 "Hi there,  I am running on the most current hikashop and I get the following JS error when trying to up vote a comment. &gt; Uncaught TypeError: Cannot read property 'value' of null.  I also get the same problem with the hikashop demo site. Any idea what's going on?")*

Hi,

Actually it's the way it's working, we check the current user on the username and on the IP.
So you can't up/down a vote based on the same computer.

I add in the TODO list to improve this part of the comments.

The following user(s) said Thank You: [kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODY1ODI4LWpzLWVyci13aGVuLXRyeWluZy10by12b3RlLXVzZWZ1bC1mb3ItYS1jb21tZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")**
- [![kenneth.er's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30865-kenneth-er "View kenneth.er's Profile") Topic Author
- [ Offline](/forum/user/30865-kenneth-er)

Less More

- Posts: 22
- Thank you received: 0
-
-

12 years 8 months ago [\#145642](#145642) by [kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")  Replied by *[kenneth.er](/forum/user/30865-kenneth-er "View kenneth.er's Profile")* on topic *[JS err when trying to vote "useful" for a comment](/forum/42-vote/865828-js-err-when-trying-to-vote-useful-for-a-comment#145642 "Hi there,  I am running on the most current hikashop and I get the following JS error when trying to up vote a comment. &gt; Uncaught TypeError: Cannot read property 'value' of null.  I also get the same problem with the hikashop demo site. Any idea what's going on?")*

Ahh... That make sense.. Thanks for the feedback! But I still can't get vote to works only for registered user, even when they log in from different place/comp. The returned msg is "You must be registered in order to post a vote".

Anyway, I kept the option "Users must be registered to note other comments" off, else none of my users can vote. At the very least, same user from the same comp can't double vote. :whistle:

Yeah, it will be nice to see some improvements on that and maybe get ride of the JS err msg.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODY1ODI4LWpzLWVyci13aGVuLXRyeWluZy10by12b3RlLXVzZWZ1bC1mb3ItYS1jb21tZW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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.120 seconds

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

[](#top)
