Failed to create formpost data

4 replies [Last post]
Joined: 03/29/2009
Points: 764

Possible solution the the "failed to create formpost data" error message

Joined: 03/29/2009
Points: 764

Hi,

I tried to install it on Wordpress 2.6.3, and after filling out the form to receive the "Partner ID" and pressing "Complete installation" I receive the error message stated in the subject.

I read the readme.txt, and it said it could be because of two reasons:

Solution 1: Enable curl and its functions on the server (or have the hosting company enable it for you).
Solution 2: Remove any blocking of external calls from the server.

My webhost is running PHP 5.2.6 and allow_url_fopen is on and curl information:
cURL support enabled
cURL Information libcurl/7.15.5 OpenSSL/0.9.8c zlib/1.2.3 libidn/0.6.5

Please advise.

Joined: 03/29/2009
Points: 764

This error returned from curl.

I'm attaching a test script

<?php

print("Testing GET
\n");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.kaltura.com/api/ping");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, "");
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$curl_result = curl_exec($ch);
$curl_error = curl_error($ch);
curl_close($ch);
print("Result:

" . $curl_result . "

\n");
print("Error:

" . $curl_error . "

\n");

print("

\n");

print("Testing POST
\n");
$params["dummy1"] = "dummy";
$params["dummy2"] = "dummy";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.kaltura.com/api/ping");
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params, null, "&"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, "");
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$curl_result = curl_exec($ch);
$curl_error = curl_error($ch);
curl_close($ch);
print("Result:

" . $curl_result . "

\n");
print("Error:

" . $curl_error . "

\n");

?>

It will test both GET and POST

Let me know what result you get

Joined: 03/29/2009
Points: 764

This is the result:

Testing GET
Result:

Error:

Testing POST
Result:

Error:

Joined: 03/29/2009
Points: 764

Looks like curl doesn't work at all

Did you see in phpinfo() that curl is enabled?