-
AuthorPosts
-
September 30, 2017 at 7:15 am #1064995
I am using JA Intranet quickstart ONLY. When configuring "JA Social Feed" plugin I am getting the following error for YouTube (i am not using any other sources)
Notice: Undefined property: stdClass::$items in htdocspluginssystemjasocial_feedjasocial_feed.php on line 878
Notice: Trying to get property of non-object in htdocspluginssystemjasocial_feedjasocial_feed.php on line 878
Notice: Trying to get property of non-object in htdocspluginssystemjasocial_feedjasocial_feed.php on line 878
Notice: Trying to get property of non-object in htdocspluginssystemjasocial_feedjasocial_feed.php on line 878
Source : youtube
Profile MySite
Done : 0 Success And 0 Error
DONE
below are lines 865 to 881 (line 878 is $uploads = $channelDetail->items[0]->contentDetails->relatedPlaylists->uploads;)
switch($ytOption){ case 'username': $userDetailUrl ="https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername=".$ytName."&key=".$ytApiKey; $userDetail = json_decode($this->getContent($userDetailUrl)); $uploads = $userDetail->items[0]->contentDetails->relatedPlaylists->uploads; $fetchUrl = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=".$uploads."&key=".$ytApiKey; break; case 'playlistID': $fetchUrl = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=".$ytName."&key=".$ytApiKey; break; case 'channel': $channelDetailUrl ="https://www.googleapis.com/youtube/v3/channels?part=contentDetails&id=".$ytName."&key=".$ytApiKey; $channelDetail = json_decode($this->getContent($channelDetailUrl)); $uploads = $channelDetail->items[0]->contentDetails->relatedPlaylists->uploads; $fetchUrl = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=".$uploads."&key=".$ytApiKey; break; }
Any help is appreciated.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 2, 2017 at 4:13 am #1065194Hi Nick,
You can share the credentials of your site: URL, Admin + FTP account so we can check and help you out.
Regards
October 3, 2017 at 1:38 am #1065383The problem only occurred on a locally hosted site, now sure why.
Anyway I since have everything installed and setup online but I have another problem regarding this plugin.
Currently I am only interested in the YouTube import, I have a valid API key saved, I tested it and it produced the XML page with the data. However after saving profile and enabling YouTube on the Global tab, when i click "run now" it shows the followingSource : youtube
Profile Demo
Done : 0 Success And 0 Error
DONEbut nothing imports.
Any suggestions?October 3, 2017 at 8:36 pm #1065562This reply has been marked as private.Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
October 4, 2017 at 3:29 am #1065629October 5, 2017 at 1:32 am #1065965This reply has been marked as private.October 6, 2017 at 4:06 am #1066237This reply has been marked as private.Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
October 6, 2017 at 11:04 am #1066382October 7, 2017 at 6:41 am #1066457This reply has been marked as private.October 7, 2017 at 6:00 pm #1066505bump
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
October 9, 2017 at 3:33 am #1066673 -
AuthorPosts
This topic contains 10 replies, has 3 voices, and was last updated by Luna Garden 7 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum