Autocomplete Elements is incompatible with content profile Module, when trying to save the contect profile of a user it gives error:
"This user already has a content profile of this type. You can only create one profile per user."
Hence preventing the user from saving the content profile. However, this would be only in case of UID-> 1 or users with permission with administer content. or who basically can see the "Authoring information" Fieldset in the node edit form.
The culprit is the following code from autocomplete_element.module at line 207. It's calling for a default element. which repopulated or changes the value in the Authored by: textfield.
Just uncomment the 207 line and it should work fine.
So i am wondering is we should prepopulate the field value or not ?
drupal_add_js($inline_js, 'inline');
$element['#type'] = 'textfield';
$element['#default_value'] = $element['#default_value']['autocomplete'];
$element['#attributes'] = array(
'class' => 'autocomplete form-autocomplete autocomplete-processed',
'autocomplete' => 'off'
);
return $element;
}
Comments
Comment #1
anaperes commentedI have exactly this problem with my website. But i don't have 'autocomplete elements' module. The only one must similar to this is 'Content Taxonomy Autocomplete'.
Can be this incompatible and thats why I error?
grats,
Ana