JavaScript error after Foundation 6.14 update

Are you getting this error in the browser console when using Foundation 6.14+?

TypeError: e.indexOf is not a function. (In 'e.indexOf(" ")', 'e.indexOf' is undefined)

The reason is that Foundation 6.14+ forces your site to use jQuery 3. Some old stacks have never been updated to work with jQuery 3. However, this version of jQuery was released 8 years ago. Developers should no longer be requiring jQuery 2.

There is a bandaid available for you though. In the Site Styles Features section, you can add the jQuery Legacy Support stack. Your page should work. I would also recommend that you identify the stack that is causing the issue. Then either find a newer alternative or contact the developer for an update.

7
9 replies