Hi,

I have a small problem with a custom view I am buidlinng to display forum topic. I know that custom views are not really supported. But maybe one can give me a hint:

Basicaly I am mimicing a view that AF already provides. But when I add the field for the topic icon I get the following notices:

Notice: Undefined property: stdClass::$node_comment in advanced_forum_handler_field_node_topic_icon->render() (Zeile 44 von E:\xampp\htdocs\test\sites\all\modules\advanced_forum\includes\views\advanced_forum_handler_field_node_topic_icon.inc).

Notice: Undefined index: teaser in _template_preprocess_advanced_forum_topic_list_view() (Zeile 55 von E:\xampp\htdocs\test\sites\all\modules\advanced_forum\includes\template_preprocess_advanced_forum_topic_list_view.inc).

The view does work, however. So this is not the problem. It is only the fact that the above notices are being shown aprox. 25 times whenever the page is being reloaded.

So not a big thing. MAybe someone knows a solution though. Thanks a lot in advance!

Comments

Michelle’s picture

The view style is relying on some of the fields in the view. My best guess is your view is missing the two mentioned in the error messages.

Michelle