Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82324

SearchPanes: Why am I getting "Uncaught TypeError: Cannot read property 'fn' of undefined"?

$
0
0

Getting this message when page loading:
* "Uncaught TypeError: Cannot read property 'fn' of undefined"
* at dataTables.searchPanes.min.js?ver=5.3.2:23
* at dataTables.searchPanes.min.js?ver=5.3.2:86

Seems to be throwing the error around: "var b=$.fn.dataTable..."

Table is being displayed but no 'panes' just the errors as above.

I'm using dataTables in a WordPress environment - where all is working fine including with several other extensions.

I'm pulling in the CDN files as per docs:
wp_enqueue_script('datatablessearchpanes', 'https://cdn.datatables.net/searchpanes/1.0.1/js/dataTables.searchPanes.min.js');
wp_enqueue_style('datatablessearchpanes', 'https://cdn.datatables.net/searchpanes/1.0.1/css/searchPanes.dataTables.min.css');

My dom setting: 'Pfrtp'

My hunch is this is something to do with loading jquery (conflict with WP!?) but if that's the case why is it all fine with other extensions (select, buttons, responsive) and dataTables in general?

Most grateful for any pointers on how to resolve!

Debug code: ekokaw


Viewing all articles
Browse latest Browse all 82324