I'm getting the following notices on different pages with different versions of Drupal 7:

Notice: Trying to get property of non-object in filter_default_format() (line 532 of /modules/filter/filter.module).
Notice: Undefined variable: options in filter_process_format() (line 911 of /modules/filter/filter.module).

CommentFileSizeAuthor
#2 fixnotice-2555547-1.patch811 bytesestebanvalerio.h

Comments

estebanvalerio.h created an issue. See original summary.

estebanvalerio.h’s picture

StatusFileSize
new811 bytes

This is a patch that solve the notice on my site

cilefen’s picture

Status: Active » Needs work

According to the documentation of filter_default_format(), filter_fallback_format() should be used if a default cannot be found. Or, the calling code is wrong and should fall back onto filter_fallback_format().

cilefen’s picture

Status: Needs work » Needs review

Just to get the patch tested.

cilefen’s picture

Status: Needs review » Needs work

But it needs work according to #3.

cilefen’s picture

Status: Needs work » Needs review

I'd better wait until the testbots start.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.