Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataTables in Discussion error #46

Open
colinmccann opened this issue Nov 7, 2011 · 1 comment
Open

dataTables in Discussion error #46

colinmccann opened this issue Nov 7, 2011 · 1 comment
Assignees

Comments

@colinmccann
Copy link
Contributor

Once Discuss has been clicked (and whether or not the user is still in the Discussion tool), every time a new tab is clicked, user sees:

DataTables warning: Requested unknown parameter '2' from the data source for row 0

@colinmccann
Copy link
Contributor Author

This took me a bit to track down, but I think I've found it... just not sure how to address it.

Matt, I believe this error comes from a change you made on Oct 14 (!).

The error you get is:
DataTables warning: Requested unknown parameter '2' from the data source for row 0

From datatables.net:
"This message means that DataTables is looking at your data source for array position 0 and not finding it. Why that is depends on your usage of DataTables. You'll need to post your JSON data and your DataTables initialisation code - or even easier a link."

I assumed it was because Matt had 4 visible columns but 5 pieces of data (the last is ID). Removing did not help tho. Matt, I tried to do this with another table and was unable... maybe you could show me how hid the column (I've looked in CK.js, and still don't understand). Would help to use the id, as opposed to the content string, since that is less likely to be unique.

ANYways, I started going further back in github, and noted that you added a field type (keywords) a couple weeks back. However, some of these end up empty... but only on proto - there is at least one autotagged keyword on aardvark. But on proto, there are a bunch of notes from before keywords existed, and that therefore have a null/undefined keyword entry, which dataTables doesn't handle gracefully.

Ok, so upshot. I think we can just delete the old notes from proto and we'll never see this issue again. Agreed?

@ghost ghost assigned colinmccann Nov 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant