• Resolved joshdraha

    (@joshdraha)


    I have my domain verified. I have an API and a place ID but I still get the error: Error: Your Google API Key is not valid for this request and permission is denied. Please check your Google API Key. Any idea why it’s not working?

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

Viewing 15 replies - 1 through 15 (of 32 total)
  • Plugin Author Design Extreme

    (@designextreme)

    Hello @joshdraha,

    There is a clue in Google API’s error message – the API is fine, but the use and restrictions are incorrect.

    In your key restrictions, select the IP address (it may be IPv4 or IPv6) and Selected API: Places API.

    Sometimes Google will tell you which IP address to use (from what it sees making the request).

    If you can’t progress, I would recommend starting without any restrictions – then add each of these two checking as you go. Just be aware that without some restriction in place, you have a very small chance that someone else will use your API request allowance and cause you to lose money to Google. A quota will do the trick if all else fails – with an hourly update set in the plugin that’s 720 requests a month – well, well below your inclusive allowance.

    I hope this helps!

    All the best,

    Noah

    Thread Starter joshdraha

    (@joshdraha)

    Awesome that worked! However now I’m getting a fatal error on the REVIEWS tab and nothing displays:

    Fatal error: Uncaught Error: Call to undefined function wp_date() in /home/dh_sbjm83/whmilwaukee.com/wp-content/plugins/g-business-reviews-rating/index.php:2610 Stack trace: #0 /home/dh_sbjm83/whmilwaukee.com/wp-content/plugins/g-business-reviews-rating/templates/settings.php(693): google_business_reviews_rating->get_reviews(‘html’) #1 /home/dh_sbjm83/whmilwaukee.com/wp-content/plugins/g-business-reviews-rating/index.php(735): include(‘/home/dh_sbjm83…’) #2 /home/dh_sbjm83/whmilwaukee.com/wp-includes/class-wp-hook.php(286): google_business_reviews_rating->admin_settings(”) #3 /home/dh_sbjm83/whmilwaukee.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #4 /home/dh_sbjm83/whmilwaukee.com/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #5 /home/dh_sbjm83/whmilwaukee.com/wp-admin/admin.php(253): do_action(‘settings_page_g…’) #6 /home/dh_sbjm83/whmilwaukee.com/wp-admin/options-general.php(10): require_once(‘/home/dh_sbjm83…’) #7 {main} thrown in /home/dh_sbjm83/whmilwaukee.com/wp-content/plugins/g-business-reviews-rating/index.php on line 2610

    Thread Starter joshdraha

    (@joshdraha)

    I also uncheck LOAD STYLE SHEET and now it says that I have exceeded my request limit…

    Plugin Author Design Extreme

    (@designextreme)

    @joshdraha Oh… I will fix that error immediately and release a new version. This was something that was altered in version 2.5.

    Please wait a few minutes.

    Plugin Author Design Extreme

    (@designextreme)

    @joshdraha – I am having problems replicating this error wp_date() is a core function with WordPress. Have you altered your WordPress installation in any way?

    Thread Starter joshdraha

    (@joshdraha)

    I have not.

    Plugin Author Design Extreme

    (@designextreme)

    @joshdraha,

    This is a tricky one… Is your WordPress version 5+ because I cannot find any mention of this function not existing: wp_date?

    If it is an old version of WordPress, please try updating the core to the current version.

    Alternatively (if you feel ok with editing the PHP file), please edit: … /g-business-reviews-rating/index.php and replace all mentions of wp_date with just date. The function: date() is a native PHP function.

    Let me know how this goes?

    If anyone else has a similar error, I’d really like to hear from you.

    Thread Starter joshdraha

    (@joshdraha)

    I’m running 5.3.1 I have an update available. I’ll try the update and see what happens. Thanks for the quick replies. I really appreciate it.

    Plugin Author Design Extreme

    (@designextreme)

    The API request error (you mentioned this after changing the style sheet setting) is probably relating to the restriction in place when there is no billing information in your Google API account. The requests are severely restricted without billing details so I would recommend adding these to give yourself a decent allowance. I’ve mentioned this in the setup process. With just this plugin, you’ll never come close to reaching your free allowance. ??

    Thread Starter joshdraha

    (@joshdraha)

    What is the free allowance and how is it measured?

    Plugin Author Design Extreme

    (@designextreme)

    @joshdraha Someone else reported the same wp_date issue – so it is a WordPress version thing. I will create an update imminently.
    The free API allowance is detailed here – so thousands of lookups per month.

    Plugin Author Design Extreme

    (@designextreme)

    @joshdraha Thanks for letting me know about the wp_date() issue – I have now resolved this in version 2.6. Please update your plugin. ??

    Plugin Author Design Extreme

    (@designextreme)

    @joshdraha I’ve added a visual guide to assist here and in future installations. It should make it clearer for you and others in a similar situation.

    Thread Starter joshdraha

    (@joshdraha)

    Hello. I updated my plugin and now I get this error: Notice: Undefined variable: retrieval in /home/dh_sbjm83/whmilwaukee.com/wp-content/plugins/g-business-reviews-rating/index.php on line 1909

    Warning: count(): Parameter must be an array or an object that implements Countable in /home/dh_sbjm83/whmilwaukee.com/wp-content/plugins/g-business-reviews-rating/index.php on line 1909

    The plugin was working and displaying 5 reviews and now I get this error.

    1. How can I fix this error
    2. How can I display at least 10 reviews?

    Thread Starter joshdraha

    (@joshdraha)

    I since removed the plugin because I couldn’t login to the site’s backend.

Viewing 15 replies - 1 through 15 (of 32 total)
  • The topic ‘Error: Your Google API Key is not valid for this request and permission is denie’ is closed to new replies.