• Hello, I am trying to use the Congress Lookup plugin. I have created two separate API keys with Google. One has the javascript for maps enabled and the other has the google civic API information enabled. I have pasted the keys into the proper place on the Congress Lookup settings page within WordPress but every time I try to use the plugin on the site it doesn’t display any information no matter what I type in. What am I doing wrong?

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    I’m sorry you are experiencing problems with our plugin. I have looked at your page and FireFox developer tools Console shows the following errors:

    You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors. js:95:51
    Kg
    https://maps.googleapis.com/maps/api/js:95:51
    <anonymous>
    https://maps.googleapis.com/maps/api/js:158:75
    google.maps.Load
    https://maps.googleapis.com/maps/api/js:18:5
    <anonymous>
    https://maps.googleapis.com/maps/api/js:158:1
    <anonymous>
    https://maps.googleapis.com/maps/api/js:23:2
    Google Maps JavaScript API warning: InvalidKey https://developers.google.com/maps/documentation/javascript/error-messages#invalid-key util.js:224:33
    Google Maps JavaScript API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required

    Our plugin checks to see if Google Maps API is already being called and only loads it if needed. Therefore, you will need to check the other plugins you are using that include Google Maps API and disable them for this particular page. There are many instructionals on the web that explain how this can be done in your functions.php file. Or you can try a plugin like this: https://www.ads-software.com/plugins/plugin-organizer/

    Once we know that only one is loading for your page then we can diagnose the remaining issues, if any.

    Please report back your results.

    Thread Starter hero2287

    (@hero2287)

    Would you be able to give me a link to one of the articles on how to edit your functions.php file? Thanks!

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    You can try this thread at StackOverflow.com as it has several suggestions and links to the WordPress Codex for more information: https://stackoverflow.com/questions/6774424/wordpress-disable-plugin-on-specific-pages-posts

    Thread Starter hero2287

    (@hero2287)

    Ok I installed the plugin organizer on my site and I disabled every plugin on the page except for the plugin organizer and the congress lookup plugin and I am still not getting any search results when I type in an address. What should I do? I copied the proper file for the plugin organizer to work just like the instructions say.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Hummm … I’m showing the same errors.

    We need to rule out all the common problems before going further. Please go the our plugin main page and go down to the Troubleshooting section. https://www.ads-software.com/plugins/congresslookup/

    Work through those steps and then report back.

    Thread Starter hero2287

    (@hero2287)

    I have tried all the steps in the troubleshooting guide and I am still getting a bunch of errors. I have enabled developer tools in Google Chrome and it says the Google Maps API is being called multiple times. There is also a syntax error that I don’t know what to do about. What else can I try?

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    So you turned off all plugins, except for CongressLookup, while using one of the WordPress default themes, and you are still getting the errors?

    You can see that the plugin is working without errors on our main site: https://congresslookup.com/ so if you are getting errors with no other plugin active and with the default theme, then I suggest you contact your hosting provider to see if it could be a server configuration problem.

    i will also contact my coder to see if he can find any other potential issues.

    Thread Starter hero2287

    (@hero2287)

    I did turn off all plugins and I got an error message that said “Address could not be found” even when I was using the default address that populates the plugin. I was also using the WordPress twenty sixteen theme, one of their defaults so I don’t think it is an error having to do with the theme I am using.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Okay. Then please check with your hosting provider while I check with my coder.

    Thread Starter hero2287

    (@hero2287)

    Will do. Thank you for looking into this!

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Hello @hero2287,

    My coder says the following:

    I think the customer has put an invalid key for google map (see attachement).
    Either fix the existing key configuration or get new one.

    Attachment: congresslookup_error_code.jpg

    Make sure when you create/reconfigure the key that you don’t put any restrictions on it. And please report back the results.

    Thread Starter hero2287

    (@hero2287)

    I am getting the same answer from my hosting provider, something is wrong with the API keys that I am trying to use. I have tried creating brand new keys with no restrictions, I am following the instructions that you have on your plugin page but I am still seeing the same errors. Do you have any ideas on how to make a proper API key that works?

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    There is only one other thing that I can think of and that has to do with Google’s new pricing policy that recently went into effect … but I don’t know why this would only effect you and not everyone using their APIs with CongressLookup.

    Can I still use Google Maps Platform for free?
    Yes. When you enable billing, you get $200 free usage every month for Maps, Routes, or Places. Based on the millions of users using our APIs today, most of them can continue to use Google Maps Platform for free with this credit.

    https://cloud.google.com/maps-platform/pricing/

    The $200 a month credit should be more than enough for most sites using CongressLookup.

    In doing more research I found this article says that everyone now has to sign up for their payment plan:

    You can no longer use the APIs in the first place unless you create a billing account and hand-over your credit card information to Google. This is applicable to all users – even those who have a simple map embedded on their website’s contact page.

    https://geoawesomeness.com/developers-up-in-arms-over-google-maps-api-insane-price-hike/

    So, I can only guess that this policy is being applied to new API keys being created and that older keys still work without it … at least for now.

    Please sign up for their billing account and see if this gets your keys to work. Please report back your results.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Results not populating in lookup plugin’ is closed to new replies.