on a site with drupal6 pressfow I get these warning on every videochat node view:

Warning: array_values() [function.array-values]: The argument should be an array in opentok_highest_role() (line 409 of /var../sites/all/modules/opentok/opentok.module).

Warning: array_intersect() [function.array-intersect]: Argument #2 is not an array in opentok_highest_role() (line 408 of /var../sites/all/modules/opentok/opentok.module).

Warning: array_intersect_key() [function.array-intersect-key]: Argument #1 is not an array in opentok_user_role() (line 398 of /var../sites/all/modules/opentok/opentok.module).

Related might be the issue that role settings for the opentok field in the node don't get saved to "publisher". When I edit the node again, all roles are set to "subscriber". Default for the field is "publisher".

Comments

ju.ri’s picture

errors appear if I have more that 10 roles in the system.
with 11 or more roles, settings are not saved and reset to "subscriber" on node save.

JMTorres’s picture

More than likely the role array doesn't fit into the table column. For a quick fix, try changing the role column in the db to text. I'll try to patch this sometime this week. If someone else can submit a patch, I'll try to get it committed right away.

ju.ri’s picture

after changing the db column to "text", errors don't show any more.
thanks!

jthomasbailey’s picture

Okay to clarify for the next guy: in your database go to "content_type_[the content type with your opentok field]", edit field_opentok_roles and change the "Type" from VARCHAR to TEXT.