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.
-
This topic was modified 3 years, 5 months ago by
-
Hi @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.
The topic ‘Fatal error: Uncaught Error: Call to undefined function curl_exec()’ is closed to new replies.