Shows warning when enable “wp_gallery_custom_links” plugin with Themify Builder

I have resolved this issue finally by making changes directly in “/wp-content/themes/themify-ultra/themify/themify-builder/templates/template-gallery-grid.php”.

Try to find below lines.

$link_before="" != $link ? sprintf( '', esc_attr( $image->post_title ), esc_url( $link ) ) : '';
$link_before = apply_filters( 'themify_builder_image_link_before', $link_before, $image, $settings );

And replace with,

$custom_link = get_post_meta( $image->ID, '_gallery_link_url', true );
$custom_link_target = get_post_meta( $image->ID, '_gallery_link_target', true );
if($custom_link){
   $link = $custom_link;
}
$link_before="" != $link ? sprintf( '', esc_attr( $image->post_title ), esc_url( $link ), $custom_link_target ) : '';
//$link_before = apply_filters( 'themify_builder_image_link_before', $link_before, $image, $settings );

Thanks

error code: 523