Parse Error more
-
On installing the plugin, I got this sitewide error:
Parse error: syntax error, unexpected T_FUNCTION in /wp-content/plugins/wp-structuring-markup/includes/wp-structuring-opening-hours.php on line 190
Since I only plan on using schema for Blog Posting, I deleted all of the code in that file and got the website to show again without the error.
I filled out the data for website on the home page. source code looks fabulous.
I filled out the data for blog posts and I don’t see data in the source code for each post. I see this code… is this correct?
<link rel="alternate" type="application/json+oembed" href="https://coloring.rocks/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fcoloring.rocks%2Fmandala-coloring%2F" /> <link rel="alternate" type="text/xml+oembed" href="https://coloring.rocks/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fcoloring.rocks%2Fmandala-coloring%2F&format=xml" /> <!-- Markup (JSON-LD) structured in schema.org START --> <script type="application/ld+json"> <br /> <b>Warning</b>: json_encode() expects exactly 1 parameter, 2 given in <b>/wp-content/plugins/wp-structuring-markup/includes/wp-structuring-display.php</b> on line <b>130</b><br /> </script> <script type="application/ld+json"> <br /> <b>Warning</b>: json_encode() expects exactly 1 parameter, 2 given in <b>/wp-content/plugins/wp-structuring-markup/includes/wp-structuring-display.php</b> on line <b>130</b><br /> </script> <!-- Markup (JSON-LD) structured in schema.org END -->
also in googles structured data checker tool, Im getting 1 error:
JSON-LD
Syntax error: value, object or array expected.Im very new to schema and structured data, so I apologize if some of these are not errors. I LOVE how easy your plugin is to use, and I would like to use it on all of my clients websites. Thanks for writing it!!!
- The topic ‘Parse Error more’ is closed to new replies.