WPIntell

Source evidence

Bad escape sequence in string error

Structured Content (JSON-LD) #wpsc · support · 2022-12-28T11:54:00+00:00

mixedsentiment
highseverity
0.95relevance
21replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 31 rows with source links

19.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

25 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
simonthesorcerer resolved
Using your fantastic Q&A pages, love it. However, since last update I‘m getting: “Bad escape sequence in string” errors in Google Search Console. The issue seems to be that your plugin started adding a / after every ‘, example: ‘there aren’t any’ becomes ‘there aren\’t any’ in the code that is seen in Google ,although I did not manually add the /. Are you aware of this issue? It breaks the functionality and rich snippets stop appearing (which the point of all this). I thought I let you know. Example: https://drive.google.com/file/d/1wA_WRnHsuGnBfzMcdlvcrVGNNJ6JwrUI/view?usp=sharing Sincerely, Simon The page I need help with: [ log in to see the link] It shows up in the source code as well: https://drive.google.com/file/d/1Gg1gLYVya5TESIDEfZfsPd_RN5MfA3DP/view?usp=sharing Looking at the source code of this page (if you want to check it yourself, a second example): https://simonsblogpark.com/onlinegambling/simons-south-africa-gambling-and-online-betting-guide/ This reply was modified 3 years, 6 months ago by simonthesorcerer . Hi, thank you! We’ll check this. Gordon Hi, I have the same issue. I really like the plugin but i have a lot of FAQs and this could impact my business. Are you confident on an update to solve the issue today ? Thanks! Simon Hi @simonthesorcerer @simoncc yes, we’re working on it! We found out, that this just happens when you’re using not the regular single quotes. As workarounds: – roll back to the last Version – change the single quote s in the answers But we’ll fix it. Greetings Hi @simonthesorcerer @simoncc you use the plugin with the shortcodes in the normal rich text editor? Greetings Yes, I use these: [accordions load=”1″] [accordion title=”FAQ section”] I have around 180 FAQs so I will wait for the fix, there is no way I’m going to “– change the single quote s in the answers” for every single one of them… (I also honestly don’t know what that means) Thank you for taking this serious and working on it, I know this is a free plugin, we are very fortunate that you help us, much appreciated. This reply was modified 3 years, 6 months ago by simonthesorcerer . This reply was modified 3 years, 6 months ago by simonthesorcerer . Hi, thank you very much for your feedback! We are also interested in finding out where things are stuck. Single Quotes = ‘ Double Quotes = “ Fyi: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html The problem seems to be the different types of single quotes combined with your theme and font. However, for security reasons, we have to “escape” such things. In fact, we can’t reproduce the problem on several test installations, even if we copy the text from your site 🙂 But we can imagine how it happens and are currently trying to recreate the whole situation. The quick solution is to install the previous version with the plugin https://de.wordpress.org/plugins/wp-rollback/ , since we haven’t implemented the “escape” function here yet. You can also use another single quote on the mentioned example page and test if it works then. Greetings Thanks, I know what a single quotation mark is (but you did the right thing by explaining, you never know, no worries). What I don’t get is: “change the single quotes in the answers” to what? Delete them? that creates typos, causes SEO issue like crazy, the ranking of the website would suffer, out of the question, this is my livelihood (for now). I assume this is what you meant: “You can also use another single quote on the mentioned example page and test if it works then.” So like this? Instead of: “No, they don’t , charging an entry fee is not customary in the country (as is the case in most of Africa).” to “No, they don”t, charging an entry fee is not customary in the country (as is the case in most of Africa).” Like this? Or another font type? Again, typo, SEO issues, not going to do it, also 180*30 questions, not happening. 🙂 (I have search and replace but I obviously use single quotation marks in the text above as well, so it does not help here). I only use one type of font. “The problem seems to be the different types of single quotes combined with your theme and font.” I only use one font type in the main body of a page, not using multiple on purpose. It just causes issues with WPRocket’s CSS merging, and pagespeed suffers, SEO issues again, makes no sense. But plugins add their own fonts and CSS codes, nothing I can do about it. If I find out what specifically causes it I will let you know. I’m intrigued, and I want to help to make this fantastic plugin even better, I will run some tests (btw. I’m attending a junior Java developer course on the weekends for a year now, besides managing the blog, so I’m interested in this professionally as well, as a fledgling coder ;), although this is not Java ). Happy New Year btw (I’m going to work tomorrow as well so feel free to message me here, no rest for the wicked 🙂 ) This reply was modified 3 years, 6 months ago by simonthesorcerer . This reply was modified 3 years, 6 months ago by simonthesorcerer . This reply was modified 3 years, 6 months ago by simonthesorcerer . Maybe this helps: I added: No, they <strong>don’t</strong>, and this made it even worse, this was the result: “No, they <strong>don\’t</strong>, And: Players <em>don’t</em> made this: Players <em>don\’t</em> Adding another single quotation mark: don”t (double single quotation marks) becomes: don\’\’t And don”t (one regular quotation mark) just makes the entire answer disappear. This reply was modified 3 years, 6 months ago by simonthesorcerer . This reply was modified 3 years, 6 months ago by simonthesorcerer . @simonthesorcerer @simoncc please update to the latest version 🙂 and let me know if everything works for you. Greetings and happy new year Fantastic Job! That was a quick fix, it works fine now. Thanks. Happy new year. Hi, that’s great 🙂 We would be happy if you give the plugin a positive review! Good luck and health in 2023! Gordon & Antonio I have latest version and Google is still showing “Bad escape sequence in string” in the rich snippets on two of my pages. Nothing changed on these pages but today Google reported this error and says it’s still there. Hi @presson2022 , can you provide a link, so that we can check this? And if you use a caching plugin can you please delete the cache and check again? Sometimes you update a plugin but the content is no rendered again … so google will still find the “old” content. Greetings! Hi, I don’t have a cache plugin installed. I don’t want to show my domain in public. How can I get it to you? Hi @presson2022 , send an email via https://wpsc-plugin.com/contact/ Greetings Sent URL. Hi Thanks for the update. But the issue persists for me. I’m using multi FAQ on classic editor. Here is an example live : https://bricopratique.fr/recuperateur-eau-de-pluie-1000l/ Looks like the ‘ is causing the problem. In french we are likely to use it frequently. im checking with https://validator.schema.org/ and search console tool. Thanks a lot for the update! Hope we can find a solution 🙂 Simon Hi @simoncc @presson2022 please update to the latest version of the plugin. Please let us know, if everything works for you now 🙂 And if everything works, we would appreciate a positive review 🙂 Greetings So far so good. We’ll see what happens after validation of fix. Thank you. Hi, Should this issue be fixed in the latest version for all special characters? I am still getting the error when I include a & or \ character in the Answer text of a FAQ. Google search console reports it as “Unparsable structured data->Bad escape sequence in string”. Cleared the cache and even did a preview form the login. Schema code remains the same. Can you tell me how the updated version addresses the issue, so I can verify the resulting code? Ron

Comments

21 shown
simonthesorcerer 2022-12-28T15:13:00+00:00

It shows up in the source code as well: https://drive.google.com/file/d/1Gg1gLYVya5TESIDEfZfsPd_RN5MfA3DP/view?usp=sharing Looking at the source code of this page (if you want to check it yourself, a second example): https://simonsblogpark.com/onlinegambling/simons-south-africa-gambling-and-online-betting-guide/ This reply was modified 3 years, 6 months ago by simonthesorcerer .

Gordon Böhme 2022-12-28T15:48:00+00:00

Hi, thank you! We’ll check this. Gordon

simoncc 2022-12-29T11:50:00+00:00

Hi, I have the same issue. I really like the plugin but i have a lot of FAQs and this could impact my business. Are you confident on an update to solve the issue today ? Thanks! Simon

Gordon Böhme 2022-12-29T22:14:00+00:00

Hi @simonthesorcerer @simoncc yes, we’re working on it! We found out, that this just happens when you’re using not the regular single quotes. As workarounds: – roll back to the last Version – change the single quote s in the answers But we’ll fix it. Greetings

Gordon Böhme 2022-12-30T17:45:00+00:00

Hi @simonthesorcerer @simoncc you use the plugin with the shortcodes in the normal rich text editor? Greetings

simonthesorcerer 2022-12-30T20:21:00+00:00

Yes, I use these: [accordions load=”1″] [accordion title=”FAQ section”] I have around 180 FAQs so I will wait for the fix, there is no way I’m going to “– change the single quote s in the answers” for every single one of them… (I also honestly don’t know what that means) Thank you for taking this serious and working on it, I know this is a free plugin, we are very fortunate that you help us, much appreciated. This reply was modified 3 years, 6 months ago by simonthesorcerer . This reply was modified 3 years, 6 months ago by simonthesorcerer .

Gordon Böhme 2022-12-30T21:29:00+00:00

Hi, thank you very much for your feedback! We are also interested in finding out where things are stuck. Single Quotes = ‘ Double Quotes = “ Fyi: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html The problem seems to be the different types of single quotes combined with your theme and font. However, for security reasons, we have to “escape” such things. In fact, we can’t reproduce the problem on several test installations, even if we copy the text from your site 🙂 But we can imagine how it happens and are currently trying to recreate the whole situation. The quick solution is to install the previous version with the plugin https://de.wordpress.org/plugins/wp-rollback/ , since we haven’t implemented the “escape” function here yet. You can also use another single quote on the mentioned example page and test if it works then. Greetings

simonthesorcerer 2022-12-30T22:34:00+00:00

Thanks, I know what a single quotation mark is (but you did the right thing by explaining, you never know, no worries). What I don’t get is: “change the single quotes in the answers” to what? Delete them? that creates typos, causes SEO issue like crazy, the ranking of the website would suffer, out of the question, this is my livelihood (for now). I assume this is what you meant: “You can also use another single quote on the mentioned example page and test if it works then.” So like this? Instead of: “No, they don’t , charging an entry fee is not customary in the country (as is the case in most of Africa).” to “No, they don”t, charging an entry fee is not customary in the country (as is the case in most of Africa).” Like this? Or another font type? Again, typo, SEO issues, not going to do it, also 180*30 questions, not happening. 🙂 (I have search and replace but I obviously use single quotation marks in the text above as well, so it does not help here). I only use one type of font. “The problem seems to be the different types of single quotes combined with your theme and font.” I only use one font type in the main body of a page, not using multiple on purpose. It just causes issues with WPRocket’s CSS merging, and pagespeed suffers, SEO issues again, makes no sense. But plugins add their own fonts and CSS codes, nothing I can do about it. If I find out what specifically causes it I will let you know. I’m intrigued, and I want to help to make this fantastic plugin even better, I will run some tests (btw. I’m attending a junior Java developer course on the weekends for a year now, besides managing the blog, so I’m interested in this professionally as well, as a fledgling coder ;), although this is not Java ). Happy New Year btw (I’m going to work tomorrow as well so feel free to message me here, no rest for the wicked 🙂 ) This reply was modified 3 years, 6 months ago by simonthesorcerer . This reply was modified 3 years, 6 months ago by simonthesorcerer . This reply was modified 3 years, 6 months ago by simonthesorcerer .

simonthesorcerer 2022-12-30T22:56:00+00:00

Maybe this helps: I added: No, they <strong>don’t</strong>, and this made it even worse, this was the result: “No, they <strong>don\’t</strong>, And: Players <em>don’t</em> made this: Players <em>don\’t</em> Adding another single quotation mark: don”t (double single quotation marks) becomes: don\’\’t And don”t (one regular quotation mark) just makes the entire answer disappear. This reply was modified 3 years, 6 months ago by simonthesorcerer . This reply was modified 3 years, 6 months ago by simonthesorcerer .

Gordon Böhme 2022-12-31T15:29:00+00:00

@simonthesorcerer @simoncc please update to the latest version 🙂 and let me know if everything works for you. Greetings and happy new year

simonthesorcerer 2022-12-31T16:41:00+00:00

Fantastic Job! That was a quick fix, it works fine now. Thanks. Happy new year.

Gordon Böhme 2023-01-01T13:33:00+00:00

Hi, that’s great 🙂 We would be happy if you give the plugin a positive review! Good luck and health in 2023! Gordon & Antonio

presson2022 2023-01-08T17:08:00+00:00

I have latest version and Google is still showing “Bad escape sequence in string” in the rich snippets on two of my pages. Nothing changed on these pages but today Google reported this error and says it’s still there.

Gordon Böhme 2023-01-08T17:12:00+00:00

Hi @presson2022 , can you provide a link, so that we can check this? And if you use a caching plugin can you please delete the cache and check again? Sometimes you update a plugin but the content is no rendered again … so google will still find the “old” content. Greetings!

presson2022 2023-01-08T17:22:00+00:00

Hi, I don’t have a cache plugin installed. I don’t want to show my domain in public. How can I get it to you?

Gordon Böhme 2023-01-08T17:33:00+00:00

Hi @presson2022 , send an email via https://wpsc-plugin.com/contact/ Greetings

presson2022 2023-01-08T17:35:00+00:00

Sent URL.

simoncc 2023-01-10T16:33:00+00:00

Hi Thanks for the update. But the issue persists for me. I’m using multi FAQ on classic editor. Here is an example live : https://bricopratique.fr/recuperateur-eau-de-pluie-1000l/ Looks like the ‘ is causing the problem. In french we are likely to use it frequently. im checking with https://validator.schema.org/ and search console tool. Thanks a lot for the update! Hope we can find a solution 🙂 Simon

Gordon Böhme 2023-01-12T14:49:00+00:00

Hi @simoncc @presson2022 please update to the latest version of the plugin. Please let us know, if everything works for you now 🙂 And if everything works, we would appreciate a positive review 🙂 Greetings

presson2022 2023-01-12T19:27:00+00:00

So far so good. We’ll see what happens after validation of fix. Thank you.

Ron 2023-02-17T16:18:00+00:00

Hi, Should this issue be fixed in the latest version for all special characters? I am still getting the error when I include a & or \ character in the Answer text of a FAQ. Google search console reports it as “Unparsable structured data->Bad escape sequence in string”. Cleared the cache and even did a preview form the login. Schema code remains the same. Can you tell me how the updated version addresses the issue, so I can verify the resulting code? Ron