jonnsl / sliComments

Comments component for Joomla! 1.6
GNU General Public License v3.0
16 stars 5 forks source link

for registered users, rating is not working #23

Closed ncldnl closed 12 years ago

ncldnl commented 12 years ago

Hi Jonnathan, for registered users, rating is not working, no matter how i play with the settings (it is enabled, of course, in options) Any hints? Joomla 2.5.1

Secondly, where can i upload a language file which i translate it (romanian)?

cheers!

qEssence commented 12 years ago

I cannot replicate this, I know you have activated the option on the backend ( Rating = yes) But, have you set up the permissions for registered users? Backend -> Components -> sliComments -> Options -> Permisions

Cheers.

ncldnl commented 12 years ago

:( yep, i checked permissions; actually i left them untouched, as per default.

ncldnl commented 12 years ago

even with admin in the front end it says "invalid vote"

jonnsl commented 12 years ago

That's weird. an invalid vote is a vote different than -1(dislike) or 1(like); are you using some 3rd party extension for sef urls? Could you send me the vote link? it should be something like this [...]/index.php/component/slicomments/?task=comments.vote&v=1&id=1&3f2874bc26ff14bbda386280ce5c0653=1

ncldnl commented 12 years ago

http://miereromaneasca.ro/index.php/component/slicomments/?task=comments.vote&v=-1&id=17&503895835b4ea01bef68471aeec8b308=1

qEssence commented 12 years ago

I can verify this, so weird. :/

Edit: Tested on J2.5.1 No problems so far.

Try disabling the kunena integration. Just to try.

ncldnl commented 12 years ago

i disabled kunena integration from sliComments (link names & avatar fields) and i disabled kunena from "extension manager"

still, same error

ncldnl commented 12 years ago

Also changed to English, as default language for the site, no solution

jonnsl commented 12 years ago

wich joomla version are you using? which php version the server is running? are you using any other extensions other than kunena and slicomments? can you confirm that the error returned is "invalid vote" by changing the language to english?

ncldnl commented 12 years ago

Joomla 2.5.1 PHP 5.2.17 Extensions: Akeeba/JCE/Kunena/tabulizer i confirm error is the same, after changing site language to English.

ncldnl commented 12 years ago

i took a fresh local intallation, installed 2.5.0 Joomla, no extension but sliComments and still get the same error! so weird!

PHP Built On Darwin MACDN-6.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64 Database Version 5.1.44 Database Collation utf8_general_ci PHP Version 5.3.2 Web Server Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 WebServer to PHP Interface apache2handler Joomla! Version Joomla! 2.5.0 Stable [ Ember ] 24-Jan-2012 14:00 GMT Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.53.11 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10

ncldnl commented 12 years ago

uffffff, i tried with a fresh local installation of joomla 1.7.3, still same error what possibly can be wrong? do you have live site using this extension?

PHP Built On Darwin MACDN-6.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64 Database Version 5.1.44 Database Collation utf8_general_ci PHP Version 5.3.2 Web Server Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 WebServer to PHP Interface apache2handler Joomla! Version Joomla! 1.7.3 Stable [ Ember ] 14-Nov-2011 14:00 GMT Joomla! Platform Version Joomla Platform 11.2.0 Stable+Modified [ Omar ] 27-Jul-2011 00:00 GMT User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.53.11 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10

qEssence commented 12 years ago

Hi @ncldnl , please, create a phpinfo.php file in your server, it must contain the following string:

<?php phpinfo(); ?>

While it doesn't include version information about your database scheme, it does include version information about PHP, Apache/IIS, GD, and other things. It also contains a description of many important settings, which could possibly be causing problems with your installation.

Save , and upload it to your server, somewhere we can access to. I think this way @jonnsl will be able to ensure your settings are ok :)

jonnsl commented 12 years ago

actually, there is no need to create the phpinfo file.

qEssence commented 12 years ago

i'm sorry, just tryng to help.

skunker commented 12 years ago

This is actually the &v=1 in the URL which is causing the problem "invalid vote", if we replace that with &amp;v=1 the problem is gone, I can't exactly identify whats causing this yet, but this solves the problem. ;)

skunker commented 12 years ago

&amp;

iseo commented 12 years ago

Has this problem been solved yet?

I have tried changing - 'index.php?option=com_slicomments&task=comments.vote&v=1' to index.php?option=com_slicomments&task=comments.vote&amp;v=1 on lines 24 & 24 of default_comments.php.

But Its still appearing in the browser as 'index.php?option=com_slicomments&task=comments.vote&v=1'

Sorry I have worked it out - you need to put in & amp;amp; without the space. so the link now appears on the live site as

jonnsl commented 12 years ago

Sorry about that, but I can reproduce this error no matter how hard I try. and change & to &amp; should not have any effect.

kasleyy commented 12 years ago

hi I tried slicomments with joomla 2.5.4, but the vote does not work with anyone error (invalid vote) i get this error with debug firefox

"NetworkError: 500 Internal Server Error - http://www.mysite.com/component/slicomments/?task=comments.vote&v=-1&id=1&0660626a164ce66661dad2c1a42d0637=1&format=raw"

how can I fix this? thanks all

kasleyy commented 12 years ago

you can help someone solved the problem in the php.ini file server set ( open_basedir = Off )

rodvold commented 12 years ago

Just installed latest release 1.3.2 and still experiencing the invalid vote - anyone find a work around without messing with open_base dir

rodvold commented 12 years ago

setting open_basedir off doesn't fix the problem with j2.5 and 1.3.2

jonnsl commented 12 years ago

This issue is caused by a workaround used by joomla when "magic_quotes_gpc" is set to "on". I will report this bug to the joomla developers, and release a fix for slicomments. The best solution would be turn off magic_quotes.