• Resolved stefandejong1980

    (@stefandejong1980)


    Hi Hissy,

    First of all many thanks for making such a great plugin available for free.

    After testing and changing last week I was ready to do a bulk page creation, up to 10 pages were created without any hassle. But unfortunately I get this message since this morning:

    Note: Please include post_type value if that is possible.
    An error occurred while saving the post to database.
    Note: Please include post_type value if that is possible.
    An error occurred while saving the post to database.

    The only thing that has been changed since yesterday is that there was an automatic WordPress upgrade by my hosting company to version 3.8.2.

    By coincidence is this upgrade related to the error I get?

    Many thanks in advance for your help!

    Best regards,

    Stefan

    https://wordpress.org/plugins/really-simple-csv-importer/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Takuro Hishikawa

    (@hissy)

    I tested importing with my plugin on WP 3.8.2, but it works. Could you show me some part of your csv data ?

    katanaz

    (@katanaz)

    Please include post_type value if that is possible.

    That Happens when i try to import the ods sample and any other ods.

    Plugin Author Takuro Hishikawa

    (@hissy)

    Sorry, an example OpenDocument Spreadsheet file is just for use of create CSV file, not for import directly. If you want to use ods file, you should export as CSV before importing.

    katanaz

    (@katanaz)

    but it also happens when i try to import csv. atm only sample csvs working. changing anything on the csv, leads to:

    Note: Please include post_type value if that is possible.
    An error occurred while saving the post to database.

    heres a csv example which leads to this

    "post_type","post_status","post_title","post_content"
    "post","draft","post1","content of , post1"
    "post","draft","post2","content of , post2"
    "post","draft","post3","content of , post3"

    katanaz

    (@katanaz)

    i figured out the problem:
    the problem happens with excel 2013. somehow excel appends some more "
    than needed when you save. opening the edited sample with notpad will show that all positions have 2 or 3 of " before and after every position. removing them with notepad makes the csv importable without errors.

    Plugin Author Takuro Hishikawa

    (@hissy)

    Thanks to report the problem. MS Excel often creates invalid csv file, so I recommend to use LibreOffice (it’s open source!) and manage your data with ods file. It has completely valid export options to create safe csv file.

    Plugin Author Takuro Hishikawa

    (@hissy)

    Well, stefandejong1980 and katanaz are different guys? Can I change this topic to resolved?

    katanaz

    (@katanaz)

    yes sir!
    gr8 plugin keep going bro

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error: include post_type’ is closed to new replies.