Error message importing listings

This topic contains 4 replies, has 4 voices, and was last updated by  Pablo 5 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #463193

    Bennie Forister
    Expired Member
    Post count: 50

    I am using Open Office and getting the following message when attempting to import my listings in a csv file type.

    Array( [error] => Sorry, this file type is not permitted for security reasons.)

    I am guessing that the cvs file type needs to be added to WordPress but everything I have tried has failed. Since import of listings is a crucial aspect of GeoDirectory this should have been addressed in your core plugin and wasn’t. How do I fix this issue?

    I created a child theme with what I think is the correct script to add the csv file type but that is not working either. I am attaching it.

    #463200

    Kor
    Moderator
    Post count: 16516

    Hi Bennie,

    Thanks for your post. The error is from a bug in WP. Some people have had success with adding this plugin, to use just until WP fixes the error:
    https://wordpress.org/plugins/disable-real-mime-check/

    #463263

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #463264

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #464562

    Pablo
    Expired Member
    Post count: 2

    Hello!
    Had the same issue @Bennie told above. It is a WP bug as @Kor wrote.
    I fixed it modifying this line in the functions.php file inside /wp-includes/
    look for the pink line and replace it with the green line.
    https://core.trac.wordpress.org/attachment/ticket/45615/csv_mime_type.diff
    Hope it helps!

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket