Title: Fatal error: Uncaught Error: Call to undefined function curl_exec()
Last modified: January 5, 2023

---

# Fatal error: Uncaught Error: Call to undefined function curl_exec()

 *  Resolved [rintelengrafik](https://wordpress.org/support/users/rintelengrafik/)
 * (@rintelengrafik)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-curl_exec/)
 * After migrating to another Server I always get this errormessage, when I try 
   to activate the wordfence Plugin:
 * Fatal error: Uncaught Error: Call to undefined function curl_exec() in xxxydomain.
   de/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php:360 
   Stack trace: #0 xxxydomain.de/wp-content/plugins/wordfence/vendor/wordfence/wf-
   waf/src/lib/http.php(70): wfWAFHTTPTransportCurl->send() #1 <meta http-equiv=”
   content-type” content=”text/html; charset=utf-8″></meta>xxxydomain.de/wp-content/
   plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php(38): wfWAFHTTP->send()#
   2 <meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>xxxydomain.
   de/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php(1898):
   wfWAFHTTP::get() #3 <meta http-equiv=”content-type” content=”text/html; charset
   =utf-8″></meta>xxxydomain.de/wp-content/plugins/wordfence/vendor/wordfence/wf-
   waf/src/lib/waf.php(467): wfWAFCronFetchRulesEvent->fire() #4 <meta http-equiv
   =”content-type” content=”text/html; charset=utf-8″></meta>xxxydomain.de/wp-content/
   plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php(244): wfWAF->runMigrations()#
   5 <meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>xxxydomain.
   de/wp-content/plugins/wordfence/waf/bootstrap.php(985): wfWAF->run() #6 <meta
   http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>xxxydomain.
   de/wp-content/plugins/wordfence/wordfence.php(110): require_once(‘…’) #7 <meta
   http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>xxxydomain.
   de/wp-admin/includes/plugin.php(2314): include_once(‘…’) #8 <meta http-equiv=”
   content-type” content=”text/html; charset=utf-8″></meta>xxxydomain.de/wp-admin/
   plugins.php(192): plugin_sandbox_scrape() #9 {main} thrown in <meta http-equiv
   =”content-type” content=”text/html; charset=utf-8″></meta>xxxydomain.de/wp-content/
   plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php on line 360
 * What is the problem? How can I fix it? deleting and reinstalling the plugin doesn’t
   help.
    -  This topic was modified 3 years, 5 months ago by [rintelengrafik](https://wordpress.org/support/users/rintelengrafik/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-curl_exec/#post-16347650)
 * Hi [@rintelengrafik](https://wordpress.org/support/users/rintelengrafik/), thanks
   for the detailed error message logs.
 * It looks to me like `curl_exec()` can’t run because it isn’t enabled on your 
   current version of PHP. It is sometimes possible for the cURL module to not be
   checked (ticked) when selecting your PHP version on cPanel. If you have access
   to cPanel and can control your PHP version from here, you should be able to enable
   it in there yourself. In some cases, you may need your host to enable cURL on
   your behalf.
 * Thanks,
   Peter.

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: Uncaught Error: Call to undefined function curl_exec()’ 
is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [migrating](https://wordpress.org/support/topic-tag/migrating/)

 * 1 reply
 * 2 participants
 * Last reply from: [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-curl_exec/#post-16347650)
 * Status: resolved