Using the June 24 Dev...

[code]Notice: Undefined variable: rtid in user_relationship_limits_submit() (line 259 of /sites/all/modules/user_relationship_limits/user_relationship_limits.module).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'rtid' cannot be null: UPDATE {user_relationship_limits} SET rtid=:db_update_placeholder_0, role_limit=:db_update_placeholder_1 WHERE ( (rid = :db_condition_placeholder_0) ); Array ( [:db_update_placeholder_0] => [:db_update_placeholder_1] => 1 [:db_condition_placeholder_0] => 4 ) in user_relationship_limits_submit() (line 262 of /sites/all/modules/user_relationship_limits/user_relationship_limits.module)[/code]

Comments

melandren’s picture

Whoops... so used to bbcode...

Notice: Undefined variable: rtid in user_relationship_limits_submit() (line 259 of /sites/all/modules/user_relationship_limits/user_relationship_limits.module).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'rtid' cannot be null: UPDATE {user_relationship_limits} SET rtid=:db_update_placeholder_0, role_limit=:db_update_placeholder_1 WHERE ( (rid = :db_condition_placeholder_0) ); Array ( [:db_update_placeholder_0] => [:db_update_placeholder_1] => 1 [:db_condition_placeholder_0] => 4 ) in user_relationship_limits_submit() (line 262 of /sites/all/modules/user_relationship_limits/user_relationship_limits.module)
mrf’s picture

I was able to narrow this down to a bug with one of UR's api functions. I need to do some more research to what exactly is going wrong there, but its returning the wrong values when I pull in the relationships.

Will update this thread once I know more or come up with a workaround.

mrf’s picture

Status: Active » Fixed

After a little more investigating it looks like I had no reason to use that API function anyway.

Fixed in the latest dev.

Status: Fixed » Closed (fixed)

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