Invalid value in field "itemtype" in Google Search Console



PHP Snippet 1:

function theme_comments( $comment, $args, $depth ) {
        $GLOBALS['comment'] = $comment; ?>
        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
                <div class="mk-single-comment" id="comment-<?php comment_ID(); ?>" <?php echo esc_attr( get_schema_markup( 'comment' ) ); ?>>
                        <div class="gravatar"><?php echo get_avatar( $comment, $size = '45', $default = '' ); ?></div>
                        <div class="comment-meta">
                                        <?php printf( '<span class="comment-author" ' . esc_attr( get_schema_markup( 'comment_author_link' ) ) . '>%s</span>', get_comment_author_link() ); ?>

                                        <?php edit_comment_link( '', '', '' ); ?>
                                        <time class="comment-time" <?php echo esc_attr( get_schema_markup( 'comment_time' ) ); ?>><?php echo get_comment_date(); ?></time>
                        </div>
                        <span class="comment-reply">
                                        <?php
                                        comment_reply_link(
                                                array_merge(
                                                        $args, array(
                                                                'depth' => $depth,
                                                                'max_depth' => $args['max_depth'],
                                                        )
                                                )
                                        );
?>
                        </span>
                        <div class="clearboth"></div>
                        <div class="comment-content" <?php echo esc_attr( get_schema_markup( 'comment_text' ) ); ?>>
                                        <?php comment_text(); ?>

<?php if ( '0' == $comment->comment_approved ) : ?>
                                        <span class="unapproved"><?php esc_html_e( 'Your comment is awaiting moderation.', 'mk_framework' ); ?></span>
<?php endif; ?>
                                <div class="clearboth"></div>
                        </div>


                           </div>
<?php
}

PHP Snippet 2:

function theme_comments( $comment, $args, $depth ) {
        $GLOBALS['comment'] = $comment; ?>
        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
                <div class="mk-single-comment" id="comment-<?php comment_ID(); ?>" <?php echo get_schema_markup( 'comment' ); ?>>
                        <div class="gravatar"><?php echo get_avatar( $comment, $size = '45', $default = '' ); ?></div>
                        <div class="comment-meta">
                                        <?php printf( '<span class="comment-author" ' . get_schema_markup( 'comment_author_link' ) . '>%s</span>', get_comment_author_link() ); ?>

                                        <?php edit_comment_link( '', '', '' ); ?>
                                        <time class="comment-time" <?php echo get_schema_markup( 'comment_time' ); ?>><?php echo get_comment_date(); ?></time>
                        </div>
                        <span class="comment-reply">
                                        <?php
                                        comment_reply_link(
                                                array_merge(
                                                        $args, array(
                                                                'depth' => $depth,
                                                                'max_depth' => $args['max_depth'],
                                                        )
                                                )
                                        );
?>
                        </span>
                        <div class="clearboth"></div>
                        <div class="comment-content" <?php echo get_schema_markup( 'comment_text' ); ?>>
                                        <?php comment_text(); ?>

<?php if ( '0' == $comment->comment_approved ) : ?>
                                        <span class="unapproved"><?php esc_html_e( 'Your comment is awaiting moderation.', 'mk_framework' ); ?></span>
<?php endif; ?>
                                <div class="clearboth"></div>
                        </div>


                           </div>
<?php
}