
07-23-2012, 05:06 PM
|
|
|
Join Date: Jun 2010
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by weem
I too had this error - your post started me on the trail and then discovered that you have to use cURL instead of allow_url_fopen.
replace the ENTIRE "gxbl_simple_get_xml" function in functions_gxboxlive.php with the following:
Code:
function gxbl_simple_get_xml($url)
{
$ch = curl_init($url);
$html = fopen("example_htmlpage.html", "w");
curl_setopt($ch, CURLOPT_FILE, $html);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
fclose($html);
if ($html)
{
$xml = simplexml_load_file('example_htmlpage.html');
return gxbl_object_to_array($xml->body->div);
}
else
{
return false;
}
}
That fixed it for me - its working fine on my site again now.
|
doesn't works for me on 4.2
|