Data-vocabulary.org schema deprecated Osclass Site

data-vocabulary.org schema deprecated”
I received email from GOOGLE WEBMASTER account warns about above given things.
What is it? Did someone also received such things?
What to do?

oc-includes/osclass/classes/Breadcrumb.php, breadcrumb HTML must be edited to comply with new Schema markup.

From my theme:

<nav class="bread bg-darker">
    <div class="container">
        <ol class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">
            <?php $i = 0; ?>
            <?php foreach($data as $page) { ?>
                <?php $i++; ?>
                <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
                    <a itemprop="item" href="<?php echo (array_key_exists('url', $page)) ? $page['url'] : '#'; ?>"><span itemprop="name"><?php echo $page['title']; ?></span></a>
                    <meta itemprop="position" content="<?php echo $i; ?>" />
                </li>
            <?php } ?>
        </ol>
    </div>
</nav>

Delete the text in the file and add this code ??

Help, I don’t understand

Do the changes as here:

This is the error message am getting

This isn’t related to data-vocabulary.org at all.
This is some ‘bad’ plugin for schema tags/seo plugin you have.

1 Like

How can I detect and fix it?

Which SEO plugin od you use?

Did you just replace this code?

        $node = array();
        for ( $i = 0 , $iMax = count( $this->aLevel ); $i < $iMax; $i ++ ) {
            $text = '<li ';
            // set a class style for first and last <li>
            if( $i == 0 ) {
                $text .= 'class="first-child" ';
            }
            if( ($i == (count($this->aLevel) - 1)) && ($i != 0) ) {
                $text .= 'class="last-child" ';
            }
            $text .='itemscope itemtype="http://data-vocabulary.org/Breadcrumb" >';
            // set separator
            if( $i > 0 ) {
                $text .= ' ' . $separator . ' ';
            }
            // create span tag
            $title = '<span itemprop="title">' . $this->aLevel[$i]['title'] . '</span>';
            if( array_key_exists('url', $this->aLevel[$i]) ) {
                $title = '<a href="' . osc_esc_html($this->aLevel[$i]['url']) . '" itemprop="url">' . $title . '</a>';
            }
            $node[] = $text . $title . '</li>' . PHP_EOL;
        }

How do I define “offers”, “review” or “aggregateRating”?

Once again, this has NOTHING to do with breadcrumbs.

It’s a SEO plugin you use.

I could not manage to correct this problem Can someone share me corrected oc-includes/osclass/classes/Breadcrumb.php file?