hello , I have this type of error in my database in one page it's working but in another its not
hello , I have this type of error in my database in one page it's working but in another its not
jquery.dataTables.min.js:91 Uncaught TypeError: Cannot read properties of undefined (reading 'mData')
at HTMLTableCellElement.<anonymous> (jquery.dataTables.min.js:91:431)
at Function.each (jquery-1.11.3.min.js:2:2975)
at m.fn.init.each (jquery-1.11.3.min.js:2:835)
at HTMLTableElement.<anonymous> (jquery.dataTables.min.js:91:386)
at Function.each (jquery-1.11.3.min.js:2:2975)
at m.fn.init.each (jquery-1.11.3.min.js:2:835)
at m.fn.init.m [as dataTable] (jquery.dataTables.min.js:84:98)
at S.h.fn.DataTable (jquery.dataTables.min.js:162:330)
at HTMLDocument.<anonymous> (mafqodis:847:56)
at j (jquery-1.11.3.min.js:2:27309)
Answers
It's probably because the column count is different in the HTML, the JS or the data - but without seeing the issue it's hard to say.
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Colin