• I updated from version 2.3.1 to version 2.4 and with the Debug Bar plugin enabled I get the following warnings

    NOTICE: wp-content/plugins/recent-posts-with-excerpts/recent-with-excerpts-widgets.php:74 - Undefined index: thumb
    NOTICE: wp-content/plugins/recent-posts-with-excerpts/recent-with-excerpts-widgets.php:81 - Undefined index: thumb
    NOTICE: wp-content/plugins/recent-posts-with-excerpts/recent-with-excerpts-widgets.php:92 - Undefined index: thumb

    Line 74 is

    if ($excerpts > 0 && $instance['thumb'] && $instance['thumbposition'] == 'above')

    The problem occurs when there is no thumb and hence $instance['thumb'] is not set.

    The warning goes away if I replace $instance['thumb'] with isset($instance['thumb'])

    The same applies to lines 81 and 92.

    https://www.ads-software.com/extend/plugins/recent-posts-with-excerpts/

  • The topic ‘'Undefined index: thumb' in version 2.4’ is closed to new replies.