Communication Error
| Project: | Simple Karma |
| Version: | 5.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I have been experiencing this error as well. For some reason the module seems to be looking for it's dir (simple_karma/) in drupal's root rather than in modules/ (which I thought was standard). When I symlink the simple_karma/, there is no 'handle' file or whatever. I assume this should be a socket but am unsure how to create it/have it created
Logs:
[Wed Jul 18 19:14:26 2007] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/mentalcases/secure/boards/simple_karma, referer: https://boards.mentalcases.net/
[Wed Jul 18 19:14:50 2007] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/mentalcases/secure/boards/simple_karma/handle, referer: https://boards.mentalcases.net/
module definition in database:
mysql> select * from mc_system where filename like '%karma%';
+------------------------------------------+--------------+--------+---------------------+--------+----------+-----------+----------------+--------+
| filename | name | type | description | status | throttle | bootstrap | schema_version | weight |
+------------------------------------------+--------------+--------+---------------------+--------+----------+-----------+----------------+--------+
| modules/simple_karma/simple_karma.module | simple_karma | module | Simple Karma Module | 1 | 0 | 0 | 1 | 0 |
+------------------------------------------+--------------+--------+---------------------+--------+----------+-----------+----------------+--------+
I'm using apache2 with vhosts... the jquery-update module is installed as well, and i've run update.php which said there were no updates available for any of the modules. I'm not running "universal server" or whatever. I would appreciate any help

#1
Hi,
Apologies for the late response, I was travelling (and right now I am severely jet-lagged :-D )
Which version of jquery are you using *precisely*?
The module is very picky about which version of jquery you use. There is no file called "handle" because that's a Drupal path, it has nothing to do with files available on the file system... so, you shouldn't worry about those too much!
Thanks,
Merc.
#2
haha, it's ok, noone ever uses my site anyway :P. it seems to be version 1.1.2 (according to the commented line at the top of misc/jquery.js). i tried uninstalling and reinstalling but still get the same error. prolly won't help, but here is my simple_karma table:
| Field | Type | Null | Key | Default | Extra |
+---------------+---------------+------+-----+---------+-------+
| uid | int(10) | NO | PRI | 0 | |
| oid | int(10) | NO | PRI | 0 | |
| otype | enum('n','c') | NO | PRI | c | |
| recipient_uid | int(10) | NO | MUL | 0 | |
| karma | int(2) | NO | MUL | 0 | |
| created | int(10) | NO | MUL | 0 | |
+---------------+---------------+------+-----+---------+-------+
6 rows in set (0.02 sec)
just trying to anticipate info you might ask about :) here is the relevant log output again (last time i accidentally omitted the access log):
---access log---
localhost - - [27/Jul/2007:00:32:11 -0400] "GET /simple_karma/handle?form_type=ajax&karma_vote=1&oid=156&otype=n HTTP/1.1" 404 217 "https://sos.mentalcases.net/" "Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5"
---error log---
[Fri Jul 27 00:44:02 2007] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/mentalcases/secure/boards/simple_karma/handle, referer: https://sos.mentalcases.net/
#3
Hi,
@ jake: this is really weird. Have a look at the access log: it's as if it was missing a "/" in the requested URL... is the Javascript puking?
@sinthetek: is there any chance of you testing the module with *precisely* the jquery,js script provided with the module? That one is meant to work, 10000%!
Bye,
Merc.
#4
Same error it seems :(
sinthetek@trichome ~/sitedev/mentalcases/secure/boards $ cp simple_karma/jquery.js misc/
*re-enable simple_karma module, set permission, noted the warning to copy jquery_update/jquery.js, attempt to give karma on a story node*
[Mon Jul 30 04:40:53 2007] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/mentalcases/secure/boards/simple_karma/handle, referer: https://sos.mentalcases.net/
localhost - - [30/Jul/2007:04:40:53 -0400] "GET /simple_karma/handle?form_type=ajax&karma_vote=1&oid=281&otype=n HTTP/1.1" 404 217 "https://sos.mentalcases.net/" "Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5"
#5
Hi,
Look, I am gonna state the obvious here... sorry to be a pain, but are you _absolutely_ sure the new version of jquery was being used?
Browsers are notoriously good (bad) at caching javascript code. When I do testing with firefox, the only way to get a modified version of a javascript script is to load it *directly* into the browser three times...
Can you please check and make 1000000000% sure that the error persists after loading into memory the latest version of jquery?
Merc.
#6
JQuery Update Installed correctly
The current installed version of JQuery is 1.1.2
(said i needed to upgrade when i try to use the version that came with the simple_karma module)
*re-enable the module for first time in a few days, set permissions, disable caching mode and css aggregation, attempt to give karma*
localhost - - [09/Aug/2007:00:21:36 -0400] "GET /simple_karma/handle?form_type=ajax&karma_vote=2&oid=284&otype=n HTTP/1.1" 404 217 "https://sos.mentalcases.net/" "Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
[Thu Aug 09 00:21:36 2007] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/mentalcases/secure/boards/simple_karma/handle, referer: https://sos.mentalcases.net/
*reload 3 times and repeat*
localhost - - [09/Aug/2007:00:23:36 -0400] "GET /simple_karma/handle?form_type=ajax&karma_vote=1&oid=283&otype=n HTTP/1.1" 404 217 "https://sos.mentalcases.net/" "Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
[Thu Aug 09 00:23:36 2007] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/mentalcases/secure/boards/simple_karma/handle, referer: https://sos.mentalcases.net/
i would like to state for the record that this is very likely due to some misconfiguration of my particular implementation that i haven't figured out yet. i also have a problem with per-user acidfree albums not being created for some reason... i still don't know the cause of either problem so i wouldn't sweat it too much. i probably did something really dumb during installation or recovery and i have to determine what. if/when i do figure out what it is i'll be sure to inform you of the cause in case someone else does something similar
#7
Hi,
Hang on a minute...
Can you show me your httpd.conf? Or, the relevant part where you configure your site?
I think I know what it is.
Merc.
#8
Bug closed for lack of interest. I assume there was a misconfiguration in HTTPD.