Error in wpForo Schema - Bad escape sequence in string

  

3
Topic starter

I have a coding forum with a lot of code.

For the forum, I am using the wpForo WordPress plugin: https://wpforo.com/

It uses wpForo Schema.

However, in Google Search Console, I am getting the following error: "Bad escape sequence in string" in the field name: 'text':

I believe this is because there is a lot of code in this field.

How can I solve this problem?

Thank you!

bad escape sequence in string
1 Answer
2
  1. Go to: [YOUR-SITE]/wp-content/plugins/wpforo/includes/functions-template.php
  2. Search for 'text' and remove the 3 lines where it appears.

In my case they were:

"text": "' . esc_attr( sanitize_text_field( $post['body'] ) ) . '",
"text": "' . esc_attr( sanitize_text_field( $best_answer['body'] ) ) . '",
"text": "' . esc_attr( sanitize_text_field( $suggested_answer['body'] ) ) . '",

Here is a video on the topic: 

Share: