• Resolved looee

    (@looee)


    Hello,

    I can not import any csv file, even one that is exported from the plugin!?

    I export a file from gwolle-gb.
    I do not edit or amend this file.
    I try to import the same file, import fails.
    I try to delete entries and then import file, import fails.
    Tested with wordpress 4.2.5 and 4.3.1

    Home URL: https://bnbinfrance.pipeten.co.uk
    Site URL: https://bnbinfrance.pipeten.co.uk
    Ninja Forms Version: 2.9.28
    WP Version: 4.3.1
    WP Multisite Enabled: No
    Web Server Info: Apache
    PHP Version: 5.2.17
    MySQL Version: 5.5.45
    PHP Locale: decimal_point: .
    thousands_sep:
    int_curr_symbol:
    currency_symbol:
    mon_decimal_point:
    mon_thousands_sep:
    positive_sign:
    negative_sign:
    WP Memory Limit: 40 MB
    WP Debug Mode: No
    WP Language: Default
    WP Max Upload Size: 256 MB
    PHP Post Max Size: 256 MB
    Max Input Nesting Level: 64
    PHP Time Limit: 120
    PHP Max Input Vars:
    SUHOSIN Installed: No
    SMTP: localhost
    smtp_port: 25
    Default Timezone: Default timezone is UTC
    Plugins
    Installed Plugins: Booking.com Official Search Box by Strategic Partnership Department at Booking.com version 1.5,
    Duplicate Post by Enrico Battocchi version 2.6,
    Fusion Core by ThemeFusion version 1.7.3,
    Google Language Translator by Rob Myrick version 5.0.01,
    Gwolle Guestbook by Marcel Pol version 1.5.4,
    Ninja Forms by The WP Ninjas version 2.9.28,
    Ultimate Responsive Image Slider by Weblizar version 2.3,
    Widget Logic by Alan Trewartha version 0.57,
    WP Google Map Plugin by flippercode version 3.0.4

    https://www.ads-software.com/plugins/gwolle-gb/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi, I tested on my install with PHP 5.2, and it just works here.
    Could you send the CSV to [email protected] ?
    And what is the error message you get?

    Thread Starter looee

    (@looee)

    Hi Marcel,

    I sent over the file.
    The error message is: error is “Invalid file format. ()”

    Bit of a strange one. I have not amended, edited or resaved the csv file.

    I want to transfer some old guestbook entries from another website. I understand that using a Excel etc, will change the csv file, and will need to edit in a text editor and keep the same format, timecode etc.

    Look forward to your help

    Cheers
    Louis

    Plugin Author Marcel Pol

    (@mpol)

    Strange, when it gives that error on PHP 5.2, it should say:
    “Invalid file format. (‘text/csv’)” because that is what is simple set on that version. I suspect you have a PHP 5.2 that also has a finfo_open() installed with pear or something else.

    What you can do is on admin/page-import.php change line 195 from:
    } else {
    to
    // } else {
    It will then always set the mimetype to text/csv and it should import normally (here it does).

    Thread Starter looee

    (@looee)

    Hi Marcel,

    Thanks for the update. Would updating the php to a different version help? What version of php would be best?

    Cheers
    Louis

    Plugin Author Marcel Pol

    (@mpol)

    Yes, that would definitely help. 5.2 is deprecated and considered insecure. The same is true for 5.3, and even 5.4 :).
    Contact your hosting provider, they should be able to upgrade.

    BTW, I’m planning to release a new version today, with a better workaround for PHP 5.2 where finfo_open() is also available.
    Could you test if that works? It does for me, but your install is different.

    Thanks, this helped me to solve the same problem.

    The line 195 admin/page-import.php is now on line 210 in the newest version.

    Plugin Author Marcel Pol

    (@mpol)

    Hi, you have a PHP 5.2 with finfo_open available?
    It should just work now, but it doesn’t for you? Can you see why or how?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Import Export not working’ is closed to new replies.