• Fatal error: Uncaught exception ‘Exception’ with message ‘Facebook needs the CURL PHP extension.’ in C:\xampp\htdocs\classificados\wp-content\themes\ClassiPress v3.1.4\classipress-314\includes\lib\fb\facebook.php:20 Stack trace: #0 C:\xampp\htdocs\classificados\wp-content\themes\ClassiPress v3.1.4\classipress-314\includes\theme-facebook.php(61): require_once() #1 [internal function]: cp_facebook_instance(”) #2 C:\xampp\htdocs\classificados\wp-includes\plugin.php(405): call_user_func_array(‘cp_facebook_ins…’, Array) #3 C:\xampp\htdocs\classificados\wp-settings.php(302): do_action(‘init’) #4 C:\xampp\htdocs\classificados\wp-config.php(90): require_once(‘C:\xampp\htdocs…’) #5 C:\xampp\htdocs\classificados\wp-load.php(29): require_once(‘C:\xampp\htdocs…’) #6 C:\xampp\htdocs\classificados\wp-blog-header.php(12): require_once(‘C:\xampp\htdocs…’) #7 C:\xampp\htdocs\classificados\index.php(17): require(‘C:\xampp\htdocs…’) #8 {main} thrown in C:\xampp\htdocs\classificados\wp-content\themes\ClassiPress v3.1.4\classipress-314\includes\lib\fb\facebook.php on line 20

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jo Mendes

    (@jo-mendes)

    line 20 is –

    if (!function_exists(‘curl_init’)) {
    throw new Exception(‘Facebook needs the CURL PHP extension.’);
    }
    if (!function_exists(‘json_decode’)) {
    throw new Exception(‘Facebook needs the JSON PHP extension.’);
    }

    Hi Jo,

    Check your server if it allows CURL.
    If not, ask your hosting company to enable CURL.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error’ is closed to new replies.