Data Table Unknown Parameter Error
-
I am sure this is an easy question, I just do not have the computer savy to wade through the datatables.com website. Is this a quick fix?
DataTables warning: table id=tablepress-1 – Requested unknown parameter ‘5’ for row 1.
Thank you so much for any help. The website is http://www.fascinatingnouns.com
PS I am a donator to your plugin 🙂
Dan
-
I am also getting long synopsis links (ep 36 is an example) instead of the code doing what it is supposed to. Is this related?
Hi,
thanks for your post, and sorry for the trouble.
Also sorry for the late answer. I was on vacation and didn’t have a chance to reply earlier.Mainly, the reason for this is some broken HTML code in the fourth column of table 1. The HTML code for the images is not finished properly (it has to look like
<img src="..." />which breaks the HTML for the table.
You will need to fix that for all rows.Regards,
TobiasHey Tobias,
Thank you for the response. I am not sure that is it. I tried closing it like you said, and it screwed everything us. I am no programmer, so I can’t be 100% sure I did it correctly.
Nonetheless, it APPEARS perfectly. There is no problem with the way it looks. I am just getting that error when I load up the table to edit it.
Hi,
while the table might look correct, it isn’t. Table 1 has 6 columns on the “Edit” screen, but only 5 on the page. That is the result of that invalid HTML for the images in column 4.
To verify this assumption, you could temporarily hide the column with the images (by clicking the checkbox below it) and then using the “Selected columns: Hide” button.
After that, the error message should not disappear.Regards,
TobiasThank you,
I did what you suggested, and what happened was column 4 disappeared, and columns 3 and 5 smashed together. Now originally when I started using Tablepress, this was a major problem, so I added an empty Column (4) and put a title on it. For some unknown reason, when viewed on the website, this allowed the content under column 5 to be seen under column 4.
Here is some more info for trouble shooting: Column 4 does not have any images in it. Only column 3 and 5 do. When I hid column 3, the warning went away. What can I do to make it go away but still keep the column?
Hi,
ok, that then means that the erroneous HTML code is in column 3 and not column 4 (my bad).
I suggest that you check all HTML in that column for validity, i.e. that the HTML tags are closed properly.
That weirdness with a column appearing under the wrong column title is all related to this, as the incorrect HTML throws off the rendering process in the browser.
Regards,
TobiasThank you so much for this reply.
Let me say this as well: columns 5 & 6 do the same thing with regard to the content being shifted from the header. Is this a ripple effect from column 3?
I should also mention that I am not a coder, and I don’t really have any idea what you are talking about when you talk about tags being closed properly. This Data error just starting coming up in the last few weeks, so I have no idea how to check that. I compared the script to my original script, and they are exactly the same.
This is what the script looks like. Does the problem jump out at you?
<img class=”size-full wp-image-312 alignnone” dir=”ltr” title=”…” onmouseover=”this.src=’http://fascinatingnouns.com/wp-content/uploads/2013/07/description_i2hover.png'” onmouseout=”this.src=’http://fascinatingnouns.com/wp-content/uploads/2013/07/description_i-2.png'” alt=”description_i 2″ src=”http://fascinatingnouns.com/wp-content/uploads/2013/07/description_i-2.png” width=”16″ height=”15
Hi,
yes, this most likely is a ripple effect.
Where did you get that script/HTML code for the image from?
The main problem is that this<img>tag is not “closed”, i.e. the last line above should bewidth="16" height="15 />Without that extra
/>, the browser can basically not distinguish the end of the code for the image from the end of the code of the table cell (which also ends with a>, as all HTML tags do).So, from what I can see, you’ll simply have to append
/>to all occurences of your image script that don’t already have that at the end. Does this make sense?Regards,
TobiasThank you Tobias for all your help.
I did what you instructed, and there was definitely a ripple effect, but not a desirable one. Now I have several new problems.
First of all, I am still getting the Data Table error, but the row the error is in keeps switching.
Secondly, all of a sudden the first cell with says “Oak Island’s Masonic Connections’s”, the “Oak Island” now links to the page I created for Oak Island, BUT I didn’t code it to do that, nor is there any code in the cell! What the?!
Thirdly, the “Listen Here” column now only shows like 3 of the 42 players. All the rest of the episodes now won’t show on the webpage.
Take a look for yourself:
http://fascinatingnouns.com/episode-guide/All I did was add the /> to the end of the line, and add the close quotation to the 15.
Hi,
ok, at this stage, it might be a good idea if I could take a look at this directly on your site. Could you therefore please create a temporary admin account for me and send me the details via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly. Thanks!
Regards,
Tobias
The topic ‘Data Table Unknown Parameter Error’ is closed to new replies.