Breadcrumbs
-
Hi Sybre,
first, thanks for the great plugin and the great support that you give for it.
Yesterday I came along a strange behaviour of our website and I would like to ask you if that is a problem with a feature of the SEO Framework plugin or if it is something else.
What happened?
I activated the breadcrumb feature in the SEO Framework plugin, which seemed to work well at first sight. I didn’t check every post or page to see if everything worked fine, so I was surprised to see, that some of the other plugins didn’t work the way they were supposed to be yesterday. We use the Related Posts Pro plugin for example, which displays 15 related posts below every post. Five posts are displayed at a time and after some 20 seconds, another 5 related posts will be shown and so on. The related posts are shown in one horizontal line usually (on our website). But yesterday, all 15 related posts were shown one below the other, so the height of the post was quite large.When searching for the source/reason of that behaviour, we came along an error message in the browser console, that stated:
SyntaxError: unexpected token: ':'
Looking up the source code, it was this part, that throw the error:
{"@context":"<a href="https://schema.org"" rel="nofollow">https://schema.org"</a>;,"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"<a href="https://www.microtool.de/"" rel="nofollow">https://www.microtool.de/"</a>;,"name":"Erfolgreich. Mit Software von microTOOL!","image":"<a href="https://www.microtool.de/wp-content/uploads/2016/05/Erfolgreich-Mit-Software-von-microTOOL.png"" rel="nofollow">https://www.microtool.de/wp-content/uploads/2016/05/Erfolgreich-Mit-Software-von-microTOOL.png"</a>;}},{"@type":"ListItem","position":2,"item":{"@id":"<a href="https://www.microtool.de/requirements/"" rel="nofollow">https://www.microtool.de/requirements/"</a>;,"name":"Requirements Engineering"}},{"@type":"ListItem","position":3,"item":{"name":"Spurensuche in der Vergangenheit – microTOOL Blog","image":"<a href="https://www.microtool.de/wp-content/uploads/2018/03/spurensuche_share-1.jpg"" rel="nofollow">https://www.microtool.de/wp-content/uploads/2018/03/spurensuche_share-1.jpg"</a>;}}]}
That lead us to the conclusion, that it must be the breadcrumbs feature that threw the error, so we deactivated it again to see what happened. And right after deactivating it, everything was fine again. The other plugins (especially the Related Posts Pro) worked well again.
So my question is:
Why may be wrong with this code? Why does the browser (Firefox Developer Edition [latest version], Firefox [latest version], Chrome [latest version]) throw these errors, when they way to describe the breadcrumbs should be standard? What do we have to change that the breadcrumbs will not throw those errors?Just for your information:
We make use of other plugins on our website, e. g. WP Rocket, Monarch, Gravity Forms, etc. And our theme is Enfold. But this behaviour also happened on other websites where we installed the SEO Framework with a different theme (Divi by Elegant Themes). They all threw that error and “broke” one or another plugin.Any idea of about getting rid of the error is appreciated.
Best regards,
PatrickThe page I need help with: [log in to see the link]
- The topic ‘Breadcrumbs’ is closed to new replies.