• Resolved icecreamjelly

    (@icecreamjelly)


    Hello,

    I created two separate test sites that are very similar in set up (same plugins, same themes). Previously I asked about the issue where it only lets me type a few letters into the search box before it becomes deactivated. The solution to that was to get an API key from Google Console and add it to the settings in Buddypress. After I did that, it worked for the first website and you can search for users by their location.

    However, when I tried the same process for my second website, it didn’t work. I created a new project (two actually), created a new API, restricted them the same way, added a valid billing method, and put the API in the Buddypress settings, however, for the second website, in the member directory page, you cannot search by location at all, you get the error “This page can’t load Google Maps correctly.” if you try.

    I compared both sites and I am stumped why the same process should work for one site and not another almost exactly the same site (a few different plugins but this is not a plugin conflict, because I once had the same plugins currently on site 2 on site 1).

    I then discovered that you can put a search box for the location of members using a short code from the BP Search settings. When I used a short code to place the location search box in a page of its own, the search box works perfectly fine for both of them, it’s just that the location search function does not work for the second page on the members directory page for some reason.

    Since everything in the Google side is set up properly but it only works on one of my WordPress sites when posted as a short code, I think the matter is more related to the plugin side of things and I was wondering if you could help.

    Thank you

    Stepanie

Viewing 1 replies (of 1 total)
  • Thread Starter icecreamjelly

    (@icecreamjelly)

    Back to provide an update.

    I still have no idea why the API key won’t work in the members directory (I restricted the key to the entire site, not a specific page) but works on the page where the ‘search by location’ short code is displayed, but I fixed it by creating an entirely new project (not just a new API key for the same project) and for some reason, this new one worked, even though it had the exact same settings, and the old one was created just 1 day prior. Putting this here in case it helps anyone. And anyone with helpful info to solve this mystery, please do leave a message!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.