I'm getting this when testing an image field:

Notice: Undefined property: stdClass::$field_description in vsf_wysiwyg_field_attach_presave() (line 96 of /.../sites/all/modules/visual_select_file/submodules/vsf_wysiwyg/vsf_wysiwyg.module).
Warning: Invalid argument supplied for foreach() in vsf_wysiwyg_field_attach_presave() (line 96 of /.../sites/all/modules/visual_select_file/submodules/vsf_wysiwyg/vsf_wysiwyg.module

Comments

rudiedirkx’s picture

That's weird. How did you save the entity? Normal node form? VSF can't find field_description, which should exist according to Field API.

I could build a check around it, but I want to know where field_description is.

rudiedirkx’s picture

Title: Notice: Undefined property: stdClass::$field_description in vsf_wysiwyg_field_attach_presave() AND Warning: Invalid argument supplied for foreach() in vsf_wysiwyg_field_attach_presave() » Undefined property: stdClass::$field_description AND Invalid argument supplied for foreach() in vsf_wysiwyg_field_attach_presave()
deanflory’s picture

I have a Long text and summary field called Description on the Audio, Image, and Video file types with a field formatter display of the kind Advanced text.

/admin/structure/file-types/manage/audio/fields
/admin/structure/file-types/manage/image/fields
/admin/structure/file-types/manage/video/fields

Saved entity via normal node form.

rudiedirkx’s picture

What kind of file widget does the node field have? I can't reproduce with the normal File widget. It doesn't save the references files when saving the parent node.

deanflory’s picture

Manage Fields > Widget: Text area with a summary

rudiedirkx’s picture

No I mean the file field =)

deanflory’s picture

Der.

Manage Field > Image

Using File Field Sources also

Manage Display > Slideshow

rudiedirkx’s picture

Since I can't reproduce, I won't fix and leave this open. If someone else has the same problem, or I can reproduce, or have enough information, I'll look into it more.

You can make a patch with the right solution according to you. It might not be committed, but at least it's on d.o then, for your make files/records etc.

rudiedirkx’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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