Version Wordpress 2.9.2
Hi, i want to migrate my pixelpost photoblog to wordpress and I have an issue to submit :
When I try to import via the script made by http://blog.perfectedperspectives.com/2009/pixelpost-to-wordpress-migration/
I have this error for each picture :
File not found../images/20060520070301_basket ball dream team.jpg
Warning: getimagesize(/home/parisph/public_html/photos/wp-content/uploads/2010/04/basket ball dream team.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/parisph/public_html/photos/wp-admin/import/pixelpost.php on line 317
The line 317 is the following :
// Generate the attachment's postmeta
$imagesize = getimagesize($file);
$imagedata['width'] = $imagesize['0'];
$imagedata['height'] = $imagesize['1'];
list($uwidth, $uheight) = get_udims($imagedata['width'], $imagedata['height']);
$imagedata['hwstring_small'] = "height='$uheight' width='$uwidth'";
$imagedata['file'] = $file;
add_post_meta($image_id, '_wp_attachment_metadata', $imagedata);
if ( $imagedata['width'] * $imagedata['height'] < 3 * 1024 * 1024 ) {
if ( $imagedata['width'] > 128 && $imagedata['width'] >= $imagedata['height'] * 4 / 3 )
$thumb = wp_create_thumbnail($file, 128);
elseif ( $imagedata['height'] > 96 )
$thumb = wp_create_thumbnail($file, 96);
if ( @file_exists($thumb) ) {
$newdata = $imagedata;
$newdata['thumb'] = basename($thumb);
update_post_meta($image_id, '_wp_attachment_metadata', $newdata, $imagedata);
echo '.'; // for some reason, thumbnails didn't work until I put this echo here...
} else {
$error = $thumb;
}
} // end if
if ($error) {
print_r($error);
}
} // end foreach
set_time_limit(30);
Do you have any idea how to resolve this issue ?