After installing the module, I wanted to create a new Terms of Use, so I went to admin/config/people/terms_of_use.
I received the following error:

PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "autocomplete" LINE 5: WHERE (base.nid IN ('autocomplete')) ^: SELECT revision.vid AS vid, base.uid AS uid, revision.title AS title, revision.log AS log, revision.status AS status, revision.comment AS comment, revision.promote AS promote, revision.sticky AS sticky, base.nid AS nid, base.type AS type, base.language AS language, base.created AS created, base.changed AS changed, base.tnid AS tnid, base.translate AS translate, revision.timestamp AS revision_timestamp, revision.uid AS revision_uid FROM {node} base INNER JOIN {node_revision} revision ON revision.vid = base.vid WHERE (base.nid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => autocomplete ) in EntityCacheControllerHelper::entityCacheLoad() (line 95 of /srv/http/d7.rovin.be/sites/all/modules/entitycache/entitycache.module).

Backtrace:
PDOStatement->execute(Array) database.inc:2135
DatabaseStatementBase->execute(Array, Array) database.inc:91
DatabaseConnection_pgsql->query('SELECT revision.vid AS vid, base.uid AS uid, revision.title AS title, revision.log AS log, revision.status AS status, revision.comment AS comment, revision.promote AS promote, revision.sticky AS sticky, base.nid AS nid, base.type AS type, base.language AS language, base.created AS created, base.changed AS changed, base.tnid AS tnid, base.translate AS translate, revision.timestamp AS revision_timestamp, revision.uid AS revision_uid
FROM
{node} base
INNER JOIN {node_revision} revision ON revision.vid = base.vid
WHERE (base.nid IN (:db_condition_placeholder_0)) ', Array, Array) select.inc:1284
SelectQuery->execute() entitycache.module:95
EntityCacheControllerHelper::entityCacheLoad(Object, Array, Array) entitycache.module:199
EntityCacheNodeController->load(Array, Array) common.inc:7493
entity_load('node', Array, Array, ) node.module:908
node_load_multiple(Array, Array, ) node.module:927
node_load('autocomplete') menu.inc:579
_menu_load_objects(Array, Array) menu.inc:746
_menu_translate(Array, Array) menu.inc:458
menu_get_item('node/autocomplete') path.inc:565
drupal_valid_path('node/autocomplete') form.inc:3692
theme_textfield(Array) theme.inc:1029
theme('textfield', Array) common.inc:5651
drupal_render(Array) common.inc:5658
drupal_render(Array) common.inc:5724
drupal_render_children(Array) system.module:3943
theme_system_settings_form(Array) theme.inc:1029
theme('system_settings_form', Array) common.inc:5651
drupal_render(Array) common.inc:5658
drupal_render(Array) common.inc:5750
render(Array) page.tpl.php:29
....

PostgreSQL 9.1, Entity Cache and i18n installed.

Probably the error is the use of #autocomplete_path => 'node/autocomplete' in the terms of use module.
I assume this should be 'terms_of_use/autocomplete' instead of node/autocomplete.

Comments

bart.hanssens’s picture

StatusFileSize
new1.35 KB

Patch attached, seems to work now, terms of use page is visible now.

bart.hanssens’s picture

Status: Active » Needs review
kars-t’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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