• Resolved quixotica

    (@quixotica)


    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.
    • This topic was modified 9 years, 9 months ago by quixotica.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    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

    (@quixotica)

    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

    (@quixotica)

    What is the best version of php to be running? Anything else I should ask them to upgrade?

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    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

    (@quixotica)

    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.