I found the jpg triggering the error message. There was a file named folder.jpg in one of my album folders which showed 0 bytes. When I removed that file everything worked fine. When I placed it back in the folder I got the error message. I have now replaced that file with an appropriate jpg and everything works great. Thanks for your help.