Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryGallery in DNN 4.3.5 ErrorsGallery in DNN 4.3.5 Errors
Previous
 
Next
New Post
9/26/2006 12:58 PM
 

I've installed the Gallery module and have setup several pages and albums but am having some trouble.  I setup 3 pages using the gallery module, the first 2 only have 5 - 12 photos each and they seem to work fine, the third page has 5 albums in it and some of the galleries have 270+ photos, that's the one I'm having trouble with.

Some times it loads slow but does load, about 80% of the time I get:

A critical error has occurred.
Object reference not set to an instance of an object.

One time I received a page with the following but the rest of the DNN site didn't come up:

An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Gallery.WebControls.Pager.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

I populated all the galleries by uploading all the files to their respective _source folders, then ran the Maintenance, checked them all and synchronized them.  Which brings up 2 more problems, the first is that every time I've tried the Check All box I have to do it twice before it actually check marks each photo, the second is that twice I've received the following error while trying to go into the maintenance:

A critical error has occurred.
The process cannot access the file 'D:\WWW\mainefreeze.com\wwwroot\dnn\Portals\0\Gallery\379\Crush 05-27-06\_metadata.resources' because it is being used by another process.

This is the reason why I added seperate pages for the other 2 galleries instead of just adding more albums, if I add the photos in more albums then none of the galleries will come up, this way at least the first 2 sets of photos display.

Any ideas on what I can do to fix these errors?

 
New Post
9/26/2006 1:49 PM
 

I just had a client's site with this gallery in 4.3.5 and on pages with 30+ pics I got some issues so I just reduced them to about 25 max per page.  This mod is great and sensitive and you must make sure you use lower jpeg quality and use less pics on each page.  In the "Configuration" settings you should specify your setting parameters and I would personally break down those some other way.  270 pics is a lot for 1 page without using some type of client side script to preload on minimize load time.

 

-Mark

 
New Post
9/26/2006 3:38 PM
 
I figured it was just too many pics but was hoping that there was come tweak I could do to make it work better with large numbers of photos.  I had already optimized and resized all the photos before putting them in the gallery, so that didn't help with the error.  I don't think it loads all 270 on any one page, just 6 per page with many pages, unless it's loading them in the background when you go to the album.  Had to go in and delete the whole page, I couldn't get it to load at all any more. 
 
New Post
11/28/2006 5:14 PM
 
I am having the same problem.  By the nature of the error message, it seems that concurrent processes are attempting do xml sit-ups against _metadata.resources and no check is being made to see if _metadata.resources is available for reading.  Theoretically speaking, with larger albums it would take longer to parse a larger _metadata.resources files therefore, increasing the likelyhood that we would have conflicts if unchecked.  The likelyhood of a conflict is reduced when parsing a smaller _metadata.resources for a 15-20 pic album.  I'm not sure that the size of the album is the root cause of our problem.  please prove me wrong
 
New Post
11/28/2006 10:59 PM
 

First, as a little background on what is happening:

When a web request comes in for the gallery module, the gallery module looks to see if it has a cache already setup in memory for all of the pictures in the albumn.  If it does, it create the page and sends it back to the user.  If it does not have a cache, it goes and checks all of the files, adding them to the cache, and (possibly) updating the _metadata.resources(configuration/settings/data) file.

The problem is that if two requests come in at the same time requesting an albumn while the cache isn't built, both requests will end up trying to recreate the cache.  An example is if the person gets impatient and hits the refresh button in their browser.  Should the settings file need to be updated during those cache rebuilds (which unfortunately it does more often than really necessary) you will get two processes trying to update the file--and thereby the error mentioned.

One solution is what others have mentioned and that is to limit the size of the albumns.  Basically if the albumns are small, the cache can be created quicker.

The other is to be patient during the first load of the cache.  If you change settings in the module, add pictures, upload pictures, etc, the cache needs to be rebuilt and you just need to wait the time (which for me is usually like 20 seconds) and once the cache is built all future requests should work just fine.  While I haven't tested all of the code paths, this error should really only occur when an admin is messing with the site.  Once things are setup and the cache is built, there shouldn't be any errors.

I put together a sample site on my computer with 1,004 pictures in it and if you waited the 30 seconds for the cache to load, the rest of the requests went quickly with no problem.  BTW: I tested it with 500 pictures on a page at a time (5 columns by 100 rows), 2 pages.

Trust and be patient, my son.......

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryGallery in DNN 4.3.5 ErrorsGallery in DNN 4.3.5 Errors


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out