• Resolved nodokita

    (@nodokita)


    Hello, i have this error:

    [12-Nov-2022 17:47:57 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function get_day_link(), 1 passed in /home/*******/public_html/******/themes/color-newsmagazine/inc/breadcrumbs.php on line 758 and exactly 3 expected in /home/*******/public_html/wp-includes/link-template.php:619
    Stack trace:
    #0 /home/*******/public_html/*******/themes/color-newsmagazine/inc/breadcrumbs.php(758): get_day_link(‘2021’)
    #1 /home/*******/public_html/*******/themes/color-newsmagazine/inc/breadcrumbs.php(332): Color_newsmagazine_Breadcrumb_Trail->add_day_archive_items()
    #2 /home/*******/public_html/*******/themes/color-newsmagazine/inc/breadcrumbs.php(145): Color_newsmagazine_Breadcrumb_Trail->add_items()
    #3 /home/*******/public_html/*******/themes/color-newsmagazine/inc/breadcrumbs.php(39): Color_newsmagazine_Breadcrumb_Trail->__construct(Array)
    #4 /home/*******/public_html/*******/themes/color-newsmagazine/archive.php(17): color_newsmagazine_breadcrumb_trail()
    # in /home/*******/public_html/wp-includes/link-template.php on line 619

    This is the line 758 in breadcrumbs.php
    $this->items[] = sprintf( ‘%s‘, esc_url( get_day_link( get_the_time( ‘Y’ ) ) , get_the_time( ‘m’ ) , get_the_time( ‘d’ ) ) , $day );

    how can i fix this? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error’ is closed to new replies.