When i was importing xml ads with remote images links it was ok, all images where loaded, but when i uplaoded images local, download time was 0.002 and import plugin crashed with an fatal error. Again, few hours of debug and fix released (i use last version of osclass).
in index.php from ads importer plugin folder replace :
foreach($image_list as $image) {
$tmp_name = "adimporterimage_".time();
$image_ok = osc_downloadFile($image->nodeValue, $tmp_name);
if($image_ok) {
$photos['error'][] = 0;
$photos['size'][] = 100;
$photos['type'][] = 'image/jpeg';
$photos['tmp_name'][] = osc_content_path()."downloads/".$tmp_name;
}
}
with
foreach($image_list as $k=>$image) {
$tmp_name = "adimporterimage_".$k."_".time();
$image_ok = osc_downloadFile($image->nodeValue, $tmp_name);
if($image_ok) {
$photos['error'][] = 0;
$photos['size'][] = 100;
$photos['type'][] = 'image/jpeg';
$photos['tmp_name'][] = osc_content_path()."downloads/".$tmp_name;
}
}