I just updated Jetpack and the theme, and the infinite scroll doesn't work anymore.

I have tracked the console, and the XHR does receive the content of the posts to add but somehow it isn't displaying them.

My blog is: http://jorjon.com/blog/

I have no custom modification whatsoever.

Update: Thanks to Jared, I have found this Javascript console error:

Uncaught SyntaxError: Unexpected token < jquery.js:2
v.extend.parseJSON jquery.js:2
(anonymous function) infinity.js:208
l jquery.js:2
c.fireWith jquery.js:2
T jquery.js:2

Update 2: This is what is being returned by the XHR, supposedly there is an unexpected token there, but I can't find anything. The JSON at the last line, as Jared mentioned, is Valid. http://pastebin.com/ZUD2xqun

closed as off-topic by Mark Kaplun, Pieter Goosen, birgire, Johannes Pille, gmazzap Sep 20 '14 at 23:35

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic." – Mark Kaplun, Pieter Goosen, birgire, Johannes Pille, gmazzap
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Yep, very strange. I'm getting a JavaScript error SyntaxError: JSON.parse: unexpected character. So I inspected the response, did a copy/paste of the JSON into JSONLint and was told Valid JSON. At which point I up-voted your question because I'm now curious too! – Jared Cobb May 21 '13 at 22:00
  • Hi jared, thanks for your time! I will check if I didn't add some strange character that is messing with the JSON. – Veehmot May 22 '13 at 6:28

Well, the response should be JSON only. Not some HTML with JSON at the end.

Seems like the WordPress SEO plugin installed uses output buffering to output the meta tags in the HTML header. Have you tried deactivating this plugin or others? Maybe you can deactivate output buffering in the plugin alltogether.

Not the answer you're looking for? Browse other questions tagged or ask your own question.