Title: JavaScript Error Prevents Posts from Loading
Last modified: October 18, 2017

---

# JavaScript Error Prevents Posts from Loading

 *  [jryanjp](https://wordpress.org/support/users/jryanjp/)
 * (@jryanjp)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-prevents-posts-from-loading/)
 * No posts at all are loading on my site. In the Developer Console, I can see the
   following error with ajax-load-more. I’ve reported this in the past, but it still
   happens intermittently. It works sometime but not all the time.
 * SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous
   >) at n.parseJSON (jquery.js?ver=2.6.14:4) at Xb (jquery.js?ver=2.6.14:4) at 
   y (jquery.js?ver=2.6.14:4) at XMLHttpRequest.c (jquery.js?ver=2.6.14:4)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-error-prevents-posts-from-loading%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-prevents-posts-from-loading/#post-9598553)
 * Hi [@jryanjp](https://wordpress.org/support/users/jryanjp/);
    The site is working
   fine or me.
 * Sounds likeit could be an error being sent from the repeater template,
 *  Thread Starter [jryanjp](https://wordpress.org/support/users/jryanjp/)
 * (@jryanjp)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-prevents-posts-from-loading/#post-9598631)
 * Yes, as I said, the problem is intermittent. So, Murphy’s Law says that when 
   you look at it, it will be working fine.
 * Is there a way to make sure this doesn’t recur? What is the “repeater template”?
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-prevents-posts-from-loading/#post-9598664)
 * The template that renders content to the screen.
    Ajax Load More > Repeater Templates
   in your admin.
 *  Thread Starter [jryanjp](https://wordpress.org/support/users/jryanjp/)
 * (@jryanjp)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-prevents-posts-from-loading/#post-9599160)
 * OK, how do I troubleshoot this so it doesn’t happen again? It keeps happening,
   and there’s no way to tell when it happens, but it makes the whole site unusable.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-prevents-posts-from-loading/#post-9599194)
 * Is WP_DEBUG set to true in your wp_config?

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

The topic ‘JavaScript Error Prevents Posts from Loading’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-prevents-posts-from-loading/#post-9599194)
 * Status: not resolved