happycog / VMG-Chosen-Member

VMG Chosen Member - Fieldtype for Expression Engine 2 and 3
http://vectormediagroup.com
23 stars 11 forks source link

Error, no Matrix installed #5

Closed jbloetz closed 11 years ago

jbloetz commented 11 years ago

When using this:

{exp:vmg_chosen_member:assocentries prefix="cm" field="initiative_member" member_id="{logged_in_member_id}" } {cm_entry_ids} {/exp:vmg_chosen_member:assoc_entries}

in ExpressionEngine 2.5.5, i get this:

Error Number: 1146

Table 'ee2_llb.exp_matrix_cols' doesn't exist

SELECT cf.field_id AS field_id, mc.col_id, IF(mc.col_id IS NULL, cf.field_name, mc.col_name) AS field_name FROM (exp_channel_fields AS cf) LEFT JOIN exp_matrix_cols AS mc ON mc.field_id = cf.field_id WHERE ((cf.field_type = 'vmg_chosen_member' || cf.field_type = 'matrix') AND cf.field_name = 'initiative_member')

Filename: third_party/vmg_chosen_member/mod.vmg_chosen_member.php

Line Number: 201

Without proper knowledge of your code it seems like your assoc_entries() function don't check for fieldtype like get_results() does.

lukewilkins commented 11 years ago

Thanks for catching that—it's been corrected in the latest release. Let me know if you have any other issues with it.