Sziasztok
vásároltam a Themeforest-től egy sablont, a wordpress multi site -om localhoston van(még)
alkönyvtáras változatot hoztam létre
http://localhost/wordpress -ez az alapértelmezett magyar nyelvű
http://localhost/wordpress/en -ez az angol
http://localhost/wordpress/de -ez meg a német
ma reggel az a jelenség fogadott, hogy a http://localhost/wordpress alatt levő magyar oldalam a következő hibaüzenettel nem jelenik meg
Fatal error: Call to undefined function curl_init() in C:wampwwwwordpresswp-contentthemescoldinctools.php on line 21
az angol illetve német nyelvű verziómat gond nélkül tudom szerkesztgetni, wp-admin hozzá írásával be tudok lépni…
viszont amint a Network admin felületre akarok menni, vagy csak simán a localhost/wordpress -emre akkor a fenti hibaüzenet jön ki …
ez az első 45 sor a tools.php-ban
// Social Sites
$social_options = array('twitter' => 'Twitter', 'facebook' => 'Facebook', 'google-buzz' => 'Google Buzz', 'digg' => 'Digg', 'delicious' => 'Delicious', 'stumbleupon' => 'StumbleUpon', 'reddit' => 'Reddit', 'technorati' => 'Technorati', 'newsvine' => 'Newsvine', 'google-bookmarks' => 'Google Bookmarks', 'friendfeed' => 'FriendFeed', 'myspace' => 'MySpace', 'slashdot' => 'Slashdot', 'linkedin' => 'LinkedIn', 'yahoo-bookmarks' => 'Yahoo Bookmarks', 'yahoo-buzz' => 'Yahoo Buzz', 'mixx' => 'Mixx', 'mr-wong' => 'Mr Wong');
function e404_img_scale($img, $width = 0, $height = 0, $crop = true) {
if($crop)
$crop = 1;
else
$crop = 0;
return OF_DIRECTORY.'/lib/timthumb.php?src='.$img.'&w='.$width.'&h='.$height.'&zc='.$crop;
}
function e404_get_tweets($user, $count) {
$text = $status_text = '';
$last_update = get_option('e404_twitter_'.$user.'_last_update_'.(int)$count);
$text = get_option('e404_twitter_'.$user.'_last_response_'.(int)$count);
if(($last_update < (time() - get_option('e404_twitter_expire'))) || !$text) {
$url = "http://twitter.com/statuses/user_timeline/$user.xml?count=".(int)$count;
$xml = @simplexml_load_file($url);
if($xml === false) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url); //EZT ÃRJA KI HIBÃNAK !!!!
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
$result = curl_exec($ch);
curl_close($ch);
$xml = @simplexml_load_string($result);
}
$text = array();
if(is_object($xml)) {
foreach($xml->status as $status) {
$status_response['text'] = (string)$status->text;
$status_response['time'] = getRelativeTime($status->created_at);
$status_response['id'] = (int)$status->id;
$text[] = $status_response;
}
update_option('e404_twitter_'.$user.'_last_update_'.(int)$count, time());
if(count($text) > 0) {
update_option('e404_twitter_'.$user.'_last_response_'.(int)$count, $text);
}
}
}
return $text;
}
....
valakinek valami ötlete, hogy ez mi a nyavalya lehet ???
előre is köszönöm