Title: Import Fatal Error
Last modified: August 21, 2016

---

# Import Fatal Error

 *  Resolved [ajcke](https://wordpress.org/support/users/ajcke/)
 * (@ajcke)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/import-fatal-error-1/)
 * 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/](https://wordpress.org/plugins/business-directory-plugin/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/import-fatal-error-1/#post-4866835)
 * 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](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](https://wordpress.org/support/users/ajcke/)
 * (@ajcke)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/import-fatal-error-1/#post-4866841)
 * 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](http://hn.k12.oh.us/wp-content/uploads/2014/04/import.png)
    [csv file](http://hn.k12.oh.us/wp-content/uploads/2014/04/import.csv)
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/import-fatal-error-1/#post-4866843)
 * 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](https://wordpress.org/support/users/ajcke/)
 * (@ajcke)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/import-fatal-error-1/#post-4866846)
 * [form field screenshot](http://hn.k12.oh.us/wp-content/uploads/2014/04/formfield.png)
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/import-fatal-error-1/#post-4866873)
 * 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](https://wordpress.org/support/users/ajcke/)
 * (@ajcke)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/import-fatal-error-1/#post-4866896)
 * 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.

 * ![](https://ps.w.org/business-directory-plugin/assets/icon-256x256.png?rev=2901888)
 * [Business Directory Plugin - Easy Listing Directories for WordPress](https://wordpress.org/plugins/business-directory-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/business-directory-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/business-directory-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/business-directory-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/business-directory-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/business-directory-plugin/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [ajcke](https://wordpress.org/support/users/ajcke/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/import-fatal-error-1/#post-4866896)
 * Status: resolved