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.
Goto filter/tips/RK=0/RS=PQfEszymxUq4uTd2Ip.yf4GQ8.Q- for example and we get a number of notices.
Notice: Trying to get property of non-object in _filter_tips() (line 1068 of /home/mingram/public_html/examiner/modules/filter/filter.module).
Notice: Trying to get property of non-object in _filter_tips() (line 1069 of /home/mingram/public_html/examiner/modules/filter/filter.module).
Note this does not affect d8 as filter formats are now entities and 404 nicely!
Comment | File | Size | Author |
---|---|---|---|
filter-format-notice.patch | 517 bytes | marcingy | |
Comments
Comment #1
marcingy CreditAttribution: marcingy commentedComment #2
marcingy CreditAttribution: marcingy commentedComment #3
slashrsm CreditAttribution: slashrsm commentedSimple thing and it looks good.
Comment #4
David_Rothstein CreditAttribution: David_Rothstein commentedSo why not make things 404 nicely in Drupal 7 also? Seems to me like the offending menu callback - filter_tips_long() - is the place to fix this.
Or if you really want to take the position that _filter_tips() itself should be protecting against programmer error in the calling function, then that would need to go in Drupal 8 too since the same code is there...