Posted by askibinski on May 18, 2009 at 10:20am
Jump to:
| Project: | User Relationships |
| Version: | 6.x-1.0-rc1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | alex.k |
| Status: | closed (fixed) |
Issue Summary
I use the provided blocks to display friends in a sidebar, next to the profile of the user.
The block is only visible when I use the theme registry rebuild function in template.php:
drupal_rebuild_theme_registry();When I disable this function, these blocks disapear. All other functionality/blocks appear just fine.
I double checked all settings but can't seem to find a problem. I'm not entirely sure this behaviour is caused by code or maybe something else?
Comments
#1
Sounds like the same problem as #458520: Relationship actions block has strange caching issue, gets "stuck", #433110: Problem with user relationship actions block.... disappears
#2
Yes, that sounds about right. Let me know if you need any more info on this one.
#3
Issue is caused when tpl.php override is used in theme folder:
http://drupal.org/node/433110#comment-1637616
#4
Thanks for troubleshooting, that helps. Have you tried this with current -dev release? I wonder if #361657: Copying user_template.tpl.php into theme folder, breaks user_relationships module. may have fixed this.
#5
Found the problem with block caching and fixed. Please try out the -dev release when it's updated. You'll need to run through update.php. Would appreciate a note if the problem is fixed for you.
#6
So it should be fixed in rc1? I still have this problem after updating from beta10.
I have a pending relationship, and it can be seen from relationships/requests, but it's not visible on users profile (uses panels) in the pending requests block. And the other user can see it in the same block on his profile as pending.
#7
Please confirm you've run through update.php. Also pls make sure that the problem goes away when you disable block cache under Site configuration->Performance. Thanks.
#8
- Ran update.php
- Cleared all caches
- All caches have been disabled all the time
Still when I log in, I can see a message that I have pending request. When I go to Dashboard (uses Panels and Pending relationships block), there are no pending relationships. The requester can see this relationship as pending, requestee can't.
I think this is the only change in code which is related to this problem from beta10 to rc1:
'pending' => array('info' => t('My Pending Relationships'), 'cache' => BLOCK_NO_CACHE)Beta10 didn't have the second attribute, but I'm sure this is obvious to you. I'm quite sure it was working on beta10, but it might have been even earlier beta when I tested this feature for the last time.
#9
Thanks for checking. Since caching was off to begin with, the problem, the bug is not with blocks. It's actually with user_relationships_load() in #479486: "/relationships" page doesn't show all users in relationship. I will close this issue again and reopen that one.
#10
Automatically closed -- issue fixed for 2 weeks with no activity.
#11
Related issue to stuck blocks is #600806: Block caching issue when using a custom template instead of user_relationships-pending_block.tpl.php