Jetpack by WordPress.com
[resolved] Jetpack Likes causing jQuery error (2 posts)

  1. Virendra
    Posted 3 years ago #

    I want to enable the Likes on my posts using jetpack. However, whenever, I try to enable the Likes module I always get the following "Uncaught SyntaxError: Unexpected token ILLEGAL" JavaScript error in following line:

    jQuery.each( event.likers, function( i, liker ) {
    						$list.append( '<li class="' + liker.css_class + '"><a href="'%20+%20liker.profile_URL%20+%20'" class="wpl-liker" rel="nofollow" target="_parent"><img src="'%20+%20liker.avatar_URL%20+%20'" alt="' + liker.name + '" width="30" height="30" style="padding-right: 3px;" /></a></li>');
    Uncaught SyntaxError: Unexpected token ILLEGAL
    					} );

    Initially I though it was because I was using jquery 1.7.2, but then I switched to the default comes with WordPress (1.8.3) and still the issue exists. Then I tried switching to the default WordPress theme (Twenty Twelve) and still the issue exists.

    My site is http://techtalk.virendrachandak.com/.


  2. Virendra
    Posted 3 years ago #

    I think I found the solution. There is some conflict with the WP-HTML-Compression (http://wordpress.org/extend/plugins/wp-html-compression/) plugin. I disabled that plugin and it solved the issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.