Trying to Upload File – NO FUN!
This topic contains 5 replies, has 2 voices, and was last updated by coach dori 6 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
November 24, 2019 at 9:47 pm #518509
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! 🙂
November 24, 2019 at 9:55 pm #518515You 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-fileDecember 1, 2019 at 4:49 am #519338Hi 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.
December 1, 2019 at 4:54 am #519339P.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.
December 1, 2019 at 6:27 am #519352Hello,
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.
December 2, 2019 at 6:11 am #519461Thank 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! 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket