Geocoding not working while doing mass import through WP ALL Import
-
Hi Mike,
I am trying to import the items into my listing through WP ALL Import but the geocoding is not working when I import the CSV.
When I go to front end to edit listing and just press save, the Geocoding is working.
But this is not sustaiable for me as I have around 40K listings.I looked at https://github.com/mikejolley/WP-Job-Manager/commit/11ec421e5a7141d7bcab0b1531faf87061eeac73 based on another thread but I am not clear what needs to be done. Kindly advise what should I do so that the locaton gets auto geocoded while import. I am being careful about the map limits…
-
What version of JM are you on now?
I am using listify.
I m on their latest version release.WP Job Manager version – I added WP ALL IMPORT support in 1.19, but you need to ensure you set the _job_location meta data for it to work.
Hi Mike, my version is 1.19.0
I checked _job_location is being filleed out.
It is also getting migrated but geocoding is not happenign. Do I need to provide any API key or sth anywhere.In fact if I go to front end, click on edit listing and I am not making any changes but just saving, the geocoding is happening, but not happenign from back end…
Kindly guide.
After import, go to the ‘custom fields’ section of the job. Screenshot me what fields are there (before saving).
Hi Mike, here is the output from the logfile during import:
=============
Record #15
ACTION: pmxi_before_post_import …
Combine all data for postmycity Bana
…
Find corresponding article among previously imported for postmycity Bana
…
Duplicate post wasn’t founded with unique keymycity Bana - 15
…
CREATINGmycity Bana
Listing
Associate postmycity Bana
with current import …
CUSTOM FIELDS:
– Custom field_job_location
has been updated with value12/153A2, Near Itimad Ud Daulah, Nunihai Road, Yamuna Expressway, Kuberpur, mycity, India
for postmycity Bana
…
– ACTION: pmxi_update_post_meta
– Custom field_phone
has been updated with value+91 9808121777, +91 9808120777
for postmycity Bana
…
– ACTION: pmxi_update_post_meta
– Custom fieldgeolocation_formatted_address
has been updated with value12/153A2, Near Itimad Ud Daulah, Nunihai Road, Yamuna Expressway
for postmycity Bana
…
– ACTION: pmxi_update_post_meta
– Custom fieldgeolocation_city
has been updated with valuefor post
mycity Bana
…
– ACTION: pmxi_update_post_meta
– Custom fieldgeolocation_state_long
has been updated with valuemycity
for postmycity Bana
…
– ACTION: pmxi_update_post_meta
– Custom fieldgeolocation_country_short
has been updated with valueIN
for postmycity Bana
…
– ACTION: pmxi_update_post_meta
– Custom fieldgeolocation_country_long
has been updated with valueIndia
for postmycity Bana
…
– ACTION: pmxi_update_post_meta
– Custom fieldgeolocated
has been updated with value1
for postmycity Bana
…
– ACTION: pmxi_update_post_meta
IMAGES:
– Importing imagehttps://mycdn.com/2e691b7264aeab06773a99b32d6b965e_200_thumb.jpg
formycity Bana
…
– Imagehttps://mycdn.com/2e691b7264aeab06773a99b32d6b965e_200_thumb.jpg
will be saved with namexxxxxrstimg54.jpg
…
– Downloading image fromhttps://mycdn.com/2e691b7264aeab06773a99b32d6b965e_200_thumb.jpg
– Imagehttps://mycdn.com/2e691b7264aeab06773a99b32d6b965e_200_thumb.jpg
has been successfully downloaded
– Creating an attachment for imagehttps://xxxxx.co/wp-content/uploads/2015/01/xxxxxrstimg54.jpg
– ACTION: pmxi_gallery_image
– Attachment has been successfully created for imagehttps://xxxxx.co/wp-content/uploads/2015/01/xxxxxrstimg54.jpg
– Importing imagehttps://mycdn.com/4db29167a4726ed4827f0fe82d27ba67_200_thumb.jpg
formycity Bana
…
– Imagehttps://mycdn.com/4db29167a4726ed4827f0fe82d27ba67_200_thumb.jpg
will be saved with namexxxxxrstimg55.jpg
…
– Downloading image fromhttps://mycdn.com/4db29167a4726ed4827f0fe82d27ba67_200_thumb.jpg
– Imagehttps://mycdn.com/4db29167a4726ed4827f0fe82d27ba67_200_thumb.jpg
has been successfully downloaded
– Creating an attachment for imagehttps://xxxxx.co/wp-content/uploads/2015/01/xxxxxrstimg55.jpg
– ACTION: pmxi_gallery_image
– Attachment has been successfully created for imagehttps://xxxxx.co/wp-content/uploads/2015/01/xxxxxrstimg55.jpg
– Importing imagehttps://mycdn.com/1234344e281f2b04ac8088d0787eeb_200_thumb.jpg
formycity Bana
…
– Imagehttps://mycdn.com/1234344e281f2b04ac8088d0787eeb_200_thumb.jpg
will be saved with namexxxxxrstimg56.jpg
…
– Downloading image fromhttps://mycdn.com/1234344e281f2b04ac8088d0787eeb_200_thumb.jpg
– Imagehttps://mycdn.com/1234344e281f2b04ac8088d0787eeb_200_thumb.jpg
has been successfully downloaded
– Creating an attachment for imagehttps://xxxxx.co/wp-content/uploads/2015/01/xxxxxrstimg56.jpg
– ACTION: pmxi_gallery_image
– Attachment has been successfully created for imagehttps://xxxxx.co/wp-content/uploads/2015/01/xxxxxrstimg56.jpg
– Importing imagehttps://mycdn.com/3f18d22feee275382c5c87b7b7960b22_200_thumb.jpg
formycity Bana
…
– Imagehttps://mycdn.com/3f18d22feee275382c5c87b7b7960b22_200_thumb.jpg
will be saved with namexxxxxrstimg57.jpg
…
– Creating an attachment for imagehttps://xxxxx.co/wp-content/uploads/2015/01/xxxxxrstimg57.jpg
– ACTION: pmxi_gallery_image
– Attachment has been successfully created for imagehttps://xxxxx.co/wp-content/uploads/2015/01/xxxxxrstimg57.jpg
TAXONOMIES:
– Importing taxonomyjob_listing_region
…
– Auto-nest enabled with separator>
…
– Attempted to create parent Listing job_listing_regionIndia
, duplicate detected. Importing Listing to existingIndia
job_listing_region, ID 1239, slugindia
…
– Attempted to create child Listing job_listing_regionmycity
, duplicate detected. Importing Listing to existingmycity
job_listing_region, ID 1240, slugmycity
…
– Creating child Listing job_listing_region for mycity namedKuberpur
…
– Importing taxonomyjob_listing_category
…
– Attempted to create parent Listing job_listing_categoryNorth bhartiy
, duplicate detected. Importing Listing to existingNorth bhartiy
job_listing_category, ID 1149, slugnorth-bhartiy
…
– Attempted to create parent Listing job_listing_categoryChinese
, duplicate detected. Importing Listing to existingChinese
job_listing_category, ID 1120, slugchinese
…
– Attempted to create parent Listing job_listing_categoryContinental
, duplicate detected. Importing Listing to existingContinental
job_listing_category, ID 1121, slugcontinental
…
– Attempted to create parent Listing job_listing_categorydakshin bhartiy
, duplicate detected. Importing Listing to existingdakshin bhartiy
job_listing_category, ID 1154, slugdakshin-bhartiy
…
– Importing taxonomyjob_listing_type
…
– Attempted to create parent Listing job_listing_typeCasual Dining
, duplicate detected. Importing Listing to existingCasual Dining
job_listing_type, ID 1163, slugcasual-dining
…
– Importing taxonomyjob_listing_tag
…
– Attempted to create parent Listing job_listing_tagHome Delivery
, duplicate detected. Importing Listing to existingHome Delivery
job_listing_tag, ID 1248, slughome-delivery
…
– Attempted to create parent Listing job_listing_tagDine-In Available
, duplicate detected. Importing Listing to existingDine-In Available
job_listing_tag, ID 1243, slugdine-in-available
…
– Attempted to create parent Listing job_listing_tagServes Non Veg
, duplicate detected. Importing Listing to existingServes Non Veg
job_listing_tag, ID 1244, slugserves-non-veg
…
– Attempted to create parent Listing job_listing_tagBar Not Available
, duplicate detected. Importing Listing to existingBar Not Available
job_listing_tag, ID 1249, slugbar-not-available
…
– Attempted to create parent Listing job_listing_tagAir Conditioned
, duplicate detected. Importing Listing to existingAir Conditioned
job_listing_tag, ID 87, slugair-conditioned
…
CREATEDmycity Bana
Listing
(ID: 1376)
ACTION: pmxi_saved_post
ACTION: pmxi_after_post_import
=========================As you can see the Custom field
_job_location
has been updated with right address value during upload. Yet, during import it is not getting geocoded auomatically.Please let me know your email address where I can send you the screenshots…
I can see you’ve set geolocated = 1 in the above log. If that field is set, no geolocation is done.
Hi.. I’m having the same problem.. sometimes it chooses to geolocate and sometimes it does not.. I have around 300,000 listings which need to be imported and it doesn’t make sense to go and hit update on each listing..
Ive set geolocated to 0, to 1, and it just doesn’t make sense that neither works.
please help..
@noob101: Please create your own thread per the Forum Welcome policy:
https://codex.www.ads-software.com/Forum_Welcome#Where_To_Post
Thanks!
@noob101 – just wondering if you created your own thread or if you were able to resolve this. I’m having the same issue too.
The issue seems to be with wp-job-manager. While the Listify WP Import All add-on does geocoding, wp-job-manager does it’s own geocoding to get the address (not just the lat/lng).
Wp-job-manager doesn’t support an API key, and when I looked at the data coming from their API call I got:
[error_message] => Requests to this API must be over SSL.
For what it’s worth, we do support keys, but you need to add it via a filter:
Hi, I had same error, but api key didn’t solve my problem.
The strange stuff is that geocoding worked for old address (about 1600), but it didn’t work for new ones. All ok instead on fresh wordpress install… very strange for me.I did in this way:
class: class-wp-job-manager-geocode.php
method: get_location_data
row: 126
solution: i changed the url from http to https and it works (“https://maps.googleapis.com/maps/api/geocode/json?address=”) also if my website isn’t over https.if it works also for other situations, could you update the code?
Thanks
Submitted a pull request here to change it:
https://github.com/Automattic/WP-Job-Manager/pull/585
Not sure if that’s really what the fix was to be honest, but it can’t hurt. ??
- The topic ‘Geocoding not working while doing mass import through WP ALL Import’ is closed to new replies.