Fatal error: Uncaught CurlException: 26: failed creating formpost data thrown

12,092

The path to the image is not correct. Correct it and the problem will be solved.

Share:
12,092
Zakaria Ghazali
Author by

Zakaria Ghazali

Updated on June 05, 2022

Comments

  • Zakaria Ghazali
    Zakaria Ghazali almost 2 years

    I get the following error:

    Fatal error: Uncaught CurlException: 26: failed creating formpost data thrown in /home/u801961841/public_html/inc/lib/base_facebook.php on line 814
    

    This is the code I used:

        if ($result === false) {
          $e = new FacebookApiException(array(
            'error_code' => curl_errno($ch),
            'error' => array(
            'message' => curl_error($ch),
            'type' => 'CurlException',
            ),
          ));
          curl_close($ch);
          throw $e;
        }
        curl_close($ch);
        return $result;
      }
    

    Does anyone know how to solve this problem?