Bad escape sequence in string error
-
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,
SimonThe 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 1 year, 9 months ago by simonthesorcerer.
Hi, thank you! We’ll check this.
GordonHi,
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
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 quotes in the answers
But we’ll fix it. Greetingsyou 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 quotes 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 1 year, 9 months ago by simonthesorcerer.
- This reply was modified 1 year, 9 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 1 year, 9 months ago by simonthesorcerer.
- This reply was modified 1 year, 9 months ago by simonthesorcerer.
- This reply was modified 1 year, 9 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 1 year, 9 months ago by simonthesorcerer.
- This reply was modified 1 year, 9 months ago by simonthesorcerer.
please update to the latest version 🙂
and let me know if everything works for you.
Greetings and happy new yearFantastic 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 & AntonioI 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?
- The topic ‘Bad escape sequence in string error’ is closed to new replies.