Trying to Upload File – NO FUN!

This topic contains 5 replies, has 2 voices, and was last updated by  coach dori 4 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #518509

    coach dori
    Expired Member
    Post count: 18

    Hi! I’ve been through numerous support articles and keep finding something new to try. Now, it looks like the last thing is to load a plugin that has something to do with “mime.”

    That plugin says it hasn’t been updated for 3 years, so I thought it would be better to have you look at my test file before going there.

    Here is the error I’m getting when trying to upload the file:

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

    I’ll upload the file below so hopefully you’ll find that the file isn’t correct somehow.

    FYI – It has all the columns that were in your sample. It’s saved as a CSV UTF-8 version (which I read in your support somewhere). It does NOT have the latitude and longitude since it sounded like the latest version can fill that in on its own – which is good because the bulk geocode site you recommended is offline indefinitely.

    Thank you for your help! 🙂

    #518515

    Alex Rollin
    Moderator
    Post count: 27815

    You can also use the code snippet here, instead of the Disable Real Mime Type plugin. They both do the same thing.

    The post category in your sheet is incorrect, it should be the category ID.

    There may be other problems. The best approach is to add a listing, then export, then merge your data into the sheet you get from the export.

    https://wpgeodirectory.com/docs-v2/geodirectory/settings/import-export/#recommended

    For the snippet to allow CSV upload see:
    https://wpgeodirectory.com/docs-v2/geodirectory/settings/import-export/#not-a-valid-csv-file

    #519338

    coach dori
    Expired Member
    Post count: 18

    Hi Again!

    Okay, using the “Disable Real Mime Check” plugin and importing the same file that I exported (with 3 test listings), I was able to start loading the file without the array error.

    Now, here are the errors I got this time:

    Total 3 item(s) found.

    3 / 3 item(s) could not be added due to blank title/invalid post type/invalid characters used in data.

    Row 2 Error: Google geocode failed: REQUEST_DENIED
    Row 3 Error: Google geocode failed: REQUEST_DENIED
    Row 4 Error: Google geocode failed: REQUEST_DENIED’

    ************************

    The only things I changed from the export file was I deleted the ID – which I thought I read needed to be done. I also deleted the latitude and longitude since I read that your V2 system would fill it in.

    Please let me know what I should do next. Thank you.

    #519339

    coach dori
    Expired Member
    Post count: 18

    P.S. I didn’t “delete” the latitude and longitude from the new listings, since I didn’t have them. But, it was my understanding with the new V2 it was okay not to have them. Thanks again.

    #519352

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You will need a Google Maps API Geocoding key. You can add that in the GD general settings

    GD – Settings – General – Show advanced – Geocoding key

    https://wpgeodirectory.com/docs-v2/integrations/google/#key-2

    Request denied means that your site and the key do not have access to the geocoding API, that you have not allowed access in the API console.

    #519461

    coach dori
    Expired Member
    Post count: 18

    Thank You Alex!

    I don’t know what the settings mean, but I made the settings like you have them in the docs page you gave me and it worked.

    Thank you for your help! 🙂

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

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

Open Support Ticket