Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1332615

    Hi there,

    after the update to 4.8.8, on some pages, we get the error “Call to undefined function avia_breadcrumbs”.
    We call this function within the functions.php in our child theme

    // Breadcrumbs
    function av_breadcrumbs_shortcode( $atts ) {
    return avia_breadcrumbs(array('separator' => '/', 'richsnippet' => true));
    }
    add_shortcode( 'av_breadcrumbs', 'av_breadcrumbs_shortcode' );

    We now reverted that back so that the page is not broken.
    Is this a problem with our project or is it an update problem?

    #1332620

    Hi,

    Thanks for contacting us!

    Please use following code instead

    
    function av_breadcrumbs_shortcode( $atts ) {
    	return Avia_Breadcrumb_Trail()->get_trail( array( 'separator' => '/', 'richsnippet' => true ) );
    }
    add_shortcode( 'av_breadcrumbs', 'av_breadcrumbs_shortcode' );

    Best regards,
    Yigit

    #1332629

    Hi Yigit,

    thanks for the fast reaction! that did it.

    #1332631

    Hi,

    You are welcome, Emil! Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘update 4.8.8: Critical error – Call to undefined function avia_breadcrumbs’ is closed to new replies.