I'm a user, not a developer. Need help with "requested unknown parameter" error.
I'm a user, not a developer. Need help with "requested unknown parameter" error.
Unfortunately, I don't know much about the coding and can't really access it due to my permissions with our site. However, I was able to upload several events via CSV upload just fine, but when I attempt another import with another CSV file with identical columns to import, I get the following error:
DataTables warning: table id=DataTables_Table_0 - Requested unknown parameter 'https://www.holidayworld.com/wp-content/uploads/Santa-Website-Header.jpg' for row 0, column 6. For more information about this error, please see http://datatables.net/tn/4
Clicking out of the error message and previewing the data, the first column (start date) is missing from the preview and all the data shifted -1 column.
Any help in plain English would be appreciated.
Working CSV: https://www.holidayworld.com/wp-content/uploads/Show-Schedule-Import-2023.csv
Erroneous CSV: https://www.holidayworld.com/wp-content/uploads/holidog-friends.csv
This question has an accepted answers - jump to answer
Answers
The working file includes a header row. The non working file doesn't.
To expand upon that, whatever CSV parser you are using will be using the first row to assign a name to the object properties that it creates for each row. e.g. you would use
row['Start Date']
to get the data from the first column. But that information isn't present in the second CSV file (although it still does the same thing - resulting in the property names just bing the first row of data!).Allan
My goodness! It's usually the simple things! This worked perfectly.
THANK YOU!