Just because it's installed, doesn't necessarily mean it works ... Or it could be Windows-related and possibly X3 not rendering the PATH correctly from Windows. The below is the code, and it's failing ... Either your server does not allow curl or file_get_contents for security reasons, or the $path is corrupted from Windows. I don't normally recommend Windows, but if you got it working, ok. I would need FTP if I am to diagnose.
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." }';
You don't really need to use "site preload" any more. Since X3.25, there was already a new feature
"preload website auto cache" which does the same, although the cache is populated progressively. So any one visitor would need to view the pages before they get cached the same way as "site preloade". Read about in below link, scroll down to "Preload Website Auto Cache ".
https://www.photo.gallery/blog/photo-gallery-X3-25/
I think In will be improving the site preloader tool soon.