Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » recent break in youtube service?

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1863 Views
  • Berteh
    Community Member
    11 Posts

    recent break in youtube service? Link to this post


    Recently the YouTube gallery pages I used stopped working (displayed no video any more) and output the following error message:

    Notice: Error occurred in processing YouTube response in /(...)/public_html/youtubeservice/code/YoutubeService.php on line 90 (see trace below)

    The pages were working fine 2 weeks ago (and possibly more recently).

    From the error details below I guess the API changed... but don't know how to fix it. you have any hint?
    (this is quite urgent as the website is in production....). I used the "display playlist" option of this module, feel free to try with the youtube playlist id 03BE864A5392CD9F, it should work.


    exception details:

    exception 'Exception' with message 'String could not be parsed as XML' in /(...)/public_html/youtubeservice/code/YoutubeService.php:55
    Stack trace:
    #0 /(...)/public_html/youtubeservice/code/YoutubeService.php(55): SimpleXMLElement->__construct('')
    #1 /(...)/public_html/youtubeservice/code/YoutubeService.php(170): YoutubeService->getVideosFeed('playlists/03BE8...', Array, '10', 1)
    #2 /(...)/public_html/youtubeservice/code/YoutubeGallery.php(67): YoutubeService->getPlaylist('03BE864A5392CD9...', '10', 1, 'updated')
    #3 [internal function]: YoutubeGallery->YoutubeVideos()
    #4 /(...)/public_html/sapphire/core/Object.php(177): call_user_func_array(Array, Array)
    #5 [internal function]: Object->__call('YoutubeVideos', Array)
    #6 /(...)/public_html/youtubeservice/code/YoutubeGallery.php(105): YoutubeGallery_Controller->YoutubeVideos()
    #7 [internal function]: YoutubeGallery_Controller- in <b>/(...)/public_html/youtubeservice/code/YoutubeService.php</b> on line <b>91</b><br />

  • Berteh
    Community Member
    11 Posts

    Re: recent break in youtube service? Link to this post

    I got this answer from Lakshan, the original module developper:

    Yeah this module is deprecated now as YouTube has changed their API
    structure since release of this module.

    I'm currently stuck with some other commitments, so sorry about not releasing a new update.
    But I'm sure there may be other contributors who may work on the next version of this module.

    If any want knows where I can find some more info about the youtube API please give me the pointers and I'll try to correct the module as I really need it ;o)


  • Willr
    Forum Moderator
    5508 Posts

    Re: recent break in youtube service? Link to this post

    This is a mirgation guide on youtube you can use for a few pointers on whats changed - http://code.google.com/apis/youtube/migration.html and the new api docs are here http://code.google.com/apis/youtube/overview.html . Yell out if you have any issues

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.