schema deprecated Osclass Site 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="">
            <?php $i = 0; ?>
            <?php foreach($data as $page) { ?>
                <?php $i++; ?>
                <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="">
                    <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; ?>" />
            <?php } ?>

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 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="" >';
            // 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?

I cant fund any relative lines to this code to change…

I foudn this:

It is working but halfly… still get deprecated error in search console for some reason, but the google schema tester does not show it.

PS. HOW I can ad those elements to schema:

  • brand - to show as brand the website name because not all ads could have field with brand
  • sku - to show by default just 1
  • id number of the product - isbn - number of the ad in osclass ( example: site com/ad/shoes-nike_3453
  • review and aggregateRating - I have option turned on for users to make ratings on ad or by default 5 stars for example to show
  • for some reason schema google testers shows missing url
  • priceValidUntil - it can show the validity date of the ad ( ad valid until )

From all those only offers review aggregateRating .is given as error in red