postmatic / epoch

WordPress commenting perfected.
38 stars 14 forks source link

Uncaught ReferenceError: addComment is not defined #170

Open shackep opened 8 years ago

shackep commented 8 years ago

I am having trouble getting new comments to show up without a manual page refresh. I also notice that when I click reply I get "Uncaught ReferenceError: addComment is not defined". Looking at Sources in dev tools I see "js/front/epoch.min.js".

Test environment here: http://test.sr.ithaka.org/blog/mismatch-theory-and-the-missing-role-of-the-institution/

WordPress 4.4.1 Using Timber/twig template for theme...

Vernal commented 8 years ago

hey Peter,

What do you make of this script near the bottom of the page?

I get a reference error from that right on page load... which could be causing trouble. Do you know anything about it?

On Thu, Jan 14, 2016 at 4:06 PM, Peter Shackelford <notifications@github.com

wrote:

I am having trouble getting new comments to show up without a manual page refresh. I also notice that when I click reply I get "Uncaught ReferenceError: addComment is not defined". Looking at Sources in dev tools I see "js/front/epoch.min.js".

Test environment here:

http://test.sr.ithaka.org/blog/mismatch-theory-and-the-missing-role-of-the-institution/

WordPress 4.4.1 Using Timber/twig template for theme...

— Reply to this email directly or view it on GitHub https://github.com/postmatic/epoch/issues/170.

Jason G. Lemieux | Creative Director Vernal Creative and Strategy http://www.vernalcreative.com | New Number - 802.821.4059

shackep commented 8 years ago

Hi Jason, That is a Adobe Analytics tag. I'll see what happens when I remove it. Thanks for pointing that out.

Vernal commented 8 years ago

Ok let me know.

On Thu, Jan 14, 2016 at 4:39 PM, Peter Shackelford <notifications@github.com

wrote:

Hi Jason, That is a Adobe Analytics tag. I'll see what happens when I remove it. Thanks for pointing that out.

— Reply to this email directly or view it on GitHub https://github.com/postmatic/epoch/issues/170#issuecomment-171788614.

Jason G. Lemieux | Creative Director Vernal Creative and Strategy http://www.vernalcreative.com | New Number - 802.821.4059

shackep commented 8 years ago

I have removed the Adobe Tag locally and still have the issue. The error in console is now taking me to this line: html<div class="reply"><a rel='nofollow' class='comment-reply-link' href='http://srpantheon.dev/blog/double-trouble/?replytocom=3377370#respond' onclick='return addComment.moveForm( "div-comment-3377370", "3377370", "respond", "273568" )' aria-label='Reply to Jay Orsi'>Reply</a></div> With: onclick @ (index):296 as the note.

Vernal commented 8 years ago

Interesting. Peter i'm not sure where to go with this one. Are you running any interesting cache or minify plugins?

On Thu, Jan 14, 2016 at 5:20 PM, Peter Shackelford <notifications@github.com

wrote:

I have removed the Adobe Tag locally and still have the issue. The error in console is now taking me to this line: html

<a rel='nofollow' class='comment-reply-link' href=' http://srpantheon.dev/blog/double-trouble/?replytocom=3377370#respond' onclick='return addComment.moveForm( "div-comment-3377370", "3377370", "respond", "273568" )' aria-label='Reply to Jay Orsi'>Reply
With: onclick @ (index):296 as the note.

— Reply to this email directly or view it on GitHub https://github.com/postmatic/epoch/issues/170#issuecomment-171800285.

Jason G. Lemieux | Creative Director Vernal Creative and Strategy http://www.vernalcreative.com | New Number - 802.821.4059