Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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?