in content view:

Notice: Undefined property: stdClass::$type in fancy_insert_field_attach_form()
(line 60 in file /usr/home/......./sites/all/modules/fancy_insert/fancy_insert.module).

CommentFileSizeAuthor
#1 fancy_insert-1067526.patch638 bytesdagmar

Comments

dagmar’s picture

Priority: Major » Normal
Status: Active » Needs review
StatusFileSize
new638 bytes

Hi. Tanks for reporting this. Are you using PHP 5.3?

Please try the attached patch.

dagmar’s picture

Status: Needs review » Postponed (maintainer needs more info)

Mmm, I installed PHP 5.3 and I cannot replicate. Please explain a bit better what did you do to see the warning.

Critical Tinkerer’s picture

Same problem here:

Notice: Undefined property: stdClass::$type in fancy_insert_field_attach_form() 
(line 60 of /home/.../drupal7/sites/all/modules/fancy_insert/fancy_insert.module).

In my case the error appeared simply after enabling the Fancy Insert module but I haven't actually configured anything or tried to use it.

The error only appears on static "page" or "book" content; Only when I click through to "articles" or "blog" posts.

The only common denominator is the pre-existence of the "image" field in those content types.

For what it's worth, I'm using PHP Version 5.2.14.

Critical Tinkerer’s picture

Patch at #1 eliminates the error. Thanks!

dagmar’s picture

Status: Postponed (maintainer needs more info) » Fixed

Committed 49c540d.

Thanks for the feedback @hardfocus.

Status: Fixed » Closed (fixed)

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