
08-04-2012, 02:11 PM
|
|
|
Join Date: Dec 2011
Location: Berkshires
Posts: 6
Благодарил(а): 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.
|
THAT DID IT! (I'm running 4.12) You Rock!!! :up: :up: :up:
|