Support » Plugin: Jetpack by » AJAX features stopped working

  • Resolved Elfman72


    So it seems that with 3.5.1 combined with my theme (SimpleDark) and Jetpack, all AJAX features are broken now. For example, typing the search box doesn’t fade the word “Search…”. Also, you can see boxes around my star ratings which is not intended. The top menu should shift to the right, above the second column. Disabling Jetpack resolves the issue. This started happening last week which is when I am pretty sure 3.5.1 was released so I am not 100% sure if it is WordPress, Jetpack or my theme. It has been working fine for the month I have been running the blog.

    Any insights are very much appreciated.


Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Jeremy Herve


    Jetpack Mechanic 🚀

    I had a look at your site, and your theme or one of your plugins seems to be loading an old version of jQuery instead of using the version that comes bundled with WordPress.

    It can create multiple conflicts with WordPress and with other plugins like Jetpack. You can read more about it here:

    Try switching to a different theme for a few minutes, and check if that solves the issue; if it does, you’ll want to look for the function loading jQuery in your theme’s header.php file, or in the functions.php file. Once you find that function, you can remove it and enqueue the proper version of jQuery as explained here:

    If the issue is not related to your theme, please try to disable all your plugins, one at a time, until you find the one that causes the conflict. You can then enqueue jQuery using the method I linked to above.

    If you do not feel comfortable editing PHP files, you can also contact the theme or plugin author and ask them to solve the issue.

    Okay. Well I did disable each Plugin one by one and Jetpack was the one that ended up breaking my theme. Not feeling overly confident that I can edit the header properly enough. I’ll shoot the author a mail and see if that can’t get resolved that way. Too bad since I don’t think it has been updated in a while and I really like this theme.

    Plugin Contributor Jeremy Herve


    Jetpack Mechanic 🚀

    Since your theme was available for download here, I downloaded it and made the change for you.

    Here is an updated version of your theme:

    I also opened an issue and proposed a patch to the theme here:

    Wow! Thanks so much for that Jeremy. Really appreciate it. I installed the revised theme but it still seems to be happening so I am not sure if jQuery is the the culprit this time. Dang. Wish I knew what changed since it was working when I started about a month ago.

    Again, thanks so much for the assistance. Frustrating that it is coming down to my theme. It took me a long time to find a free and safe one to use. And I certainly don’t want to disable Jetpack since I really use a lot of those features as well.

    Currently, my blog host is giving me troubles and I am unable to reach it for further troubleshooting at the moment. I have submitted a ticket and hopefully it will come back up soon.

    Plugin Contributor Jeremy Herve


    Jetpack Mechanic 🚀

    I wanted to have another look at your site, but it seems to be down at the moment:

    I would recommend that you tyr to deactivate all plugins, one at a time, in order to find out if one of them causes the conflicts.

    Thank you.

    i am experiencing the same issues. Did you find that this problem is plugin or theme related?

    After testing i did find that it was the combination of a particular plugin and theme. The next step for me is finding out what to change to fix the problems…

    I have not. Unfortunately, my blog host seems to be having issues with my site and it has been offline for several days so I am unable to troubleshoot further at the moment

    I would recommend posting your blog URL here so Jeremy can have a look.

    The problems go away as soon as I disable the Jetpack plugin. No other plugin seems to affect the AJAX of SimpleDark

    Plugin Contributor Jeremy Herve


    Jetpack Mechanic 🚀

    @enderoe As @elfman72 suggested, could you post your site URL here os I can have a look?

    If you want it to remain private, you can also contact us via this contact form:

    @elfman72 Could you post again here as soon as you site is back?


    Thanks Jeremy,

    My blog is back up. Turns out the theme that you had edited was causing the problem. Not sure why really but reverting back to the original SimpleDark theme at least made the site available again. The AJAX issue is still present however.

    Really appreciate your willingness to troubleshoot this.

    Plugin Contributor Jeremy Herve


    Jetpack Mechanic 🚀

    Could you walk me through the steps you followed to install the modified theme? I just installed it on a test blog of mine, everything seems to be working properly.

    Another solution would be to make the changes yourself: try to go to Appearance > Editor in your dashboard, and look for the functions.php file in your theme.

    Then, remove the 2 lines marked by a (-) symbol here:

    You can then add the line marked by a (+) to add jQuery back to your theme.

    I also noticed other problems with the theme: I created a new issue to warn the theme author, and you can download an updated version of the theme here:
    Try replacing your current theme with that one, and let me know if this helped.

    Thanks Jeremy.

    The steps I took was that I unzipped your file to my downloads directory. Then I uploaded the entire SimpleDark-1.6.4 folder to wp-content>themes. I then went into the WordPress Admin section. Saw 1.6.4 there and activated it. I am guessing that when I first installed it, I had caching turned on so things didn’t start “failing” for a bit.

    Okay, so I have tried both methods. I edited the functions.php file per your directions. The theme loads but the AJAX issues seem to still be present. I also downloaded your version, unzipped, renamed folder to simpledark2, uploaded to wp-content\themes. Activated the theme. Page loads but AJAX issues are still present.

    To double check, I tested by deactivating JetPack again, AJAX issues go away. Reactivating Jetpack causes the AJAX features to stop. So strange. I currently have all Plugins disabled except for Jetpack and the AJAX issues are still there.

    So where it stands now, is that I have your modified SimpleDark theme activated and the Jetpack plugin activated and that is it.

    Hope this helps in further troubleshooting.

    Plugin Contributor Jeremy Herve


    Jetpack Mechanic 🚀

    It does help a lot, thank you!

    For some reason, your site still shows an older version of the theme.

    I have created a new version, and this time I have also changed the version number in style.css, so you can easily see if your site uses the latest version of the theme.
    Could you try to download this new version, and install it?

    Once you have done so, navigate to style.css to check the version number. The file is currently located here:

    The new version number should read:

    Let me know if this helps.

    Success! Mostly…

    I went ahead and simply deleted the old themes for good measure. Downloaded yours and activated it. Works perfectly! Reads and AJAX appears to be working fine! Yes!

    The site still seems to only get about 3 out of every 5 refreshes resolving. I have a feeling that is due to one of the other plugins that I use (IMDB Link Transformer). That plug in is on the slow side but that doesn’t pertain to Jetpack at all. I will be engaging that author as well or may ditch that plugin altogether.

    So thank you so much Jeremy. Really appreciate the time and effort on my piddly little blog. Love your plugin and the features it adds to my site. Can’t recommend it highly enough.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘AJAX features stopped working’ is closed to new replies.