• Resolved wagedu

    (@wagedu)


    Hi,
    I’ve been testing a lot the plugin and other than the problem above it’s amazing. Thanks.

    We retrieve the content from our website to our app via simple json request appending “?gbjson=get_recent_posts” at the end of the URL (a category)
    But your plugin is breaking it with your single quotes. Check any URL that uses your plugin and you’ll see that yours are the only single quotes in the JSON.
    You’re using them for data-src, data-srcset and class.
    Example: data-src=’\”https:\

    I pasted the JSON response in https://jsonlint.com/
    As expected, “content” breaks due to your code and throws the error:
    Error: Parse error on line 14:
    …tano”, “content”: “<p>Desde o in\u00ed
    ———————-^
    Expecting ‘STRING’, ‘NUMBER’, ‘NULL’, ‘TRUE’, ‘FALSE’, ‘{‘, ‘[‘, got ‘undefined’

    So the JSON cannot be validated and our app can’t retrieve the code.

    As soon as I disable your plugin, those lines disappear, there are no more single quotes, the JSON code checks, and our app retrieves the posts.

    So, a solution would be to disable your plugin, but as I said, other than the JSON problem it’s working great… But it breaks our app.
    So I don’t know what to do.
    Any idea as to which php or js of your plugin should I modify to fix the single quotes?
    Or will you have a look at it?

    Anyway, please, drop me a line ??

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘EWWW breaks json requests’ is closed to new replies.