Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.5.2, error, fatal, javascript, minification, W3TC
- This topic has 7 replies, 2 voices, and was last updated 10 years, 9 months ago by
Steven Zahm.
-
AuthorPosts
-
10/27/2015 at 6:13 pm #352016
Dwight Bailey
ParticipantHi, Steve.
This was working last time I checked, but today I see that on https://newsite.chem.ufl.edu/faculty-and-research/ the ‘Show Details’ buttons no longer open the bios. We have the latest WordPress version (4.3.1) and the latest Connections version (8.5.2.). I logged into my account and downloaded c-map again, but it is the same version we were using:
= 5.0 08/17/2015 =I’m not sure what we’ve done elsewhere that might have ‘broken’ this feature.
Do you have any ideas?Thanks!!
Steve K. (for Dwight:).10/28/2015 at 10:21 am #352154Steven Zahm
Keymaster@ Dwight
It appears you are using W3 Total Cache (W3TC) and are using its javascript minification/concatenation feature. This appears to breaking a good bit of the javascript that is supposed to be running on the site including the scripts for cMap template. This is a great and very powerful feature but it also very advanced that requires a lot of tweaking to get it just right… I highly suggest you disable this feature, especially if your are using in auto mode. After you do, things will continue to work again.
Hope that helps!
10/30/2015 at 9:57 am #352583Dwight Bailey
ParticipantThank you so much for your super-speedy response, Steve.
I disabled W3TC, but the problem persists. I’m wondering if W3TC still is affecting the site even after disabled. But that’s not your problem…I’ll have to look into that, but if you have any other thoughts that would be great.
Thanks again!
Steve K. (for Dwight:)10/30/2015 at 10:25 am #352588Steven Zahm
Keymaster@ Steve
I took another look… it seems that W3TC was not the cause. Looking at the page source, all the javascript file on your site is being loaded via an async request. Open the page in view source and search for this:
asyncScripts =Doing this is fine as long the rest of the scripts/code that depends on the scripts are “aware” of this. But that is not the case, generally isn’t on a WP site. Because these scripts are not immediately available this is cause other script loaded in the page to throw a fatal error. This means on javascript after that fatal error will not be run by the browser. Unfortunately this mean the scripts for Connections.
You can view the errors by loading the page in Chrome, hitting the F12 key and then clicking the Console tab. The two important errors are:
Uncaught ReferenceError: jQuery is not definedUncaught TypeError: $ is not a function
This is happening be cause jQuery is not loaded before being referenced. This is happening because something is moving all the javascript files to an async request.
Hope that helps you track down the issue. Let me know.
10/30/2015 at 10:55 am #352598Dwight Bailey
ParticipantThanks Steve! Very strange, because it was working fine a week ago!!
I’ll have to try and figure out what changed!! Maybe our IT people implemented some other plugin that is doing the ‘asyncScripts’ thing. It certainly gives me more places to look! Thanks!
Steve K (for Dwight:)10/30/2015 at 10:59 am #352621Dwight Bailey
ParticipantActually, I thought it was W3TC inserting that asyncScripts stuff. I’ll have to look further.
10/30/2015 at 11:09 am #352641Dwight Bailey
ParticipantAh, we have 2 other plugins someone installed…Query Strings Remover and Async JS and CSS!
Deactivating those solved it! So now I can work backwords and add things back so as not to break the JS again. Thanks, Steve, you rock!
Steve K. (for Dwight:)
11/02/2015 at 10:31 am #353046Steven Zahm
Keymaster@ Steve
Great to hear you tracked it down.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
