Hi @sarumbear,
I am very sorry to reply this late. I seem to have missed you post.
It appears that you have not stored the location coordinates in your WordPress database. If the “Find button” does not return a search result, there is probably something wrong with our API key.
Please try the following:
Go in your WordPress Admin to Events -> Locations -> And click on the one that is not working correctly. On that page, open your browser console window and then click the “Find Address” button.
The server response will be shown in your browser console log.
If you do not know how to open your browser console window, take a look here:
https://appuals.com/open-browser-console/
Please let me know what the server response is.
This is what I get on the following page.
https://stragglersofasia.co.uk/locations/holkham-hall/
jquery.min.js?ver=3.6.0:2
GET https://api.opencagedata.com/geocode/v1/json?key=ed570b9adfee4fefa6ee1089223bbbd6&q=Holkham%20Hall%20%2C%20Wells-next-the-Sea%2C%20NR23%2012AB%2C%20Norfolk%20&no_annotations=1&add_request=1&pretty=1&language=en 401
send @ jquery.min.js?ver=3.6.0:2
ajax @ jquery.min.js?ver=3.6.0:2
s.ajax.s.ajax @ jquery-migrate.min.js?ver=3.3.2:2 geoAddress @ admin-em-osm.min.js?ver=4.2.1:1 apiSearch @ admin-em-osm.min.js?ver=4.2.1:1 onclick @ post.php?post=3120&action=edit:1080
-
This reply was modified 3 years, 9 months ago by
sarumbear.
I have tried your query and get a 401 error back form the API. That means that your API key is invalid.
You can check the API key by using the “Get your API key” button in the plugin options page.
It seems the API key that I used at the beginning was cancelled. I have no idea why. I have created a new key and all works. Thank you for your help.
May I have a suggestion: How about placing a test the API key button so that we can test the API key. Furthermore maybe you can display an error if an API error occurred?
The error is currently logged to your browser console window, but I do agree that that is not sufficient enough.
I will implement any API errors in the next update.
Thank you for listening.
Your plugin’s UI is so slick that we expect to be hand hold at every stage, including errors. 🙂