• Resolved Platoscave

    (@platoscave)


    We have a strange issue of incompatibily between WP-Performance and BB Page Builder. The Publish action from the page builder fails because WP-Performance seems to make the JSON response invalid.

    The request which is made is a POST request to root (https://domain.com/) and the response is like this:

    When WP-Performance is enabled (INVALID JSON):

    {"posts":[...],"authors":{"4":{"name":"Tony","avatar":"<img height=\"30\" width=\"30\" class=\"avatar avatar-30 photo\" src=\"https:\/\/secure.gravatar.com\/avatar\/a....3?s=96&d=mm&r=g\" \>"}}}

    When WP-Performance is NOT enabled (VALID JSON):

    {"posts":[...],"authors":{"4":{"name":"Tony","avatar":"<img height=\"30\" width=\"30\" class=\"avatar avatar-30 photo\" src=\"https:\/\/secure.gravatar.com\/avatar\/a....3?s=96&d=mm&r=g\" \/>"}}}

    Look at the last characters: \/> vs \>.

    Where is the place in the code where WP-Performance replaces that and why?
    Is there a configuration to prevent that from happening?
    What file can we edit to exclude that replacement?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ante Laca

    (@alaca)

    Hi @platoscave,

    Try turning ON the “Disable JavaScript optimization for logged-in users” option.

    Thread Starter Platoscave

    (@platoscave)

    Thanks very much Alaca for the instant response. That fixed the issue!

    Could you please tell me what is that option doing more exactly?

    Plugin Author Ante Laca

    (@alaca)

    Most of the page builder plugins are fetching generated pages from frontend and then displays them in the WP Admin, so if you have any JS optimization turned ON, the JS code will be affected. Sometimes there can be some errors with minify or async loading. To avoid that you can use this option which simply disables JS optimization for logged in users.

    Thread Starter Platoscave

    (@platoscave)

    Thanks very much Alaca.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘It seems to remove a slash in a JSON output’ is closed to new replies.