Content analysis code gets error syntax error, unexpected ‘wp’ (T_STRING)

#183031
  • Resolved David Higgs
    Rank Math free

    When I try and insert the code provided on this page https://rankmath.com/kb/content-analysis-api/ I get this error message.
    The code snippet you are trying to save produced a fatal error on line 3:
    syntax error, unexpected ‘wp’ (T_STRING)

    The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.

    Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.
    I am using Page builder in Kinetika theme

Viewing 5 replies - 1 through 5 (of 5 total)
  • Brian
    Rank Math free

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    You seem to be using the content analysis API to make the page builder compatible with Rank Math content analysis. This is something that should be integrated within the backend of the builder.

    With this, you would need to get more consultation with the developer of the page builder to help you integrate Rank Math analysis.

    If this is the case we can push your request to our devs team for more assistance.

    We really look forward to helping you.

    Thank you.

    Hello Brian
    Thanks for your prompt reply.

    I will make contact with the developer of
    my theme and pass on your comments in order to enlist their help.

    I will let you know the outcome.

    Kind regards

    David

    Anas
    Rank Math business

    Hello,

    Let us know how it goes.

    Meanwhile, if you have any other questions, please feel free to ask.

    We are here to help you.

    Hello folks

    I have finally got round to contacting the theme developer in regards the above and here is their reply.

    imaginem wrote:

    Hi David,

    The JS method was one which was used in Yoast SEO in the very early stages which actually broke a lot of websites.

    Since the integration of JS is added to the theme when it breaks it causes theme issues.
    So we are reluctant to add JavaScript dependencies based on another plugin into the theme.

    We’ll check on a way to add builder output to the native WordPress editor if it helps Rank SEO to analyze it. This should be a more stable solution than the JS solution.

    Thanks

    Post Link: https://imaginemthemes.co/forums/topic/seo-rank-math/#post-96924

    ———–
    Pleas advise me if you think that the above action by IMaginem will be of help I do hope so.

    Cheers

    David H

    Hello,

    Thank you for the update.

    I’ve already forwarded this to our dev team and will get back to you shortly. We really appreciate your kind patience regarding this matter.

    Meanwhile, please don’t hesitate to contact us anytime to assist you further with anything else.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Content analysis code gets error syntax error, unexpected ‘wp’ (T_STRING)’ is closed to new replies.