This happens when a user wants to add/edit a contenttype that has a field of type entityreference.
It happens to all users except user 1.
If I give all users 'Bypass content access control' rights, the problem goes away.

Maybe it has something to do with this thread: Fix query access control on relationships http://drupal.org/node/1222324 ?
Maybe the view used in the entityreference module used in the form is not authorized. It looks that way..

This issue is also clearly related to this issue http://drupal.org/node/1359212 the only difference is I am using beta3 now. Therefore I submitted a new issue.

This is the error message.

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_data_title_field0.status' in 'where clause': SELECT DISTINCT field_data_title_field0.entity_type AS entity_type, field_data_title_field0.entity_id AS entity_id, field_data_title_field0.revision_id AS revision_id, field_data_title_field0.bundle AS bundle FROM {field_data_title_field} field_data_title_field0 WHERE (field_data_title_field0.deleted = :db_condition_placeholder_0) AND (field_data_title_field0.entity_type = :db_condition_placeholder_1) AND (field_data_title_field0.bundle IN (:db_condition_placeholder_2)) AND (field_data_title_field0.status = :db_condition_placeholder_3) ORDER BY field_data_title_field0.title_field_value ASC; Array ( [:db_condition_placeholder_0] => 0 [:db_condition_placeholder_1] => node [:db_condition_placeholder_2] => fruit [:db_condition_placeholder_3] => 1 ) in field_sql_storage_field_storage_query() (line 577 of /var/www/vhosts/kerbabel.net/subdomains/yggdrasil/modules/field/modules/field_sql_storage/field_sql_storage.module)

If you need more information please let me know OK?
Thanks
Ellis

Comments

haydeniv’s picture

Status: Active » Closed (duplicate)

Same problem as http://drupal.org/node/1359212 that wasn't fixed in beta 2 either so closing as duplicate.