• PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function [...] 1 passed in [...]/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in [...] #2 [...]/wp-content/plugins/subpages-extended/subpages-extended-util-dropdown-pages.php(34): apply_filters('wp_dropdown_pag...', '<select name="w...') #3 [...]/wp-content/plugins/subpages-extended/subpages-extended.php(191): shailan_subpages_dropdown_pages(Array) #4 [...]/wp-includes/class-wp-widget.php(517): shailan_SubpagesWidget->form(Array) #5 [...]/wp-admin/includes/widgets.php(265): WP_Widget->form_callback(Array) #6 [...]/wp-admin/includes/widgets.php(60): wp_widget_control(Array, Array) #7 [...]/wp-admin/widgets.php(442) [...]

    In shailan_subpages_dropdown_pages() the wp_dropdown_pages filter hook is called with 1 argument only, where 3 are required.
    It should be:
    $output = apply_filters('wp_dropdown_pages', $output, $r, $pages);

    Could you please fix that? Thank you

  • The topic ‘Error in pages dropdown’ is closed to new replies.