After an upgrade, some of my text fields are not shown anymore when editing a node. A downgrade did not solve my problem. The fields are still listed in the field list and the value is shown on display of the node, but the two fields are missing and updating a node overwrites existing values with empty strings.

Please help me as soon as possible, as it is a critical thing for me. thank you very much in advance.

Comments

karens’s picture

Status: Active » Fixed

You probably have updates to run. Check update.php.

jahwe2000’s picture

I have found the reason, why only some fields are affected. I have added autocomplete in the form_alter hook.
I have used this line for that:

$form['field_autor_melodie'][0]['#autocomplete_path'] = 'autocomplete/author_js';

That once had worked, but does not anymore. Any idea how this comes? the updates all have run through

karens’s picture

Category: bug » support
Priority: Critical » Normal

If you've form_altered the node, it's anybody's guess what is happening. You might have data from inactive fields which CCK will protect (but not display) when you save the node and your change might be interfering with that. You might be using the Content Permissions module which adds #access to fields that do not have permissions set on them, which will hide them but save their values, and your change might be interfering with that. Plus all the form elements have their own validation and submission processes and your changes could be screwing those up or causing them to be missed. And there could be other modules doing things that affect the form.

Basically you'll have to track the form values through the validation and submission processes to see when they are getting lost.

I don't have time to give you any more help than that, sorry.

jahwe2000’s picture

As far as I can tell, the data is not lost during the conversion. The fields are simply not shown and thus the values get overridden. The fields are shown again and work if I remove the autocomplete addition.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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