Title: Error on CSV Import in utils.php
Last modified: September 12, 2016

---

# Error on CSV Import in utils.php

 *  Resolved [quixotica](https://wordpress.org/support/users/quixotica/)
 * (@quixotica)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-on-csv-import-in-utils-php/)
 * I have this installed on a GoDaddy server and cannot get the import to work. 
   It works fine on all other servers – GoDaddy said I need to contact the developer.
   I truncated the paths in the post below for security.
 * The errors are as follows: Warning: fwrite(): supplied argument is not a valid
   stream resource in /…/wp-content/plugins/business-directory-plugin/core/utils.
   php on line 610
 * Warning: fseek(): supplied argument is not a valid stream resource in /…/wp-content/
   plugins/business-directory-plugin/core/utils.php on line 611
 * Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /…/wp-
   content/plugins/business-directory-plugin/core/utils.php on line 613
 * Warning: fclose(): supplied argument is not a valid stream resource in /…t/wp-
   content/plugins/business-directory-plugin/core/utils.php on line 615
 * An error was detected while validating the CSV file for import. Please fix this
   before proceeding.
    Invalid header
 * I have used the headers from the CSV example, and used a downloaded export to
   create the import file.
 * I have tried uninstalling and reinstalling the plugin.
    -  This topic was modified 9 years, 9 months ago by [quixotica](https://wordpress.org/support/users/quixotica/).
    -  This topic was modified 9 years, 9 months ago by [quixotica](https://wordpress.org/support/users/quixotica/).

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

 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-on-csv-import-in-utils-php/#post-8175307)
 * Hi quixotica,
 * Sorry that you ran into issues here!
 * Can you tell me a bit more?
    – What version of WP are you running here? – What
   exact version of BD? (number, please) – What version of PHP are you running here?
   It looks like it may be an unsupported one–like 5.2 or something. You can find
   this under Directory Admin->Debug.
 * Please let me know.
 *  Thread Starter [quixotica](https://wordpress.org/support/users/quixotica/)
 * (@quixotica)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-on-csv-import-in-utils-php/#post-8175537)
 * Aha – it does look like it’s 5.2 – I will contact the host and see about an upgrade!
 * BD version 4.1.1
    BD database revision (current) 14 BD database revision (installed)
   14 Table check OK Main Page 253 (publish) WordPress version 4.6.1 OS Linux 2.6.32-
   604.30.3.lve1.3.63.el6.nfsfixes.x86_64 x86_64 PHP version 5.2.17 MySQL version
   5.5.43-37.2-log SQLite version 2.8.17 cURL version 7.48.0 cURL SSL library OpenSSL/
   1.0.1e Test SSL setup Test SSL setup…
 *  Thread Starter [quixotica](https://wordpress.org/support/users/quixotica/)
 * (@quixotica)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-on-csv-import-in-utils-php/#post-8175544)
 * What is the best version of php to be running? Anything else I should ask them
   to upgrade?
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-on-csv-import-in-utils-php/#post-8175790)
 * 5.6 is ideal–widely supported and new enough to be workable. If you can’t go 
   that high, anything between 5.3 and 5.5 is better than 5.2. Avoid PHP 7 as not
   everything supports it (we do, but I can’t speak for all plugins you have installed)
 *  Thread Starter [quixotica](https://wordpress.org/support/users/quixotica/)
 * (@quixotica)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-on-csv-import-in-utils-php/#post-8175849)
 * I was able to update to 5.4 and that fixed the importing issue! Thank you so 
   much for your quick response and putting me on the right track!

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

The topic ‘Error on CSV Import in utils.php’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [quixotica](https://wordpress.org/support/users/quixotica/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/error-on-csv-import-in-utils-php/#post-8175849)
 * Status: resolved