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.
Got this error/notice on my topics listing page:
Notice: Undefined index: teaser in _template_preprocess_advanced_forum_topic_list_view() (line 55 of ... .../advanced_forum/includes/template_preprocess_advanced_forum_topic_list_view.inc).
I dumped the $renders var in _template_preprocess_advanced_forum_topic_list_view(), and found that indeed there is no teaser or related element.
A quick fix will be to do an isset() check, and ignore teaser if it isn't set. From the comments in the code, it seems this is for a 'popup preview', which doesn't sound absolutely necessary, so I assume it's OK to just ignore it.
Will attach a patch shortly.
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#1 | advanced_forum-undefined_index_teaser_in_topics_list_view-1689236-1.patch | 1.32 KB | victoriachan |
Comments
Comment #1
victoriachan CreditAttribution: victoriachan commentedPatch attached
Comment #2
troky CreditAttribution: troky commentedCommitted. Thanks for the patch.
Comment #4
wxman CreditAttribution: wxman commentedIs this going to get added to the Recommended releases soon?