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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Youtubegallery Fatal error: Call to undefined function curl_init()


Go to End


7 Posts   3454 Views

Avatar
raamklaza

Community Member, 182 Posts

24 June 2009 at 9:00am

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

Community Member, 182 Posts

24 June 2009 at 9:24am

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

Community Member, 182 Posts

24 June 2009 at 9:36am

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

Community Member, 182 Posts

25 June 2009 at 6:52am

anyone?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

25 June 2009 at 7:03am

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

Avatar
raamklaza

Community Member, 182 Posts

25 June 2009 at 7:04am

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

Community Member, 182 Posts

25 June 2009 at 9:33am

Addition...

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

What am i doing wrong?