Hello,
First of all thanks A LOT for this module, and to czigor for adding the text or noderef functionnality in drupal 7!
My question is, where did I do something wrong in configuring my field, because I have only one value displayed on the full content page for my node, even if I have multiple values in the fields (that I can see when editing the node).

Content type :
field: text
widget: Autocomplete for existing field data and some node titles
number of value: unlimitted
Display: autocomplete widget node reference
Drupal 7.12

I hope it is just a stupid thing I forgot to set somewhere. Or did anyone meet the same issue ?
Thanks ++
Liaz.

Comments

Liaz’s picture

Category: support » bug

In the same node, I tried with just multiple values for just texts, no noderef, and I get this error

    Notice: Undefined index: allowed_node_types in autocomplete_widgets_field_formatter_view() (line 249 of /var/www/drupals/xxx/sites/default/modules/autocomplete_widgets/autocomplete_widgets.module).
    Warning: Invalid argument supplied for foreach() in DatabaseCondition->compile() (line 1854 of /var/www/drupals/xxx/includes/database/query.inc).
    PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1: SELECT node.nid AS entity_id, node.vid AS revision_id, node.type AS bundle, :entity_type AS entity_type FROM {node} node WHERE (node.title = :db_condition_placeholder_0) AND (node.status = :db_condition_placeholder_1) AND (type IN ()) ; Array ( [:db_condition_placeholder_0] => toto [:db_condition_placeholder_1] => 1 [:entity_type] => node ) in EntityFieldQuery->execute() (line 1136 of /var/www/drupals/theastrejuly/includes/entity.inc).

bleen’s picture

please see #1430418: Autocomplete returns incomplete results ... I think the patch there, which has already been committed solves your issue.

I also have a vague recollection of the error you posted in #2 but I dont have time to check from where I'm remembering it.... but if Im remebering it correctly than it probably means a fix for it has been committed as well....

can you try 7x-1-0-dev and report back.