Warning messages

Jboo - March 24, 2008 - 18:11
Project:User Relationships
Version:5.x-2.8
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

When adding a relationship on the settings page I get the following warning:

warning: Invalid argument supplied for foreach() in /home/brew/public_html/site/modules/user_relationships/plugins/user_relationship_implications/user_relationship_implications.module on line 327.

I also get this error on the activity settings page:

Fatal error: Call to undefined function: user_relationships_relationship_types_load() in /home/brew/public_html/site/modules/activity/contrib/user_relationshipsactivity/user_relationshipsactivity.module on line 31

Any help would be appreciated,
Thanks.

#1

OutCast - March 29, 2008 - 16:22

Ok Im getting the same error,

warning: Invalid argument supplied for foreach() in /home/site/public_html/site/modules/user_relationships/plugins/user_relationship_implications/user_relationship_implications.module on line 327.

#2

sprsquish - April 3, 2008 - 14:13
Status:active» fixed

fixed in 2.8

#3

Jboo - April 8, 2008 - 16:02

After updating to 2.8, once I've created a relationship and then go to edit that relationship type I have the following warnings:

* warning: Invalid argument supplied for foreach() in /home/brew/public_html/site/modules/user_relationships/plugins/user_relationship_implications/user_relationship_implications.module on line 92.
* warning: Invalid argument supplied for foreach() in /home/brew/public_html/site/modules/user_relationships/plugins/user_relationship_implications/user_relationship_implications.module on line 96.

Thanks for any more help.

#4

Walt Esquivel - April 17, 2008 - 21:59
Version:5.x-2.7» 5.x-2.8
Status:fixed» active

#2 above states "fixed in 2.8", but it doesn't state if both the warning AND the error in the original post were fixed or if only the warning in #1 was fixed. I only mention this because I'm using 2.8 and today I received the line 31 error identified in the original post.

Here's what I did for the error to occur.

I enabled the "Activity" module along with its associated:
Comment Activity
Node Activity
and
User Relationships Activity

I then clicked on my site's "Activity" settings from the Admin Menu which takes me to:
http://www.wellnesscorps.com/admin/settings/activity

The error then occured:

Fatal error: Call to undefined function user_relationships_relationship_types_load() in /home/.chagall/balance10/wellnesscorps.com/sites/all/modules/activity/contrib/user_relationshipsactivity/user_relationshipsactivity.module on line 31

Here's what I did for the error to disappear.

I un-enabled the Activity module's associated:
User Relationships Activity

I then clicked on my site's "Activity" settings from the Admin Menu which takes me to:
http://www.wellnesscorps.com/admin/settings/activity

The error no longer shows up.

Should this issue's "Project" be changed to "Activity" instead of "User Relationships"? I'm using Activity 5.x-3.0-beta which is the recommended Activity version per:
http://drupal.org/project/activity

Thanks in advance for any help,
Walt

#5

sprsquish - April 20, 2008 - 06:50
Project:User Relationships» Activity
Version:5.x-2.8» 5.x-3.0-beta

I see that this error is fixed in the HEAD (or -dev) version of Activity. They haven't pushed it to a release yet.

I do believe this should be in Activity though.

#6

Walt Esquivel - April 20, 2008 - 19:34
Project:Activity» User Relationships
Version:5.x-3.0-beta» 5.x-2.8
Component:User interface» Code

Thanks for your help sprsquish!

Yes, the the line 31 error identified in the original post as well as my post (#2 above) is fixed in Activity 5.x-3.x-dev per: http://drupal.org/node/244126

However, Jboo's post in #3 above included an additional User Relationships issue for lines 92 & 96, and I found another related issue for lines 92 & 96 here: http://drupal.org/node/242405

Therefore, I'm resetting the "Project" classification from "Activity" to "User Relationships", version 2.8.

If the issue for lines 92 & 96 has been fixed, feel free to reset as "fixed". Thanks!

#7

sprsquish - April 20, 2008 - 19:47
Status:active» fixed

Yep.. those were unrelated to Activity and duplicates of this ticket: http://drupal.org/node/232903.

#8

Anonymous (not verified) - May 4, 2008 - 19:53
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.