Support » Plugin: CC Child Pages » Notice: Undefined index: showtitle

  • When I had “show errors” on in PHP/WP Debug, found this notice:
    Notice: Undefined index: showtitle in
    /cc-child-pages/includes/ccchildpages_widget.php on line 195
    Using WP 5.5.1 and this plugin’s 1.3.8

    Look for a line like this:
    $instance['showtitle'] = $new_instance['showtitle'];

    and change it to this:
    $instance['showtitle'] = @$new_instance['showtitle'];

    That is, we add the @ symbol so that if there is an error, PHP keeps quiet about it. (Probably not the best fix!)

    BTW it looks to me like this works great with Elementor! I was able to find the settings when inserting the widget and it looks really great.

    Feature request: An option to also show the current page in the list, with a class of “current-page”. That way you could use this widget on any page and it would show the page’s placement in the order of the siblings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Thanks for bringing this to my attention.

    It isn’t something I have seen myself, and I do test with debugging activated … maybe my testing environment needs a few more variations set up!

    Glad to hear that the widget is working well for you in Elementor.

    I will perhaps look at expanding the scope of the show_current_page parameter in the next release so that it can be used without the siblings parameter, and reflect this in the widget options too.

    Thank you for using this plugin, and thanks for the feedback … it is always useful.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    I have been trying to recreate this issue without success … was the plugin updated from an older version? The showtitle option was an addition a few versions ago (version 1.35), so I am wondering if the problem could relate to no value having been previously stored.

    I will recode this in the next release to ensure that it handles missing/empty fields gracefully.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice: Undefined index: showtitle’ is closed to new replies.