• Resolved Ramzii

    (@ramzii)


    Error type: “Forbidden”. Error message: “Daily Limit Exceeded” Domain: “usageLimits”. Reason: “dailyLimitExceeded”. Location type: “”. Location: “”.

    Check in YouTube if the id PL33942589618ABDE3 belongs to a playlist. Check the FAQ of the plugin or send error messages to support.

    My shortcode:

    [Youtube_Channel_Gallery feed="playlist" user="PL33942589618ABDE3" videowidth="405" ratio="16x9" theme="light" color="white" autoplay="0" rel="0" showinfo="0" maxitems="4" thumb_width="187" thumb_ratio="16x9" thumb_columns_ld="2" title="0" description="0" promotion="0" pagination_show="1" description_words_number="0" link="1"]

    It worked fine yesterday please advice.

    https://www.ads-software.com/plugins/youtube-channel-gallery/

Viewing 15 replies - 1 through 15 (of 28 total)
  • Thread Starter Ramzii

    (@ramzii)

    So, it took me a half an hour to solve this. Not too bad and learned some new API workings.

    To solve this navigate to: https://developers.google.com/youtube/registering_an_application

    Follow these steps:

    1. Create a project

    2. Create a Browser key API key for your project

    3. Add referers, example: click Edit allowed referers—under APIs & auth > Credentials—and add (1) the name of the domain that will be making the request to the API and (2) if you’re developing locally https://localhost:{PORT}/*. Make sure you add the wildcard at the end.

    4. If youre using the shortcode. Use the acquired key as so:

    [Youtube_Channel_Gallery feed="playlist" user="PLHHbD7CP4_Cn3FSrW8Jtvsw1SQDmEVK4D" videowidth="405" ratio="16x9" theme="light" color="white" autoplay="0" rel="0" showinfo="0" maxitems="4" thumb_width="187" thumb_ratio="16x9" thumb_columns_ld="2" title="0" description="0" promotion="0" pagination_show="1" description_words_number="0" link="1" key="YOUR-API-KEY"]

    This solved it for me. Hope someone gets the help he needs

    It doesn’t work for me. The YouTube API console shows repeated 4xx errors…

    Thread Starter Ramzii

    (@ramzii)

    What is the error you are getting?

    Error type: “Forbidden”. Error message: “There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.” Domain: “usageLimits”. Reason: “ipRefererBlocked”. Location type: “”. Location: “”.

    Check in YouTube if the id PLuOwNrysnpaAYh2Vx4RCqww25KIjLd-cZ belongs to a playlist. Check the FAQ of the plugin or send error messages to support.

    The playlist ID is correct, but in the API console I can see 4xx errors so I’m guessing there’s a problem with the API call.

    Fixed it! The message “There is a per-IP or per-Referer restriction configured on your API key” was the clue. I removed the referrer restriction on the API key, cleared my local and WP cache and it’s OK now.

    Thread Starter Ramzii

    (@ramzii)

    Hey thats awesome to hear! Thanks for sharing.

    Thanks Ramzii, that fixed if for me too. It also fixed my pagination issue I was having. I had an API already setup for other functions, just needed to add it to my widget and shortcode. Thanks!

    can someone make a video tutorial pls? too hard i didnt get it.

    I’m not using the shortcode, I’m using the widgetize pages plugin that creates a widget area you place into pages with OTW Grid Manager Light.

    So Where can I place this API key, in the plugin code itself somewhere?

    I’d love a fix, this has been working great, thanks!

    Just an FYI if you are still having errors once you obtain and publish your API key.

    I made the mistake of doing copy/paste into the WordPress “Visual” window. When I looked at the Text/Source view, there was a <span> tag added.

    So make sure and paste your shortcode in Text mode.

    Vijay

    (@vijayabalaji5)

    @ramzii Thanks. It worked!!

    Hmm, I’m still getting the following error:

    Error type: “Forbidden”. Error message: “There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.” Domain: “usageLimits”. Reason: “ipRefererBlocked”. Location type: “”. Location: “”.

    Mr_spock how did you do this – I removed the referrer restriction on the API key, cleared my local and WP cache and it’s OK now.?

    In the Google help text for the API key it says you should add a referrer restriction, something like *<domain>/*

    If you did that, delete it. The referrer restriction should be blank.

    Then, I had to:

    Delete my Wordfence cache
    Delete my mod_pagespeed cache
    Delete my local cache

    Thanks for posting. This worked for me!

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘Daily limit exceeded??’ is closed to new replies.