Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

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

Youtubegallery Fatal error: Call to undefined function curl_init()


Reply

7 Posts   2286 Views

Avatar
raamklaza

24 June 2009 at 9:00am Community Member, 182 Posts

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?

Avatar
raamklaza

24 June 2009 at 9:24am Community Member, 182 Posts

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????

Avatar
raamklaza

24 June 2009 at 9:36am Community Member, 182 Posts

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;
}

?>

Avatar
raamklaza

25 June 2009 at 6:52am Community Member, 182 Posts

anyone?

Avatar
UncleCheese

25 June 2009 at 7:03am 4085 Posts

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

Avatar
raamklaza

25 June 2009 at 7:04am Community Member, 182 Posts

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

Avatar
raamklaza

25 June 2009 at 9:33am Community Member, 182 Posts

Addition...

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

What am i doing wrong?