*

brsdid

  • **
  • 9 posts
Code: [Select]
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "name",
"image": "https://*****/oc-content/uploads/44/9685.jpg",
"description":"Разстегателна маса, фурнир, вис. 80 см.; шир. 80 см.; дълж, 140/190 см.",
"offers": {
"@type": "Offer",
"availability": "http://schema.org/InStock",
"price": "Check with seller",
}
}
</script>

Parsing error: Missing '}' or object member name this is error that i get on google console

*

MB Themes

Are you getting it from some plugin?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

brsdid

  • **
  • 9 posts
its from seo pro

*

brsdid

  • **
  • 9 posts
This is php file code
Code: [Select]
if(osc_get_preference('schema_enable','seo_plugin') == 1) {
      $text .= '<!-- Schema Tags-->' . PHP_EOL;
  $text .= '<script type="application/ld+json">' . PHP_EOL;
      $text .= '{' . PHP_EOL;
      $text .= '"@context": "https://schema.org",' . PHP_EOL;
$text .= '"@type": "Product",' . PHP_EOL;
$text .= '"name": "' . osc_esc_html( $item_title ) . '",' . PHP_EOL;
$text .= '"image": "' . osc_esc_html( $resource_url ) . '",' . PHP_EOL;
$text .= '"description":"' . osc_esc_html( $item_desc ) . '",' . PHP_EOL;
$text .= '"offers": {' . PHP_EOL;
$text .= '"@type": "Offer",' . PHP_EOL;
$text .= '"availability": "http://schema.org/InStock",' . PHP_EOL;
$text .= '"price": "' . osc_esc_html( $price ) . '",' . PHP_EOL;
if($item_price != '' && $item_price > 0) { $text .= '"priceCurrency": "' . osc_esc_html( $currency_symbol ) . '"' . PHP_EOL; }
$text .= '}' . PHP_EOL;
$text .= '}' . PHP_EOL;
$text .= '</script>' . PHP_EOL . PHP_EOL;
 }

*

MB Themes

You should then consult with plugin author. It looks like this line is duplicated
$text .= '}' . PHP_EOL
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots