YouTube feed stopped displaying
-
I saw multiple people discussing this issue without coming to a reasonable conclusion. I started using this plugin today to display YouTube feeds and it looked great until it suddenly disappeared.
Here is the PHP error that is raised:
PHP Error Invalid argument supplied for foreach() Type: PHP Warning Line: 431 File: /.../wp-content/plugins/feed-them-social/feeds/youtube/class-youtube-feed-free.php
Now why
The code on line 431 was:
foreach ( $videos->items as $post_data ) {
So I inserted a var_dump($videos) to see what the variable looked like and discovered that this issue relates to daily limits.
object(stdClass)#4233 (1) { ["error"]=> object(stdClass)#4231 (3) { ["errors"]=> array(1) { [0]=> object(stdClass)#4234 (4) { ["domain"]=> string(11) "usageLimits" ["reason"]=> string(18) "dailyLimitExceeded" ["message"]=> string(245) "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=xxx" ["extendedHelp"]=> string(97) "https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=xxx" } } ["code"]=> int(403) ["message"]=> string(245) "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=xxx" } }
It would be nice if the plugin detected when this limit is reached and displayed it to the user somehow. Also I’ve got my cache time set to 1 day, so I will leave it and see if the problem fixes itself tomorrow.
The page I need help with: [log in to see the link]
- The topic ‘YouTube feed stopped displaying’ is closed to new replies.