• Our website loads several sections of its home page via Javascript from the JSON API. It does this for performance reasons, but lately we noticed a strange set of characters appearing: +-* before some of the content. After doing some digging, it appears that these characters are added by the AddThis plugin, in order to load some of that plugin’s tooling.

    Unfortunately, because our site is loading content from the API, it is appearing on the page after AddThis has already swept the markup for those characters – meaning they stay visible.

    We discovered this problem on a private testing server, so there isn’t a public URL I can share that exhibits this problem. I’ve verified that the characters are in the JSON markup by loading that directly. If needed, I can try and set up a small public server that exhibits this behavior – but it may take some doing to replicate our setup. You can see our existing public front page at http://libraries.mit.edu – the affected sections are the four headshots of experts, more than halfway down the right column. Their areas of expertise were displaying as +-*BIOSCIENCES for example, instead of BIOSCIENCES.

    I’m not sure where the needed solution to this problem lies. Is it a problem with the JSON API that these characters are being added to its output? Is it a problem with AddThis that they are augmenting the excerpt in _all_ cases, rather than just HTML responses?

    Any guidance on this question would be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Matt.

    What version of the plugin are you using?

    Thread Starter Matt Bernhardt

    (@morphosis7)

    It looks like we’ve got 4.0.7 in place. This looks like the final version in the 4.x branch?

    I’m guessing that you’ll recommend upgrading to the 5.x branch? I haven’t been active in the WordPress community for long enough to know what the implications of major plugin versions are.

    Hi Matt.

    That’s right. My recommendation is to use the newest version. We do not support older versions of this plugin.

    That use of +-* was removed in version 5.0.

    If you have trouble with one version of the plugin, you can always downgrade by downloading your desired version using the version specific links here: https://wordpress.org/plugins/addthis/developers/

    Thanks,
    Julka

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: AddThis] [Plugin: JSON API] Special characters added to excerpt’ is closed to new replies.