PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ga.group_audience_gid' in 'where clause': SELECT DISTINCT base.tid AS tid, base.vid AS vid, base.name AS name, base.description AS description, base.format AS format, base.weight AS weight, v.machine_name AS vocabulary_machine_name FROM {taxonomy_term_data} base INNER JOIN {taxonomy_vocabulary} v ON base.vid = v.vid LEFT OUTER JOIN {og_membership} ga ON ga.etid = base.tid AND ga.entity_type = :entity_type AND ga.field_name = :field_name LEFT OUTER JOIN {forum_access} fa ON fa.tid = base.tid LEFT OUTER JOIN {acl} acl ON acl.number = base.tid AND acl.module = 'forum_access' LEFT OUTER JOIN {acl_user} aclu ON aclu.acl_id = acl.acl_id AND aclu.uid = 28 WHERE (base.tid IN (:db_condition_placeholder_0)) AND( (ga.group_audience_gid IS NULL ) OR (ga.group_audience_gid IN (:db_condition_placeholder_1)) )AND( (fa.rid IS NULL ) OR( (fa.rid IN (:db_condition_placeholder_2, :db_condition_placeholder_3, :db_condition_placeholder_4)) AND (fa.grant_view >= :db_condition_placeholder_5) )OR (aclu.uid = :db_condition_placeholder_6) ); Array ( [:db_condition_placeholder_0] => 0 [:db_condition_placeholder_1] => node [:db_condition_placeholder_2] => 2 [:db_condition_placeholder_3] => 7 [:db_condition_placeholder_4] => 8 [:db_condition_placeholder_5] => 1 [:db_condition_placeholder_6] => 28 [:entity_type] => taxonomy_term [:field_name] => og_group_access ) in DrupalDefaultEntityController->load() (line 196 of /srv/www/ania.org/public_html/includes/entity.inc).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tclnj’s picture

In og_forum_query_term_access_alter, .group_audience_gid should just be .gid for 2.0.

tommyvyo’s picture

Patch attached.

epieddy’s picture

Status: Active » Needs review

Patch applied in 7.x-2.x-dev version.

Thx.

commonpike’s picture

> Patch applied in 7.x-2.x-dev version.

.. still didnt reach alpha-1 ...

turion’s picture

Works for me.

DamienMcKenna’s picture

Version: 7.x-2.0-alpha1 » 7.x-2.x-dev
Issue summary: View changes
vegantriathlete’s picture

Status: Needs review » Fixed

This patch is already applied to -dev and it does fix the PDO exception.

Status: Fixed » Closed (fixed)

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