Re: Some images, many not found
$galleryfilespath = '/home/----/public_html/gallery';
Should have been:
$galleryfilespath = '/home/----/public_html/gallery/files';
It looks like everything may have been created in your gallery folder instead... Check that directory and see if you have some folders called 0-9. If so, move them to your gallery/files directory. If not, try changing the path in the PP import script and try running that again.