Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Getting the Following Errors:( Wish I could give you some more but its a basic setup, really only author_pane and user_relationship exists and this occurs when viewing another users profile when your not related to them.
Notice: Undefined index: join_date_type in author_pane_content_type_render() (line 44 of \sites\all\modules\author_pane\plugins\content_types\author_pane.inc).
Notice: Undefined variable: relationship in user_relationships_preprocess_author_pane() (line 77 of \sites\all\modules\user_relationships\user_relationships.author-pane.inc).
Notice: Trying to get property of non-object in user_relationships_type_get_name() (line 1070 of \sites\all\modules\user_relationships\user_relationships.module).
Notice: Trying to get property of non-object in user_relationships_type_get_name() (line 1070 of \sites\all\modules\user_relationships\user_relationships.module).
Notice: Trying to get property of non-object in user_relationships_type_get_name() (line 1070 of \sites\all\modules\user_relationships\user_relationships.module).
Notice: Trying to get property of non-object in user_relationships_type_get_name() (line 1070 of \sites\all\modules\user_relationships\user_relationships.module).
Comment | File | Size | Author |
---|---|---|---|
#18 | user_relationships-author_pane-1553202-18.patch | 2.1 KB | Nikro |
#13 | user_relationships-Authorpane-integration-broken-1553202-13.patch | 1.19 KB | Andre-B |
Comments
Comment #1
MGParisi CreditAttribution: MGParisi commentedThis is the only error I view the logged in profile...
Notice: Undefined index: join_date_type in author_pane_content_type_render() (line 44 of \sites\all\modules\author_pane\plugins\content_types\author_pane.inc).
Comment #2
fraweg CreditAttribution: fraweg commentedHello,
I have the same error:
Notice: Trying to get property of non-object in user_relationships_type_get_name() (line 1072 of /.../sites/all/modules/user_relationships/user_relationships.module).
@MGParisi Did you solve that issue?
Thanks for any Help.
Best regards
Frank
Comment #3
MGParisi CreditAttribution: MGParisi commentedNope, I gave up on it.
Comment #4
fraweg CreditAttribution: fraweg commentedhmm.. so you no longer use this module?
Edit: I have disable the author pane module until there is a solution...
Best regards
Frank
Comment #5
mrf CreditAttribution: mrf commentedComment #6
tjhart87 CreditAttribution: tjhart87 commentedFigured i'd post this here too in case you didn't see the other. The error occurred when updating from Alpha 4 to Alpha 5 for me. I didn't have the issue before hand.
Comment #7
Valera Tumash CreditAttribution: Valera Tumash commentedThe same as #6. After upgrading from Alpha 4 to Alpha 5 - the following errors appear:
And the name of Relatinship doesn't seem to appear on the Author Pane page.
Comment #8
giuseppecardaci CreditAttribution: giuseppecardaci commented#7
I resolved by deleting "+ user_relationships_type_translations ($ relationship)" in line 78 of user_relationships.author-pane.inc
Comment #9
Valera Tumash CreditAttribution: Valera Tumash commentedI guess there is an error in this function user_relationships_preprocess_author_pane in Author-pane integration. The variable $relationship actually can not exist because the only place where it is defined is the other side of "if/else"
Comment #10
BootstrapJohnny CreditAttribution: BootstrapJohnny commentedI see the error (alpha 5):
It appeared after deleting a Relationship Type using the UI.
I followed the following procedure and yielded the results as follow:
My best guess is that there is somewhere a user that has a reference to the deleted rfid that I can't find which is causing the problem. I can't find a way to find or discover what is referencing this.
Please help... There should be a way to delete a relationship type without leaving orphans, or at least a warning that there are existing relationships that will be broken, and instructions for how to remove these.
Comment #11
Valera Tumash CreditAttribution: Valera Tumash commentedJust has changed line 87 in user_relationships/user_relationships.author-pane.inc from
to
and the issue with incorrect display of "Add ..." has been resolved. Please make a patch for it.
Comment #12
blogook CreditAttribution: blogook commentedYup #11 works for me too
Comment #13
Andre-Bmade a patch out of #11
Comment #15
Andre-BComment #16
Andre-B#13: user_relationships-Authorpane-integration-broken-1553202-13.patch queued for re-testing.
Comment #17
Nikro CreditAttribution: Nikro commentedHi everyone,
If you pay attention more things are broken here:
Like @rel_name vs @name, etc.
I'll role out a new patch.
Comment #18
Nikro CreditAttribution: Nikro commentedI've changed it slightly, now you have to specify $rtype->rtid to load the tokens properly.
Anyway here's my patch, it worked for me, hope it works for you as well.
Comment #19
Nikro CreditAttribution: Nikro commentedAlways forget.
Comment #20
smscotten CreditAttribution: smscotten commentedThis patch correctly cause the add/remove links to appear in my Author Panes. Thank you! I doubt I count as "the community" but consider me having reviewed it.
What it did not do (and I just want to clarify that it was not supposed to) was make the relationships for a particular Author (even if they are not relationships with the current user) appear in the Author Pane. That's something I expected but which may not have been realistic. However, if that functionality is supposed to be there it isn't working for me. I'll be glad to open a separate issue for this, but I'd like to make sure that it should be a separate issue.
Thanks.
Comment #21
AnybodyI can confirm that #18 works great and should be part of a new module version because the current version is completely broken in this point (logically wrong).
Setting this RTBC.
Comment #23
heylookalive CreditAttribution: heylookalive commentedThank you andre-b & Nikro, patch committed to dev.