Comment votes not working
I have checked that there are no javascript errors, and also viewed the request and response.
The request is fine...
As is the request url...
It even appears that the request is working as it gets a 200 response code in return, but when checking the response body instead of sending though the expected response it's sending through the page source for what looks like an empty page...
Not sure why the response is incorrect, I get exactly the same response with URL rewriting off and the .htaccess removed so it would appear that the request is being sent to the correct place.
Any ideas? I've been making quite a few mods to the site so it is likely something that I have done (or undone
:silly: ) but cannot pinpoint the cause of this.Let me know if you want to take a look at my store and I will PM you some access details so that you can take a look at the site. Store access is currently not public.
TIA
/DM
Please Log in or Create an account to join the conversation.
First of all you should make sure you have the very last version of Hikashop because we fixed few things on the comment/vote system. If you have a lot of modification done, just replace your the vote related files (in the backend class folder and the front end views).
We would also like an access to your site so we can take a look by ourselves. But if you edited a lot of things it may be ahard for us to find something.
Please Log in or Create an account to join the conversation.
I have Hikashop Business version 2.2.1 and HikaMarket Multivendor: 1.3.0
I am running Joomla! 3.1.5 Stable.
I have sent you the access details via PM.
Please let me know if you have any issues with access.
Regards
/DM
Please Log in or Create an account to join the conversation.
/DM
Please Log in or Create an account to join the conversation.
For what I know, Nicolas made a patch on the vote & comment system end of last week.
Could you just try to re-download HikaShop 2.2.1, I think it could fix your problem.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Also tested with a standard template. Same there too.
From my testing it appears that the save method is not being called, somehow the component returns before calling it.
I'm stumped.
Please Log in or Create an account to join the conversation.
I actually wonder if it's working or not. Because we had such an issue with the voting system (error message display and page reload) and the vote was actually recorder. Since I am not sure if it's supposed to be visible or not (clicking a thumb), maybe the action is actually well recorder and the issue is just about the error message.
In this case I think it's gonna be easy to fix.
Please Log in or Create an account to join the conversation.
It is definitely not working. No vote is recorded. There should be a message saying something like 3 out 5 people found this useful. This message is not displayed, even after refreshing the page. Additionally there is no activity recorded in the backend vote activity. Setting a rating (1-5 stars) and adding comments is working as expected (with the exception of the error message previously mentioned above. )
I can confirm that it is not working as if I add breakpoints within the save() or saveFrontend() methods they never get triggered. I've also eliminated potential issues related to my customisations - i.e. I have tested with a stock template and removed my customisations, the issue still exists.
To boot I just found a comment on your demo site and tested there and the issue is still present.
demo.hikashop.com/index.php?option=com_h...y_pathway=34&lang=en
Please advise.
/DM
Please Log in or Create an account to join the conversation.
Please edit the file "components/com_hikashop/controllers/vote.php" and replace the line
Sorry for the inconvenient.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Still getting the error message when posting comments but have managed to 'fix' it... :whistle: :silly:
Doesn't quite make sense but I increased the wait until the page refreshed and it now seems to be okay
Have made 30 odd comments with no error whereas before pretty much every second message would display the error message just before the page redirected.
Thanks again!
/DM
Please Log in or Create an account to join the conversation.
We will take a look. I am planning to make some kind of re-factoring of the vote & comment system.
I want to change the javascript in order to no more use Mootools.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Jerome wrote: Hi,
I want to change the javascript in order to no more use Mootools.
Regards,
Yes mootools have been a bit of a PITA for me. The template I decided to use is based on mootools but pretty much everything else uses jquery. Makes for fun coding.
Please Log in or Create an account to join the conversation.
Has this been fixed? I am having the same problem. The thumbs up or down don't work. I have updated to the latest Hikashop, but still not working.
Thanks
Please Log in or Create an account to join the conversation.
Few things have changed about the votes and comments. Could you describe precisely your problem and givue us a link to your website to analyze the requests ?
Please Log in or Create an account to join the conversation.
Her eis the link. When you click on the votes, nothing changes:
Please Log in or Create an account to join the conversation.
I just tried on your website and the vote / comment seems to be working like a charm.
Setting a vote and then filling a comment update successfully the vote average and publish the comment.
If you have cache enabled, it can potentially required a page refresh before seeing the comment in the list.
Please Log in or Create an account to join the conversation.
The review works, it is the thumbs up/thumbs down vote part that doesn't work.
Please Log in or Create an account to join the conversation.
Sorry, misunderstood.
That doesn't work because the code is broken, as you can see:
That's why it is not working as expected, that come potentially from a view override in the view "vote / listing" in Display > Views menu.
This can be caused by the Joomla editor which sometimes add "-" in the HTML attributes.
You can reset the view by clicking on the dustbin in the views list, or edit the view via FTP, the view should be in "templates/YOUR_TEMPLATE/html/com_hikashop/vote".
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.