See: #1170508: Kill $predicate!
$predicate has been renamed to $relation_type so subuser.install needs a minor change to install properly. I haven't figured out if and where other changes are neccessary. I will update this if I run into further problems. For now I only got the installation working, I think this renaming might have more impacts on other places.
The error message you will get during install is:
Notice: Trying to get property of non-object in relation_type_save() (line 303 of .../htdocs/sites/all/modules/contrib/relation/relation.module).
Notice: Trying to get property of non-object in relation_type_save() (line 304 of .../htdocs/sites/all/modules/contrib/relation/relation.module).
Notice: Trying to get property of non-object in relation_type_save() (line 305 of .../htdocs/sites/all/modules/contrib/relation/relation.module).
Warning: Invalid argument supplied for foreach() in relation_type_save() (line 317 of .../htdocs/sites/all/modules/contrib/relation/relation.module).
Notice: Trying to get property of non-object in relation_type_save() (line 321 of .../htdocs/sites/all/modules/contrib/relation/relation.module).
FieldException: Attempt to create an instance of field endpoints without a bundle. in field_create_instance() (line 460 of .../htdocs/modules/field/field.crud.inc).
Patch will be enclosed in comment below so it can be namend correctly after having an issue number.
Comments
Comment #1
marcusx commentedAn here is the patch...
Comment #2
dandaman commentedThanks for the patch! In my testing, it does remove those errors, but if you go to Admin->Structure->Relation Types, it still doesn't show the relation there. So something's still not working, IMHO.
Also, for the subuser administration, the view for the subuser management no longer works because of changes in Views Bulk Operations. I'll be posting the view when I have it working in another thread.
Comment #3
Juan C commentedSubscribe
Comment #4
Nigeria commentedAny news on this. Urgently needed
Comment #5
Ingmar commentedIt works for me. You have to apply the patch to the code and reinstall the module.
Thank you marcusx
Comment #6
Nexotap commentedI dont think it works with only that change.
In the install file and in the module there is a call to:
relation_create('subuser', $endpoints); and
relation_type_create('subuser', $endpoints);
Only this isnt working anymore. You have to save it as well. Here's what I've changed:
Also the views_bulk implementation in views has changed and is not working anymore. But this i havent fixed yet.
Dont blame me, if I cant provide any patch for this, since me and patch are not swimming in the same river.
I hope, my 5 cents have still helped a bit here.
Comment #7
Nexotap commentedYou can blame me any way.
I've just looked trough the issues and found out, that those things are fixed already.
Maybe somone wants to close this issue, since it duplicates problems aready solved.
Comment #8
roderik#1 isn't already solved, and works.
And there is nothing else in the module that needs to be changed.
Comment #9
bluesky_still commentedI met this problem/
Comment #10
boombatower commentedCommitted thanks.
Since this is a dev release an it is an API change a little hard to call it a bug. Thanks for the patch. We should probably look into making this exportables instead.
Comment #11
boombatower commentedWent ahead and converted it to use exportables API.
Comment #13
Paul B commentedIt doesn't work yet:
Comment #14
akalata commentedHoping to consolidate the number of issues on install, I've marked the following as duplicates:
#1992226: Errors on installation
#1903884: Buggy code in install file
#1436248: Unable to uninstall
Comment #14.0
akalata commentedAdded the error message you get during install, so if someone searches for it the issue is easily found.
Comment #15
lauriiiCan't reproduce