EHRETic wrote:I never got this error before, so I assume something is new.
There is actually nothing new in the script that creates the site object. It has always been:
if(function_exists('curl_version')) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $path);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, TRUE);
$site = curl_exec($ch);
curl_close($ch);
} else {
$site = @file_get_contents($path);
}
if($site === false) {
echo '{ "error": "Your server does not allow curl or file_get_contents for Url." }';
} else {
if(file_put_contents($file, $site)){
echo '{ "success": true }';
} else {
echo '{ "error": "Can\'t write to ' . $file . '" }';
}
}
In either case, either CURL or FILE_GET_CONTENTS simply
fails on your server. Why it changed for you now I don't know, but the script was always like this. Perhaps something security related?
Im surprised you managed to run the x3_updater though, because that also requires CURL. If you have FTP for me, I can take a look to see if I can find out anything ... Could be it's related to something else also, for example the URL that is called to create the site object.