Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Youtubegallery Fatal error: Call to undefined function curl_init()

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 2246 Views
  • raamklaza
    Avatar
    Community Member
    182 Posts

    Youtubegallery Fatal error: Call to undefined function curl_init() Link to this post

    Fatal error: Call to undefined function curl_init() in C:\wampserver\www\1-Ontwikkeling\roufaida.nl\sapphire\api\RestfulService.php on line 96

    anyone know the solution for this?

  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: Youtubegallery Fatal error: Call to undefined function curl_init() Link to this post

    It was a php CURL extention problem.

    Another question though.

    In the Youtubegallery admin section i see the following fields:

    Select
    Youtube Username
    Category or Tag

    The first to are just lines and the third one shows a input text field.

    Shoudn't the first two have a input text field aswell????

  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: Youtubegallery Fatal error: Call to undefined function curl_init() Link to this post

    Did some digging,

    this doesn't seem to work...

    There is no dropdown field.

    How come??? anyone?

    <?php // YouTubeGallery.php line 28

    // add custom fields for this youtube gallery page
    function getCMSFields($cms) {
        Requirements::javascript( 'youtubeservice/javascript/YoutubeGallery_CMS.js' );
       
    $fields = parent::getCMSFields($cms);
    $fields->addFieldToTab("Root.Content.Videos", new DropdownField("Method", "Select ", array(
                '1' => 'Videos containing phrase',
                '2' => 'Videos by Category or Tag',
                '3' => 'Videos uploaded by',
                '4' => 'Favorite videos of',
                '5' => 'Videos from playlist')));
    $fields->addFieldToTab("Root.Content.Videos", new TextField("User","Youtube Username"));
    $fields->addFieldToTab("Root.Content.Videos", new TextField("Query","Search for"));
    $fields->addFieldToTab("Root.Content.Videos", new TextField("CategoryTag", "Category or Tag"));
    $fields->addFieldToTab("Root.Content.Videos", new TextField("Playlist", "Playlist ID"));
    $fields->addFieldToTab("Root.Content.Videos", new NumericField("MaxResults", "Per Page", 10));
    $fields->addFieldToTab("Root.Content.Videos", new DropdownField("Sortby", "Sort by (descending)", array(
                'relevance' => 'Relevance',
                'updated' => 'Most Recent',
                'viewCount' => 'Most Viewed',
                'rating' => 'Most Rated')));
    return $fields;
    }

    ?>

  • raamklaza
    Avatar
    Community Member
    182 Posts
  • UncleCheese
    Avatar
    4085 Posts

    Re: Youtubegallery Fatal error: Call to undefined function curl_init() Link to this post

    Looks like you need to install the cURL PHP module. Unusual that your host does not have that already installed.

  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: Youtubegallery Fatal error: Call to undefined function curl_init() Link to this post

    I installed CURL ....

    In the second topic i explained i found the "problem"

    But i found another problem in the Youtubegallery.

    I can't see the dropdownbox in the admin because it's not there...

  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: Youtubegallery Fatal error: Call to undefined function curl_init() Link to this post

    Addition...

    When i add a flickrrgalery then the dropdownbox appears at the youtubbegalery but not on the flickrrgalery...

    What am i doing wrong?

    2246 Views
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.