Console js error
-
I recently started using Autoptimize (AO) and noticed several JS console error, like jQuery.js is not defined. I excluded that file from AO and the error disappeared.
While checking for errors, I noticed all the pages with tables were just fine except for the page linked here. That page gives an error. I saw that
jquery.datatables.min.js:
was involved, so I excluded it from AO as well. But the error still occurs.At right of the error is:
jquery.datatables.min.js:37:476
and the error is like this:Uncaught TypeError: n is undefined jQuery 12 Ka R oa map map map oa e q each each q <anonymous> https://forestpathology.org/wp-content/cache/autoptimize/autoptimize_<random characters>.php:24 jQuery 8 i fireWith ready J promise <anonymous> <anonymous> <anonymous>
I see in the page source that .js is from Tablepress:
<script src='https://forestpathology.org/wp-content/plugins/tablepress/js/jquery.datatables.min.js?ver=1.12' id='tablepress-datatables-js'></script> <script type="text/javascript"> jQuery(document).ready(function($){ $('#tablepress-1').dataTable({"order":[],"orderClasses":false,"stripeClasses":["even","odd"],"pagingType":"simple"}); }); </script>
I noticed, of all the pages with tables that I checked, this page is the only one that loads that .js file. The error occurs still with all other plugins disabled. Is the table corrupt or something? There are actually 3 tables on that page and I don’t know which might be the problem.
After all this, I have to say the tables seem to display fine. Still, errors are wrong ?? Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Console js error’ is closed to new replies.