|
|
Rank: Member
Joined: 2/7/2010 Posts: 5
|
I have successfully integrated GSP into an existing website. I uploaded manually about 150 megs worth of pictures to a directory which has the same name as an empty album. When I try to synchronize without checking any of the checkboxes, it quickly tells me that Synchronization is complete but no pictures show up on my album. If I check any of the checkboxes, such as to recurse subdirectories, I get the following error.
Status: Synchronization error Current file: Error: System.NullReferenceException: Object reference not set to an instance of an object. HTTP Status: 500
What could be the problem? I have set permissions correctly and have set my application pool to be integrated. Don't know what this could be.
|
|
Rank: Administration
Joined: 8/3/2007 Posts: 1,996 Location: Fort Atkinson, WI
|
Does any additional information appear in the error log (in the Site admin area of GSP)?
Roger Martin Creator and Lead Developer of Gallery Server Pro
|
|
Rank: Member
Joined: 2/7/2010 Posts: 5
|
I just tried it again and got the same error (nothing in the Error Log table.)
Status: Synchronization error Current file: Error: System.NullReferenceException: Object reference not set to an instance of an object. HTTP Status: 500 Stack trace: at GalleryServerPro.ErrorHandler.AppError.ExtractHttpContextInfo() at GalleryServerPro.ErrorHandler.AppError..ctor(Exception ex) at GalleryServerPro.ErrorHandler.Error.Record(Exception ex) at GalleryServerPro.Web.Controller.AppErrorController.LogError(Exception ex) at Gsp.Gallery.Synchronize(Int32 albumId, String synchId, Boolean isRecursive, Boolean overwriteThumb, Boolean overwriteOpt, Boolean regenerateMetadata)
|
|
Rank: Administration
Joined: 8/3/2007 Posts: 1,996 Location: Fort Atkinson, WI
|
Oh crap. That info is saying there is an error in the error handling routine. That is a bug. I took a look at the source code and I'm not sure what might be happening. I'll consider how to make this more robust.
Meanwhile, the original error is being masked by the second one. The best thing you can do now is to temporarily move all of your media objects to another directory, then synch with all options checked to make sure it works. Then start moving directories in one or a few at a time, resynching each time. Eventually, if an error occurs, you'll be able to quickly identify which file (if any) is the troublemaker.
Keep us updated as to what you find - I want to make GSP as robust as possible so I would like to learn from your experience.
Roger Martin Creator and Lead Developer of Gallery Server Pro
|
|
Rank: Member
Joined: 2/7/2010 Posts: 5
|
I was able to create 2 new albums and upload 6 zip files containing the 37 files. I had originally FTP'd the files to a subdirectory under \gs\mediaobjects. The weird thing is that when I FTP's to the directory, I couldn't see the two new albums I created, yet the old problematic folder was there with all the pictures I had uploaded, even though I had deleted them from within GSP.
What I realize now is that I must have changed the settings in the config file or in the Media Objects - General area of Site Admin and entered the wrong directory. I just looked and it was \mediaobjects and not \gs\mediaobjects. So, when I look in the root directory, there is a \mediaobjects subdirectory there with my new albums and pictures.
When I got the original error, it may have bombed because it was looking for a directory that didn't exist.
So, now, I moved the files under the \mediaobjects that was created when I created the 2 new albums from the root, to under the \gs folder and when I try to sync, I get the same error.
I hope this helps you find the bug.
|
|
Rank: Member
Joined: 2/7/2010 Posts: 5
|
Update on last post by me. After reproducing the error and causing the Null Reference Exception, if you look at the Gallery, some of the pictures don't appear. On the NYSE album, some thumbnails show, but not others. On the StateFarm album, none of the pictures appear now even though all of the files are on the server. You can view the Gallery at http://ushaa.com/Gallery/This has something to do with changing the location of the mediaobjects in the config file and/or moving files in the file system. Let me know if you find a fix. Otherwise, I will have to start from scratch and delete and reupload the files. Thanks Roger!
|
|
Rank: Administration
Joined: 8/3/2007 Posts: 1,996 Location: Fort Atkinson, WI
|
I see 37 photos in the StateFarm album, so I am not sure why you are saying "none of the pictures appear".
Do you get the error when the mediaobjects directory is empty? If not, then slowly add directories and files, then synch until the error occurs. That will help you find the troublemaker file. Remember that you can synch individual albums, not just the root album. And continue to check the error log for any errors.
Roger Martin Creator and Lead Developer of Gallery Server Pro
|
|
Rank: Member
Joined: 2/7/2010 Posts: 5
|
It's fine now. It may have been cached or in memory because now they all appear fine. Let me know if you find the bug.
Also, is there a way to rename Albums from within the interface? The only way I see to do it is to rename the directory manually and then do a Sync.
Another question, is there a way for us to hook into photo sharing sites and display pictures that are stored there? This eliminates the storage restrictions on some people's accounts. It's a nice way to display pictures stored on external servers. I believe Flicker, Google, Photobucket, and other photo sharing sites have API's. Just a nice feature to have similar to the You Tube feature you have built in.
Nice software! We will be making a donation. Thanks for your support.
|
|
Rank: Administration
Joined: 8/3/2007 Posts: 1,996 Location: Fort Atkinson, WI
|
Glad you got it.
Choose Edit album info from the Actions menu to change the album title.
I will be adding integration capabilities to external sites such as Flicker when I can - it's been something I've been wanting to do for a while. It would probably come in the form of hooking into the RSS feed those sites offer.
Roger Martin Creator and Lead Developer of Gallery Server Pro
|
|
|
Guest |