access denied or page not found for friendlist in error log
agrigor1 - July 17, 2009 - 08:13
| Project: | Instant messenger |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
access denied
User Anonymous
Location http://..../im/friendlist
Referrer http://..../home
Message im/friendlist
Severity warning
page not found
User testing
Location http://..../im/friendlist
Referrer http://..../home
Message im/friendlist
Severity warning
I have not installed friendlist neither user relationships module. I just want to see all on-line users.
But it seems that the module is not aware of that and still tries to generate a friendlist.

#1
There is currently no connection between IM and the Friendlist module. I just happened to use that name for the callback in IM that generates the list in the FriendPicker block.
I'm guessing that teh reason you are getting access denied errors is because of permissions settings. If you are an anonymous user you will get these errors. I will put a check in the javascript so that it does not make this ajax call if you are not logged in.
If you are an authenticated user, then permissions must be set to allow "IM Talk". I will also put an edit in the javascript to not call if you do not have perms.
#2
committed: prevent access denied errors by passing user_access results to javascript and checking before any ajax calls
/cvs/drupal-contrib/contributions/modules/im/Attic/im.js,v <-- im.js
new revision: 1.1.2.14; previous revision: 1.1.2.13
/cvs/drupal-contrib/contributions/modules/im/im.module,v <-- im.module
new revision: 1.9.2.17; previous revision: 1.9.2.16
#3
#4
I allow the blocks only for registered users. And the permissions are correct
#5
are you still getting errors after the fix described in comment #2 ?
#6
I am also getting this error continuously in my error log. How do I use the suggestion in #2, I've looked through the cvs and can't seem to find the fixed im.js and im.module ??
Thanks
#7
The easiest way would be to just download the latest version from the project page and replace your current version.
Alternately, you could replace the text inside the im.module with that in:
http://drupalcode.org/viewvc/drupal/contributions/modules/im/im.module?r...
And also replace the text in your im.js module with:
http://drupalcode.org/viewvc/drupal/contributions/modules/im/im.js?revis...
Hope this helps .