Karma Error: Communication (0)
palazis - November 13, 2007 - 12:36
| Project: | Simple Karma |
| Version: | 5.x-1.6 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Thanks for the great module. From its description it is obvious that it's very useful for many people.
I have installed the new version 5.x-1.6 and configured it.
The problem is that every time I vote using the up, vote down arrows, I receive the error "Karma Error: Communication (0)" in a pop up window and then nothing else happens. No vote is calculated.
Browser: Firefox version 2
Drupal: 5.3
Jquery: 1.1.2
PHP: 5.0.5
Database: Mysql 4.1.22
Web server: Apache/1.3.37 (Unix)
Thanks in advance.

#1
You say that you have jquery v1.1.2. Please note that v1.2.1 is required for this version -this is stated on the module homepage as well as in the install text. This may prove difficult depending on which 3rd party modules you have installed. If you have updated jquery with the jquery update module then that will give you v1.1.2. There is a discussion here about further updating jquery update.
You also need to make sure that you follow step 5 from the install text (insert line into your page.tpl.php). I had an undeclared error before doing that. It went away upon insertion.
I cannot update to jquery v1.2.1 at this time so unfortunately the module is not going to function correctly for me.
From what I have briefly read about the jquery issue, it has been possible to update jquery but pay careful attention to existing modules as they may be dependant on earlier versions of jquery - it is stated that a newer release is not necessarily backward compatible and you may break stuff.
If anyone has anything to add on this subject, I'd be very interested.
As the developer says - Drupal 6 is not far away (with jquery v1.2.1)
#2
Hi,
What else can I say? Thank you bobdalob, and sorry Pirandelo!
I knew it was a "risky" decision, to pick the latest JQuery (which is what will be used by Drupal 6, BTW). However, I didn't really have a choice. If you saw the code in simple_karma.js, you will realise that any previous version of JQuery just didn't cut it. And... well, I have to be honest, I actually wrote this module with Drupal 6.0 in mind. I was going to release it at the same time. However, well, since Drupal 6 is taking time (and for good reason!), I decided that all those people who could in fact use JQuery 1.2.1 (see: not many 3rd party modules), could at least benefit from it.
Pirandelo: if you confirm that updating JQuery fixes the issue, I will close the bug. Again, not without apologies...
Thank you everybody, for your patience and for your support!
Merc.
P.S.
I am still looking for a neat way to include code straight in the page without *actually* requiring people to have that call in page.tpl.php...
Merc.
#3
Thanks bobdalob and mercmobily.
Hmmm, I have read the module homepage as well as in the install text... Maybe I got myself confused, because jquery v1.1.2 and v1.2.1 are close. Only numbers 1 and 2 appear in both! Or perhaps I got confused because I use Jquery Update module which was mentioned in the install text so I thought it was OK. Anyway...
I have already followed step 5 from the install text (insert line into your page.tpl.php) so there's no problem with that.
Now about upgrading to jquery v1.2.1... I have tried to follow a fast solution and throw the new .js file to /misc folder but that doesn't work most probably. I got the very same error "Karma Error: Communication (0)" and another warning from status report about the .js file. And then I have followed bobdalob's post about upgrading, but somehow I got lost because there are many comments there. And then I thought, wait a minute.. Even if I succeed to upgrade, some of my existing modules might not work with that version, so this is a big problem...
Now practically... I am sure that Drupal 6 will be great with lots of improvements. But perhaps we need more than 6 months for a stable version and (most importantly) for versions of the very basic contrib modules to come. I believe that perhaps Simple Karma 5.x-1.6 should become something like Simple Karma 6.x-1.0 in order to avoid the confusion. Or alternatively it would be great if we can have a new JQuery Update 5.x-2.0 so that more people will be able to test Simple Karma 5.x-1.6 comfortably.
#4
Hi,
Hang on, I am getting a little bit confused here...
1) Do you have more 3rd party modules that use JQuery? (There aren't _that_ many)
2) Have you tried copying the latest JQuery (1.2.1) in "misc"? How big is the file precisely? Mine is:
[root@sys113 misc]# ls -l jquery.js
-rw-r--r-- 1 root 1080 27147 Nov 12 12:48 jquery.js
[root@sys113 misc]#
3) The module still doesn't work after all this? If so, can you give me a URL to test and see what's going on?
4) Sorry for the confusion in terms of JQuery and versioning...
Bye,
Merc.
#5
Ok let me try and be very accurate and precise.
I have downloaded the latest JQuery (1.2.1) from http://docs.jquery.com/Downloading_jQuery.
There are 3 versions there: Minified, Packed and Uncompressed. I have tried them all, and now I have the packed version on a new site.
This packed version is 26.5 KB (27147 Bytes like yours). I have renamed the file jquery-1.2.1.pack.js to jquery.js and uploaded it to /misc folder. Then I have copied
<?phpif(module_exists('simple_karma')){ print simple_karma_template_forms();}
?>
I receive a status report message "Please copy JQuery Copy jquery.js" because I have Jquery update module installed. Anyway,
you can take a look at http://aladdinweb.net/test/node
#6
Hi,
In order to see what's going on on your server, I need to log in. I tried to create an account, but never received the password (which is not in my spam filter either).
Can you please set a password for the user "merc"?
Thanks,
Merc.
#7
Hi,
Actually, I think I know what it is.
The simple_karma module doesn't work unless Drupal is installed in the domain's root.
This is silly, I know.
I am trying to get this fixed very quickly. It might take me a few days.
Sorry about this...
Merc.
#8
Hi,
I believe I fixed it.
Pirandelo, can you please double check that with this patch Drupal will actually work in a subdir?
Olease make sure you load a new version of the Javascript.
IF you still have problems (fingers crossed, touch wood), please send me "merc"'s password on the URL above!
Merc.
#9
Thanks mercmobily.
I have sent the password again. Sorry for the inconvenience.
I had the impression that anonymous users could vote too.
Because I have given them the following permissions: give karma, karma vote bonus, view individual karma scores and view users by karma. But perhaps I forgot something else! I am new in drupal anyway.
In fact drupal (5.3) is installed in the domain's root.
I simply use symbolic links (test, etc) that point to root.
But where can I find this patch? Did I miss something?
Thank you
#10
Hi,
Pirandelo, by design anonymous users cannot vote. They are redirected to the login form instead.
My Karma module will _never_ allow anonymous users to vote. Sorry...
To install the patch, please get the new version of the module (made just for you!) from here:
http://ftp.drupal.org/files/projects/simple_karma-5.x-1.6.tar.gz
:-D
Merc.
#11
Thank you.
I will install the new version and try it.
I believe that in the near future, others will try it as well, it's a promising module.
#12
Hi,
OK. Bug closed unless you tell me otherwise!
Merc.
#13
Keeping this closed but adding this footnote:
Working too, but jquery v1.2.1 will affect modules such as thickbox & jrating - I haven't tried any others that depend on jquery.
I need to disable jquery update, and replace the jquery.js with v1.2.1 however, as highlighted in the jquery update discussion (referred to in #1), other stuff can be affected. Although I disabled jquery update (otherwise you get the warning about jquery.js needing to be copied to /misc dir) some of the issues discussed in that post - about the use of more recent versions of jquery with older modules - are relevant.
So far I see the thickbox and jrating modules break. I couldn't tell you why myself but there's probably reasoning to be found and maybe even patches to overcome the problem(s). Each to their own site configuration as to whether updating jquery will be possible without affecting something else on their site.
Having had a little play around with Simple Karma I must say I am impressed. It is important to say [again] that the issues discussed here are really no reflection on this module - merc has taken the module leaps forward by utilising the latest resources available (as well as having a good vision) and I like that approach.
well done
#14
Hi,
Thanks a billion bobdalob - :-D
ALL of ther other modules will have to upgrade to the latest JQuery anyway.
Thanks again!
(Sleep deprived)
Merc.