Fatal Error Call To Undefined Function Curl_init In Wordpress
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about fatal error call to undefined function curl_init() in php Stack Overflow the company Business Learn more about hiring developers or posting ads with
Call To Undefined Function Curl_init() Windows
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a
Call To Undefined Function Curl_init() In Codeigniter
community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Fatal error: Call to undefined function curl_init() in … on line 9 up vote 36
Call To Undefined Function Curl_init() Wamp
down vote favorite 8 base64_encode($data), 'key' => IMGUR_API_KEY); $timeout = 30; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'http://api.imgur.com/2/upload.xml'); curl_setopt($curl, CURLOPT_TIMEOUT, $timeout); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $pvars); $xml = curl_exec($curl); curl_close ($curl); var_dump($xml); ?> I'm playing with the Imgur API, but it doesn't seems to work. PHP.net call to undefined function curl_init() linux says that curl_init() is in PHP5, but my host says it isn't. How can I make this work? php linux ubuntu curl debian share|improve this question edited Nov 3 '14 at 21:04 austin 4,64611835 asked Dec 9 '10 at 9:44 Thew 4,747153783 add a comment| 6 Answers 6 active oldest votes up vote 30 down vote accepted curl is an extension that needs to be installed, it's got nothing to do with the PHP version. http://www.php.net/manual/en/curl.setup.php share|improve this answer answered Dec 9 '10 at 9:46 fire 12.6k104695 +1 And if you can't install the curl extension, you can try using shell_exec (or similar) with the curl command. Or you can probably "fake it" with fsockopen. –bogeymin Dec 9 '10 at 11:54 2 That page doesn't say a word about HOW TO install the extension. Any better resources? –matteo Oct 21 '14 at 12:01 add a comment| up vote 89 down vote On current versions of Debian and Ubuntu, you can likely solve this by installing the Curl extension for PHP, and restarting the webserver. Assuming the webserver is Apache 2: sudo apt-get install php5-curl sudo service apache2 restart It's possible you'll need to install more: sudo apt-get install curl libcurl3 libcurl3-dev; share|improve this answer edited Oct
tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more what is curl_init about hiring developers or posting ads with us WordPress Development Questions Tags Users Badges Unanswered sudo apt-get install php5-curl Ask Question _ WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes php7 curl_init a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Why am I getting a “Call to undefined function curl_init()” when http://stackoverflow.com/questions/4396779/fatal-error-call-to-undefined-function-curl-init-in-on-line-9 I try to use the Sociable plugin? up vote 0 down vote favorite I have a wordpress blog at http://www.1000irritatingthings.com I had the sociable plugin working for a while, but now when I try to configure it, I get the following error in the admin panel when I select Sociable classic: Fatal error: Call to undefined function curl_init() in D:\(WEBSITES)\1000irritatingthings.com\www\wp-content\plugins\sociable\includes\sociable_output.php on line 28 I'm not a PHP guy, so I'm clueless. I promise that I haven't altered http://wordpress.stackexchange.com/questions/61626/why-am-i-getting-a-call-to-undefined-function-curl-init-when-i-try-to-use-th anything manually, I'm totally a "Manage it from the Admin Panel and not touch anything below the surface" kind of guy. plugins errors share|improve this question edited Aug 12 '12 at 22:58 Rarst♦ 71.9k783203 asked Aug 12 '12 at 21:58 Nick Hodges 1012 add a comment| 2 Answers 2 active oldest votes up vote 4 down vote Is it your host? Test if cURL is installed. If not: Go and talk to your host. Here you got a small plugin. Drop it in your MU-Plugins folder and reload any page, or drop it into your plugins folder, activate it and then reload the page. /* Plugin Name: _CHECK IF cURL INSTALLED */ function wpse61626_can_I_haz_cURL() { if ( ! in_array ( 'curl', get_loaded_extensions() ) ) echo ''; echo ''; } add_action( 'shutdown', 'wpse61626_can_I_haz_cURL', 9999 ); Help(desk) available! I send you one from my helpdesk stuff along with the plugin, to give you a better feedback. He's called »Astro«, one of my best employees. I don't know where I got the image from, as I found it on my desktop. If you're the author and don't want it published here, please drop me or the moderators of this site a note and we'll removed it asap. The same goes for adding credits. Thanks. Important No animals were hurt during writing this answer. share|improve this answer edite
Line 171 [Resolved] Plugin Breaking on Line 171 NateSirrah @natesirrah 5 months, 1 week ago Hi there! I'm seeing: Fatal error: Call to undefined function curl_init() https://wordpress.org/support/topic/plugin-breaking-on-line-171/ in /…/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php on line 171 Does anyone have any idea how to address this? Thanks! https://wordpress.org/plugins/gmail-smtp/ -- OS: Linux mysitename 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:15 https://www.designwall.com/question/php-fatal-error-undefined-fonction-called-in-the-posts/ UTC 2016 x86_64 PHP version: 5.5.9-1ubuntu4.16 WordPress version: 4.5.1 WordPress multisite: No openssl: Available allow_url_fopen: Enabled stream_socket_client: Available fsockopen: Available Viewing 4 replies - 1 through 4 call to (of 4 total) Plugin Author naa986 @naa986 5 months, 1 week ago Hi, Does your server have the cURL library installed? NateSirrah @natesirrah 5 months, 1 week ago Yes, cURL is up-date! Refreshed, updated, and cleaned the server. I'm running NGINX with PHP 5.5.9-1ubuntu4.16. Everything seems current -- any ideas? +CloudFlare too Thanks! Plugin Author call to undefined naa986 @naa986 5 months, 1 week ago There must be some configuration issue in your PHP then. Can you please contact your host to take a look at this issue? Leavenworth @leavenworth 4 months, 3 weeks ago I had the same problem, and the same error in the apache error log, on a newly configured ubuntu server. I forgot to download php5-curl. After running these commands, the GMail SMTP Plugin worked: sudo apt-get install php5-curl sudo service apache2 restart Viewing 4 replies - 1 through 4 (of 4 total) You must be logged in to reply to this topic. About this Plugin Gmail SMTP Support Threads Reviews Topic Info In: Plugins and Hacks 4 replies 3 participants Last reply from: Leavenworth Last activity: 4 months, 3 weeks ago 4.5.1 Status: resolved Forum Search Search for: About Blog Hosting Jobs Support Developers Get Involved Learn Showcase Plugins Themes Ideas WordCamp WordPress.TV BuddyPress bbPress WordPress.com Matt Privacy License / GPLv2 Code is Poetry.
Support Forum Video Documentation Glosarry Learn WordPress Blog Login Join Now Questions PHP fatal error, undefined fonction called in the posts Boulama Kandine asked 3 years ago Hello ! I baught the theme called DW Focus this afternoon. So when i use it with wamp, they show me a PHP error when I go in the posts. Thats what I see after the post : Fatal error: Call to undefined function curl_init() in C:\serveur\wamp\www\otimbi\wp-content\themes\dw-focus\functions.php on line 908 ( ! ) Fatal error: Call to undefined function curl_init() in C:\serveur\wamp\www\otimbi\wp-content\themes\dw-focus\functions.php on line 908 Call Stack # Time Memory Function Location 1 0.0009 671136 {main}( ) ..\index.php:0 2 0.0032 675984 require( ‘C:\serveur\wamp\www\otimbi\wp-blog-header.php' ) ..\index.php:17 3 0.6047 31516976 require_once( ‘C:\serveur\wamp\www\otimbi\wp-includes\template-loader.php' ) ..\wp-blog-header.php:16 4 0.6076 31539008 include( ‘C:\serveur\wamp\www\otimbi\wp-content\themes\dw-focus\single.php' ) ..\template-loader.php:47 5 0.9062 31842352 get_template_part( ) ..\single.php:17 6 0.9063 31843144 locate_template( ) ..\general-template.php:128 7 0.9067 31843288 load_template( ) ..\template.php:381 8 0.9074 31878304 require( ‘C:\serveur\wamp\www\otimbi\wp-content\themes\dw-focus\content-single.php' ) ..\template.php:407 9 0.9150 31879312 dw_focus_post_actions( ) ..\content-single.php:30 10 0.9159 31879616 dw_get_twitter_count( ) ..\functions.php:414 11 0.9159 31879776 dw_file_get_content( ) ..\functions.php:886 How can you help me ? Thanks 🙂 Question Tags: DW Focus 1 Answers DominicStaff answered 3 years ago I think that is mistake on your localhost (wamp) which is not yet enable curl. To enable curl on the wamp, please, follow the steps below: 1. Close WAMP (if running) 2. Navigate to WAMP\bin\php\(your version of php)\ 3. Edit php.ini 4. Search for curl, uncomment extension=php_curl.dll 5. Navigate to WAMP\bin\Apache\(your version of apache)\bin\ 6. Edit php.ini 7. Search for cu