I have a textarea with wysiwyg and an image field with the wysiwyg_fields for that and that alone doesn't break anything, but when I add just a normal plain text one line text field for the same node type, I get this error every time I submit the form:
Notice: Undefined index: format in _wysiwyg_fields_textfields() (line 299 of .../wysiwyg_fields/includes/field_ui.inc).

Error occurs when I enter a value for that other plain one line text field.

Comments

chester_martin’s picture

I haven't yet figured out exactly what this function does, but it seems that it is trying to populate 'format' even in textfields that don't use 'format'. ie plaintext-fields. Can the solution be to check if current field uses 'format'? Maybe there's a better solution but I will try to submit a patch.

chester_martin’s picture

Status: Active » Needs work
StatusFileSize
new1.12 KB

here's a simple patch. There's a comment in the code saying "// @TODO - Use field_info_instances() for more efficiency." so this is probably just a quick solution. It helped me anyway.

deciphered’s picture

It's actually a left over from the D6 version to clear the field cache. It may or may not be needed in the future, so for the moment I will comment the line out until that can be determined. I can confirm that it isn't in use at all at the moment.

deciphered’s picture

Status: Needs work » Fixed

The infringing line has been commented out for the moment and committed to 7.x-1.x, will re-visit it at a later stage.

chester_martin’s picture

Thats great! Thanks!

Status: Fixed » Closed (fixed)

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