I’ve solved yesterday’s technical problems. It turned out that Gallery 2‘s built-in handling of old links to Gallery 1 photos was causing the problem. Turning off the automatic mapping (under “URL Rewrite/Migration”) and replacing it with the rewrite rules in .htaccess suggested by the “Import/Gallery 1” page solved the problem.