Community Forums › Forums › Archived Forums › General Discussion › Could an older jQuery library really be causing my plugin conflicts?
- This topic has 6 replies, 2 voices, and was last updated 6 years, 4 months ago by JamesBonney.
-
AuthorPosts
-
December 6, 2017 at 7:45 pm #214329JamesBonneyMember
Hello all. I've been wrestling with an issue ever since an old client came back to me and asked me to add some forms to his site. And the problems are just getting worse as I follow the correspondence from the support desk.
Wordpress version: 4.9.1
Genesis version: 2.5.3
Child Theme version: Streamline Pro v1.0.1
Plugins in question:
Custom Contact Forms (v7.8.5 by Taylor Lovett) – Behavior – when submission button is pressed, instead of the success message, the site breaks and the code line that generates the success message appears instead, and you have to use the back button to get back to the site. However, the form does send.
Ninja Forms (v3.2.4) – Behavior – Doesn’t display correctly. Get a “ping” graphic, but form never loads.Where I’m at ...
The helpdesk assistant at StudioPress says it's an issue caused by my website using a "very old version of the jQuery library (1.5.2), while most recent version of WordPress loads v1.12.4”. The assistant says that I should check my Streamline theme files for any custom code which is loading the older script and remove it. I know for a fact that I myself do not and did not have that expertise to alter code (only CSS) when I built the site, so I didn't do it. I tried searching the Internet and it looks like WordPress itself loads its own version of jQuery. Is that right? I have the latest version of WordPress, so it should be running the most compatible version of jQuery (1.12.4?). Could a jQuery issue be the source of my conflicts?Insight would be appreciated. The support desk is trying, but at one response per day, it’s a slow go. Is this the best place to find a possible answer?
http://www.trustinselect.com/a_test_page/December 7, 2017 at 12:42 am #214336Victor FontModeratorYou are definitely loading an older version of jQuery on your site, and yes, it can be the cause of your issues.
WordPress does come with a jQuery library, but the problem you have is that WordPress is not loading its library, because you are loading a jQuery library earlier. The WordPress enqueue function is designed to prevent libraries of the same name loading twice.
The Streamline theme is still available in the download archives. I checked the function file and it does not load jQuery. You may have a plugin overriding the WordPress library. I noticed code loading on your site for plugins that aren't maintained any longer. Perhaps you may want to consider upgrading your site.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?December 7, 2017 at 1:50 pm #214361JamesBonneyMemberThanks for the reply Victor. Am I correct in assuming that loading of a jQuery file can only be done in the functions.php file? Where do I find places that one can be loaded?
Could you elaborate on what you mean by "update your site"? I'm on the current WordPress (4.9.1), and the Genesis framework (2.5.3). Only the child theme is old.
Shouldn't disabling the plugins be enough to stop custom loading of jQuery libraries if an old plugin is the issue? The first thing I tried was to disable all plugins except Custom Contact Forms, but the behavior persisted. The plugin did work when I changed the theme, so I don't know why that happened if a plugin is the issue.
Would it be better to delete the plugins no longer used? Half of the ones on there were not installed by me. I'm assuming there is some bundling going on with the WordPress installation and auto-upgrades. I don't use plugins like Jetpack, Hello Dolly, Multiple Post Thumbnails, or Wiziap, yet they're on there. I don't even know if they're safe to delete.
Regards,
JamesDecember 7, 2017 at 3:16 pm #214364Victor FontModeratorFunctions.php is not the only place that can be loading jQuery. WordPress loads it in it's init process. jQuery can be called from any plugin, any PHP file or even a plugin like Genesis Simple Hooks if you are using it. It can also be hard coded into a file. It can literally be called from anywhere.
When I mentioned upgrade your site, I was referring to your theme. With a theme that old, you are missing the benefits of HTML5.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?December 7, 2017 at 5:06 pm #214371JamesBonneyMemberThanks Victor, I've been considering updating the theme in the hopes that for whatever reason, it might fix my ongoing issues. This whole thing snowballed from a small request. One thing led to another and things just keep adding up as one update after another seemed to do more harm than help to the plugins (now the Genesis slider won't display more than one slide, haha, lucky me).
I don't know the convention for leaving these threads "unresolved", but I plan on updating my progress as I go, so I'll leave it unresolved for the moment if that's ok.
Regards,
JamesDecember 8, 2017 at 7:08 am #214391Victor FontModeratorIf you have specific issues you need resolved as you move forward, it's better to post new topics. Once a thread has rolled past, I rarely visit it again if I think the original question has been answered. Sometimes people post multiple questions in a single thread. This causes frustration because the later questions remain unanswered. As a forum moderator, I'll close a thread to further comment if I see that it's resolved.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?December 15, 2017 at 11:34 am #214583JamesBonneyMemberI took Victor's advice and am upgrading the theme. It fixes my original problems with both the Custom Contact Forms and Ninja Forms plugins.
Regards.
-
AuthorPosts
- The topic ‘Could an older jQuery library really be causing my plugin conflicts?’ is closed to new replies.