• Resolved ajcke

    (@ajcke)


    I’m trying to only import the categories. I was able to do this a few months ago on another site, but am failing this time around. I have a csv file with one column of graduation year categories. Looks like this.

    graduation-year
    Class of 1885
    Class of 1886
    Class of 1887
    Class of 1888
    Class of 1889
    Class of 1890
    Class of 1891
    Class of 1892

    Category is the only required field on the Manage Forms Field settings page.

    Below is the error received when trying to import.

    Fatal error: Call to a member function get_id() on a non-object in /../plugins/business-directory-plugin/api/listings.php on line 975

    https://wordpress.org/plugins/business-directory-plugin/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi ajcke,

    Well, I’m not sure what could be happening here, but let’s start with some questions.
    – Version of BD?
    – Version of WP?
    – Version of PHP?
    – Can you provide a sample CSV file (3 lines or less) that shows this problem?
    – What are your import settings? (Screenshot would be best, use http://imageshack.us if you need to)
    – What are your form fields settings (again, a screenshot is best)

    One possible problem is that your CSV file MUST include all columns, even if they are optional. You can leave the columns blank, but you must include them.

    Thread Starter ajcke

    (@ajcke)

    WP: 3.8
    BD: 3.3
    PHP: 5.3.3

    I added all the columns back to the csv file. All the columns are blank except for the category column. I am not getting the fatal error message anymore when importing. Now the status is…
    130 rows rejected
    Error: Missing required field: last-name

    screenshot
    csv file

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Since you didn’t include the form field screenshot, I’ll take a stab at what might be the issue here.

    You need to set the Last Name field to be not required, and then your import should succeed. Try that and report back if it’s not working.

    Thread Starter ajcke

    (@ajcke)

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Yep–there are 4 required fields in there–CSV import is importing listings, not just categories. You need to use it for the intended purpose, which means putting data in those fields that are all marked “Required”.

    Just importing categories is something we don’t support through CSV right now. The only way to get it is to have a “fake listing” for each category, import those fake listings (which will bring in the categories as well), and then delete the listings.

    Thread Starter ajcke

    (@ajcke)

    That must have been how I accomplished this on the other site.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Import Fatal Error’ is closed to new replies.