Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
/admin/settings/filters/add gives the following messages:
notice: Trying to get property of non-object in /path/to/drupal/modules/filter/filter.module on line 375.
(also for lines 383, 2 for 396 and 407)
Problem is an unchecked optional parameter $format:
function filter_admin_format_form(&$form_state, $format = NULL) {
$default = ($format->format == variable_get('filter_default_format', 1));
(similar references to $format on other lines)
Comment | File | Size | Author |
---|---|---|---|
#3 | filter.admin_.inc_20071031.patch | 1.72 KB | StevenPatz |
#1 | 159613.patch | 1.71 KB | HashIT |
Comments
Comment #1
HashIT CreditAttribution: HashIT commentedAttached is a pathc, wich consists of little more then isset() checks with hopefully some sane default. Probably somebody with more understanding of Drupal should have a look at this.
Comment #2
catchpatching file modules/filter/filter.module
Hunk #1 FAILED at 372.
Hunk #2 FAILED at 380.
Hunk #3 FAILED at 393.
Hunk #4 FAILED at 404.
4 out of 4 hunks FAILED -- saving rejects to file modules/filter/filter.module.rej
Comment #3
StevenPatzHere's an updated patch.
Comment #4
sunThis needs to create an empty input format object instead.