Ya me estoy quedando sin propuestas, pero insisto en que está relacionado con CURL, por eso vengo con esta última idea.
1) el cambio de mi mensaje anterior, lo puedes deshacer
2) En el mismo archivo
raíz/widgets.php
Buscar :
Código: Seleccionar todo
function send_data($site, $data) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$return = curl_exec($ch);
curl_close($ch);
return $return;
}
Reemplazar por :
Código: Seleccionar todo
function send_data($site, $data)
{
$html = '';
/** get html from url **/
if (function_exists ('curl_init'))
{
$curl = curl_init();
if (!is_null($data))
{
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
}
curl_setopt($curl, CURLOPT_URL, $site);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$html = curl_exec($curl);
curl_close($curl);
}
else
{
if (!is_null($data))
{
$options = array(
'http'=>array(
'method' => "POST",
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => $data,
)
);
$context = stream_context_create($options);
$html = file_get_contents($site, false, $context);
}
else
{
$html = file_get_contents($site);
}
}
return ($html != '') ? $html : $data;
}
/**
function send_data($site, $data) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$return = curl_exec($ch);
curl_close($ch);
return $return;
}
**/
Si con este cambio no funciona me rindo
