• Resolved tfindley

    (@tfindley)


    I have enabled the new ‘Like’ button for my posts. When I view the post (both as a registered user and as a anonymous user) the button appears greyed out with the text ‘Loading…’ next to it.

    Firebug code reports the following:

    <div id="like-post-wrapper-6633141-1071" class="sharedaddy sd-block sd-like jetpack-likes-widget-wrapper jetpack-likes-widget-unloaded" data-name="like-post-frame-6633141-1071" data-src="https://widgets.wp.com/likes/#blog_id=6633141&post_id=1071&origin=https://tfindley.co.uk">
    <h3 class="sd-title">Like this:</h3>
    <div class="post-likes-widget-placeholder" style="height:55px">
    <span class="button">
    <span>Like</span>
    </span>
    <span class="loading">Loading...</span>
    </div>
    <span class="sd-text-color"></span>
    <a class="sd-link-color"></a>
    </div>
    </div>

    I can replicate this using Firefox and Chrome.
    WordPress has W3 Total Cache (with Amazon CDN) enabled, and Bulletproof Security.

    Regards

    https://www.ads-software.com/extend/plugins/jetpack/

Viewing 15 replies - 16 through 30 (of 35 total)
  • Thread Starter tfindley

    (@tfindley)

    @jeremy Herve
    I’ve just tried disabling W3 Total Cache and then opened the site on a new browser session with no cache. No luck I’m afraid. Exactly the same issue in exactly the same way.

    I would offer to leave W3 disabled but due to the larger amount of media on my site I can’t leave it disabled for long due to performance issues.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    @tfindley Could you try disabling CloudFront for a few minutes?

    @jeremy Herve: I have turned off a couple of plugins.

    1) WP Super Cache
    2) Shareaholic (This is where the Cloudfront resources were being generated from)

    Unfortunately – the “Like Loading..” issue still seems to persist with these plugins disabled.

    @jeremy Herve

    I have re-enabled the Like button and disabled caching from Cloudflare and W3 Total Cache.

    Strange… I just tested Internet Explorer (64-bit) and it worked once, but now stopped working again. I have tried in Firefox and Chrome with no luck.

    Oh, and I checked that it worked on other sites and it does. So the problem is probably not browser related.

    Disabling the cache seemed to do the trick for me after a while. I have now successfully re-enabled Cloudflare and will try with W3 Total Cache later to see if it works.

    Could you please implement the css styles in the plugin, instead of fetching them from your server? It makes it just about impossible to style the Like button, e.g. if you want to make the font match your sites.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I’ve let our Like experts know about the issue so that we can look into it in more detail.

    I’ll keep you posted.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    @pawparazzo Is this page a Custom Post Type? If so, that might explain the issue. Likes don’t work well with Custom Post Types at the moment, so we’ll need to work on a better way to handle Custom Post Types within Jetpack.

    @jeremy Herve: Both of the sample pages that I included in my original comment are Avada Custom Post Types – They are both Portfolio posts from within our Theme (Avada).

    Gallery Page 1 [Like Breaks]
    Gallery Page 2 [Like Works]

    That’s why I was confused that one of these pages consistently shows the like loading properly and the other does not.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Thanks for the extra details. That explains the issue. We didn’t work on Likes for Custom Post Types, that’s why it doesn’t fully work at the moment.

    I would recommend that you disable Likes on your Portfolio pages until we start supporting Likes on Custom Post Types.

    I had the same or similar issues with the Like button. When I made a totally new post, Like’s worked. This was not the case with custom or migrated posts and pages, no matter what category they were listed under.

    However, when I went and simply updated each of the posts. Note, nothing had changed, but I updated anyway…the Like button came back. I did not get the past likes back…as in those that were received while it was a WordPress.com post, but the Like option appeared and is fully functional on all of the updated pages and posts.

    Edelleye.com

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    @edelleye Thanks for the report!

    Could you let me know how you imported these posts in the first place, so I can try to reproduce the problem?

    Could you also try to go to the Jetpack menu, and disconnect / reconnect to WordPress.com?

    I used the export to *.xml function within WordPress.com, then imported via WordPress plugin. Note, there were errors, some of the gallery content did not come over properly.

    I tried the disconnect, reconnect as suggested. It did not appear to have any affect…e.g. the Posts with bad Likes Button didn’t change, the updated posts still had a functioning Like button, none of the WordPress.com Likes received transferred over to the post pages.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Thanks so much for the extra details! I was able to reproduce the problem on a test blog. We’ll work on a fix, and I will post again here as soon as we have a solution.

    I am having a similar problem to @edelleye where an xml import from wp.com renders the loading error on previous posts but new posts work fine with the same settings for post format etc.

    Is it possible that the wp.com site that is still running is interfering with the like button on the wp.org site and will try to load unsuccessfully until the wp.com site is taken down?

Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘Like button 'Loading…'’ is closed to new replies.