• Resolved psike64

    (@psike64)


    Hi, I have problems to import csv file for matches. The error is:

    “Imported csv file should contain 5 columns (header contains 1 columns). See help page for the correct format.”

    the file seems to me to be correct, can you help me?

    Here is the file

    campionato

    Thanks a lot!

    • This topic was modified 5 years, 7 months ago by psike64.
    • This topic was modified 5 years, 7 months ago by psike64.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AntoineH

    (@antoineh)

    Hi,

    Standard delimiter for the columns is a semicolon and your file uses a comma, that’s the reason why it only detects one column an a row. But you can change this by adding the following to your wp-config.php.

    define( 'FOOTBALLPOOL_CSV_DELIMITER', ',' );

    Then it should work just fine.

    Thread Starter psike64

    (@psike64)

    Thanks for the reply!
    I modified the wp-config file as you suggested but it still didn’t work.
    Then I replaced the commas with semicolons in the CSV file and finally the import was successful!

    Plugin Author AntoineH

    (@antoineh)

    That’s weird ?? I did the exact same thing and it worked on my install.
    Anyway, glad to hear it’s working now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘import csv’ is closed to new replies.