After removing a definition for a type of relationship, I always got this error on the screen.

Notice : Undefined index: 2 dans user_relationships_types_load() (ligne 89 dans /sites/all/modules/user_relationships/user_relationships_api/user_relationships_api.api.inc).
Notice : Undefined index: 2 dans user_relationships_types_load() (ligne 89 dans /sites/all/modules/user_relationships/user_relationships_api/user_relationships_api.api.inc).

CommentFileSizeAuthor
#1 fix_notices.patch4.9 KBberdir

Comments

berdir’s picture

Status: Active » Needs review
StatusFileSize
new4.9 KB

Ok, found out what's the problem here.

There are remaining roles configuration for that relationship type that weren't properly deleted. This should be done in the most recent dev version, but doesn't hurt to make the function a bit more error-prone. Also updated the formatting of the comments.

The patch also fixes an unrelated bug in user_relationships_blocks.

tobma’s picture

Hey,

Can anybody tell me how to install the patch ? Because I have the same problem?

nikkubhai’s picture

@tobma: Read this to know how to apply patch : http://drupal.org/patch/apply

sw3b’s picture

Status: Needs review » Reviewed & tested by the community

Looking good ! I did the test on my side and the problem is gone !

Should be applied to DEV I think !

berdir’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reporting and testing, commited the patch!

@sw3b: Would be great if you could help test the other patches I've posted in the issue queue yesterday too!

sw3b’s picture

Is this thread or another ?!? Give me the number of ther thread and I check for you for sure ! ;o)

Is its in this thread, its looking good for the block section for now.

Just let me know !

berdir’s picture

@sw3b: Other issues, look for issues against 7.x with status "needs review"

Status: Fixed » Closed (fixed)

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