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?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
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?
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????
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;
}
?>
anyone?
Looks like you need to install the cURL PHP module. Unusual that your host does not have that already installed.
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...
Addition...
When i add a flickrrgalery then the dropdownbox appears at the youtubbegalery but not on the flickrrgalery...
What am i doing wrong?