Viewing 15 replies - 1 through 15 (of 33 total)
  • Got the same error for my search field.

    Please fix it or maybe a disable button for that function would be nice! 🙂

    Same here, just updated Yoast SEO to 2.2.1 this AM.
    Please advise.

    Just updated to 2.2.1. Same error in structured data testing tool.

    I have the same error. I tried to disable the plugin and add the JSON-LD markups manually. I tested it and it worked fine but I do not really want to disable WORDPRESS YOAST SEO. So I am looking for a way to it.

    Same error here, updated yesterday to 2.2.1 and I’m getting the error.
    Please kindly fix

    Same error on different sites with the same plugin, wondering if it will be fixed

    Getting the same error using Google structured data tool. Checked with the same tool on a manually created, properly implemented site search and am getting the same error. That leads me to believe the error might be in the data tool itself as a bug?

    Apparently this has something to do with Google’s Site Link Search Box. I have installed the code below every page and post but still get the two Structured Data error messages.

    I tried adding the SiteLinks Search Box Plugin https://wordpress.org/plugins/sitelinks-search-box/
    which now gives me 4 errors. Apparently this plugin was added to Yoast’s WP-SEO for the last update so it is redundant, and doubling the error messages.

    Here is Google’s page with the instructions for the SiteLink Search BoxBox.https://developers.google.com/structured-data/slsb-overview?. I added the SLSB and it works fine but I still get the 2 error messages.

    I am wondering if I have to add all my keywords in as the search_term_string?

    From Google:
    1. Using the search URL pattern in the target property, replace the curly braces and all that’s inside of it with a search query.
    2. Copy and paste this into a browser to verify that it leads to a valid search results page on your site. For instance, if your target property is http://www.example-petstore.com/search?q={searchTerm}, then http://www.example-petstore.com/search?q=collars and http://www.example-petstore.com/search?q=leashes should both lead to search result pages on your site about “collars” and “leashes.”
    3. The value for the name attribute of the query-input property should match the string that’s inside the curly braces in the target property.

    Several sites have said to wait until Google recognizes the SiteLink Search Box on your site. Maybe this will clear up in a few days.

    @jsearles: I think you have to replace schema.org/True by schema.org to get rid of the error

    http://stackoverflow.com/questions/30780247/sitelinks-search-box-json-ld-giving-error-on-google-structured-data-testing-tool

    Tell me if works. The thing is, I’d like to fix Yoast SEO, I’m not sure I want to get rid of this plugin.

    @krazygal: I tried adding the code from your link to my header but still get the same two error messages. I think part of the problem is the coding for the json-ld.php file on this Yoast plugin.

    http:schema.org/true – Google’s error message says: The property is not recognized by Google for an object of type PropertyValueSpecification.

    <script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "WebSite",
      "url": "https://www.saatler.com/",
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://www.saatler.com/arama?ara={search_term_string}",
        "query-input":"required name=search_term_string"
      }
    }
    </script>

    @jsearles is the JSON-ld.php of the plugin is accessible from my site or is it hosted on their site? Do you know where it is? I would like to try to modify it and find out if I can fix it.

    @krazygal: the file is in the frontend folder of the wordpress-seo plugin and called class-json-ld.php.

    I believe the problem area is between lines 217-242 of the code.

    Here is the script version that works fine. Yoast’s should be similar in order to not get the error messages:

    <script type="application/ld+json">
    {
       "@context": "http://schema.org/true",
       "@type": "WebSite",
       "url": "http://www.sitename.com/",
       "potentialAction": {
         "@type": "SearchAction",
         "target": "http://query.sitename.com/search?q={search_term_string}",
         "query-input": "required name=search_term_string"
       }
    }
    </script>

    Good luck – please let me know what the fix is. Thanks.

    OK – I tried to comment out lines 217 through 242 and that shut down my site. So I reinstalled WordPress-SEO to put the class-json-ld.php back to it’s original status.

    Then I added this code to my functions.php in my child theme

    add_filter( 'wpseo_json_ld_output', '__return_false' );

    Success! No errors messages now.

    I tried it. I got no error message either. Thanks for the tip. I am going to add the site links search box manually on wordpress and see it works now.

    The problem with this code is that it totally disables all the json markups I add manually and I tried the site links search box plugin but it triggered the same error as YOAST SEO.

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘Structered data – WebSite error’ is closed to new replies.