Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • Nick Friend
    #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 Moderator
    #1065194

    Hi Nick,

    You can share the credentials of your site: URL, Admin + FTP account so we can check and help you out.

    Regards

    Nick Friend
    #1065383

    The 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 following

    Source : youtube
    Profile Demo
    Done : 0 Success And 0 Error
    DONE

    but nothing imports.
    Any suggestions?

    Nick Friend
    #1065562
    This reply has been marked as private.
    Luna Garden Moderator
    #1065629

    Hi,

    Could you share the YouTube Account or YouTube channel you used to import data ?

    I think you might use a YouTube Channel but set Source to YouTube Account.

    Nick Friend
    #1065965
    This reply has been marked as private.
    Nick Friend
    #1066237
    This reply has been marked as private.
    Luna Garden Moderator
    #1066382

    It’s weird, I just test at our end, JA Social Feed still works well. I think you might enter the wrong / incorrect Youtube API key. Could you recheck ?

    Nick Friend
    #1066457
    This reply has been marked as private.
    Nick Friend
    #1066505

    bump

    Luna Garden Moderator
    #1066673

    Hi,

    Recheck your YouTube API key, the problem only cause of this.
    JA Social Feed works fine at our end.

Viewing 11 posts - 1 through 11 (of 11 total)

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