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
Comment #1
ju.ri commentederrors 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.
Comment #2
JMTorres commentedMore 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.
Comment #3
ju.ri commentedafter changing the db column to "text", errors don't show any more.
thanks!
Comment #4
jthomasbailey commentedOkay 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.