• Hi,

    Your pluging sounds interesting but I’m not able to use it for the moment.
    Indeed, I’m getting the following error:
    GraphQLError: Syntax Error: Unexpected Name "WordPressPost_YoastJsonLd_"

    I’m using Gridsome 0.7.12 and WordPress 5.3.2

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Richard Korthuis

    (@rockfire)

    Hi @viviansolide

    Thank you for using our plugin!

    I am sorry to hear you are having trouble using it. However your error message isn’t telling us much we can work on. It appears to be a GraphQL error, which is not related to our plugin. Possibly something in the output of our plugin is causing the error, but without further information there isn’t really much we can do.

    This is because of the JSON LD Schema that gets appended to the REST API output. GraphQL should be able to handle JSON LD Schemas, but it seems to choke on something. A quick solution, which seems to work after some quick tests, is disabling the JSON LD output via a filter:

    add_filter('wp_rest_yoast_meta/filter_yoast_json_ld', '__return_false');

    • This reply was modified 4 years, 7 months ago by mensch.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘GraphQLError: Syntax Error: Unexpected Name “WordPressPost_YoastJsonLd_”’ is closed to new replies.