drupal_rebuild_theme_registry required for block display

askibinski - May 18, 2009 - 10:20
Project:User Relationships
Version:6.x-1.0-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:alex.k
Status:closed
Description

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?

#2

askibinski - May 19, 2009 - 08:20

Yes, that sounds about right. Let me know if you need any more info on this one.

#3

askibinski - May 28, 2009 - 10:02

Issue is caused when tpl.php override is used in theme folder:
http://drupal.org/node/433110#comment-1637616

#4

alex.k - May 28, 2009 - 10:10

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

alex.k - July 5, 2009 - 19:51
Assigned to:Anonymous» alex.k
Status:active» fixed

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

mErilainen - July 9, 2009 - 11:29
Version:6.x-1.0-beta10» 6.x-1.0-rc1
Status:fixed» active

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

alex.k - July 9, 2009 - 11:31

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

mErilainen - July 10, 2009 - 06:58

- 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

alex.k - July 10, 2009 - 08:45
Status:active» fixed

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

System Message - July 24, 2009 - 08:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.