Closed (fixed)
Project:
User Relationships
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Jan 2009 at 14:31 UTC
Updated:
26 Sep 2012 at 15:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
alex.k commentedPlease elaborate more on your setup: what relationship types you have, what other modules you're using, which permissions from user_relationships modules are granted. A screenshot would be nice as well. Have you tried different browsers as well?
Comment #2
feconroses commentedwhat relationship types you have: only 1 (friends).
what other modules you're using:
- User relationship: UR-API,UR-Blocks, UR-Mailer, UR-Node Access, UR-UI, UR-Views.
- Others related to UR: Views
which permissions from user_relationships modules are granted:
- Administer: administer user relationships
maintain own relationships
view user relationships
- Autenticated users: maintain own relationships
view user relationships
- Anonymous user: none
A screenshot would be nice as well: attached.
Have you tried different browsers as well: yes, chrome and firefox.
BTW: this is the url of my site: www.hiwz.org. If you need more info please tell me :)
Thanks!
Comment #3
alex.k commentedHmm, I don't see "can have relationships" permission in your list. But the module should not show "Become x's friend" links in that case. Please check that it's enabled for the role anyway. Are there any errors in Firefox's console when you load the page or click the link?
Comment #4
feconroses commentedI forgot to say that, when i copy the url link in another window or tab, the page loads fine. Its the link that doesnt work.
Thanks again!
Comment #5
alex.k commentedSounds like either the javascript file user_relationships_ui.js is missing, or there is a browser error. Run through update.php and clear cache in Admin->Site Configuration->performance just in case.
Comment #6
feconroses commentedThe "can have relationships" is enabled for both Autenticated users and Admins.
Are there any errors in Firefox's console when you load the page or click the link: no, everything seems ok when i load the page. When i click the link nothing happens. Maybe its an ajax error?
Just checked and the user_relationships_ui.js file does exists (its in the folder /modules/user_relationships/user_relationships_ui).
Also, my version of UR is up to date (User Relationships 6.x-1.0-beta9).
:S
Thanks again alex!
Comment #7
alex.k commentedA wild guess, but can you disable captchas on your site and retry, especially as you have not yet configured recaptcha keys...
Comment #8
feconroses commentedI disabled all the captchas and it still doesnt work :(
Comment #9
feconroses commentedupdate:
Its a theme problem. I use Acquia Marina but i have tried with another random theme and the link actually works. Any idea how to fix this problem?
Thanks for the help!
Comment #10
alex.k commentedI'm not a themer, but I"d check what the differences are in the link and surrounding html between two themes... what other classes get applied with their own javascript behaviors. Failing that, you might want to raise it with acquia_marina folks.
Comment #11
Craftsman commentedI have the same problem. Ajax popup works fine only for administrator, regular registered user gets empty popup with ajax loading status bar though they have “can have relationships” is enabled.
Comment #12
alex.k commentedI'm going to move it to the Acquia Marina project. Perhaps theme's maintainers will know more. It does work in Garland - tried using the Russian language as well as a non-admin user, and it worked regardless.
Comment #13
Craftsman commentedI switched to Garland and unfortunately I have the same problem.
Comment #14
alex.k commentedCould you check what errors you get with Firebug. When you click on the request link, check what is being loaded via ajax, whether it's an error message of any kind. Also, check that users have the "maintain own relationships" permission.
Comment #15
Craftsman commentedIt works after I checked maintain own relationships!
Without that privilege in XHR log in firebug I receive line like that (when I click on “Became fiend ” link)
Is it necessary for regular users to have both permissions - ‘maintain own relationships’ and ‘can have relationships’?
Comment #16
alex.k commentedGlad it works now :) Yes the permission is necessary. I think the intent was to support a situation where some users should not be able to create their own relationships, only accept ones given to them.
Marking as fixed; to original poster, if the above steps do not work for you, pls reopen. Thanks.
Comment #18
vishalchavda commentedThis bug is still present, but its to do with the theme. I am using the waffels theme and I get the problem. Its not happening with garland
Comment #19
alex.k commentedPlease open a new issue with maintainers of the theme. Thank you.
Comment #20
SeanBannister commentedI'm also experiencing this problem:
- I've set the permission "maintain own relationships" for the users.
- But I'm also using the Acquia Marina theme.
When I click on the "Become *'s Friend" an AJAX call is made and the browser receives the data correctly (according to firebug). But the popup window isn't displayed. So this is either a javascript conflict or possibly CSS.
Because this is showing up in at least 2 themes I'm marking this as active. I believe this is probably an issue in multiple themes and hoping a fix can be found in the module.
Comment #21
alex.k commentedComment #22
Jon_Ashdown commentedHi all, this is also a problem with multiplex theme.
Also on approve and disapprove links.
It looks like a GET request is being sent to the server, and a 200 OK response and the elaboration/confirmation form is being recieved by the browser but not handled. Could this be down to a missing ajax module ?
Comment #23
Jon_Ashdown commentedsimple workaround : rename user_relationships_ui.js to user_relationships_ui.js.zzz this disables the ajax queries and causes the links to behave in a sensible way
Comment #24
alex.k commentedComment #25
Michsk commentedi had the same problem. Fixed it with adding
print $closure;in the bottom of page.tpl.php just above /body
Comment #26
SeanBannister commentedI also discovered a theme I was working on was missing $closure. It was developed by a none themer and took me a while to diagnose but it was causing all sorts of problems due to the fact that a lot of javascript is loaded in $closure.
Comment #27
alex.k commentedThanks for troubleshooting. If missing $closure isn't an issue with the other contrib themes reported above, please reopen and let me know which theme it is. I've also added an admin setting that allows turning AJAX popups off. It's at /admin/user/relationships/settings under 'AJAX Popup Positioning'. http://drupal.org/cvs?commit=262462
Comment #29
oduvanchik commentedit doesn't work for me too...
use garland, chameleon themes, any browsers,
maintain own relationships is checked
when I press "Add X as a friend" it works fine, but when I try to approve or disapprove the request - garland shows just main home page in popup and chameleon shows the page with pending requests. so basically I can't approve any request..
Comment #30
oduvanchik commentedI fixed it by installing ajax module for forms. Now it works perfect
Comment #31
RealGecko commentedUsing version 1.3 of UR with Drupal 6.26, issue is present. If I click "become friend" link nothing happens. If I open link in new tab or window I see confirmation dialog. Installation is clean, no extra modules enabled, installation of AJAX for forms does not help. Any ideas?
PS: more info in attachment.
Comment #32
RealGecko commentedInstalled latest development version: 1.3 +2-dev, worsk fine:)