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 ForumsGalleryGalleryDate format causes error when user using different languagesDate format causes error when user using different languages
Previous
 
Next
New Post
2/22/2007 3:03 PM
 

I see that this bug is listed on gemini as fixed for 03.00.11, but I'm still experiencing it in 03.01.12.  I have a site that was created in English, but when viewed in Spanish, the Gallery module gives the classic "Object reference not set to instance of an object".  Then if I check the logs I see a module load exception with a message of

DotNetNuke.Services.Exceptions.ModuleLoadException: Error no manejado al agregar el módulo a ContentPane ---> System.InvalidCastException: Conversion from string "2/22/2007" to type 'Date' is not valid. at Microsoft.VisualBasic.CompilerServices.DateType.FromString(String Value, CultureInfo culture) at Microsoft.VisualBasic.CompilerServices.DateType.FromString(String Value) at DotNetNuke.Modules.Gallery.GalleryXML.CreatedDate(String FileName) at DotNetNuke.Modules.Gallery.GalleryFolder.Populate() at DotNetNuke.Modules.Gallery.Utils.PopulateAllFolders(GalleryFolder rootFolder) at DotNetNuke.Modules.Gallery.Config..ctor(Int32 ModuleID) at DotNetNuke.Modules.Gallery.Config.GetGalleryConfig(Int32 ModuleID) at DotNetNuke.Modules.Gallery.Container.Initialize() at DotNetNuke.Modules.Gallery.Container.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

I am assuming this is caused by how the date is given 02/22/2007 in English and 22/02/2007 in Spanish.  Most likely this is not an error if the date/day stored in the module has an integer value less than 13.  I guess one could try to edit the database and change the date value as a workaround. 

 
New Post
2/23/2007 6:31 PM
 
For a bandade fix, I went in to all the Albums in the Gallery and edited each individual photo one-by-one to change any date that had an integer value greater than 12.  For example, if the date was 2/22/2007, I changed it to 2/12/2007.  And that fixed the problem.  So now my users can view their albums, it's just that the dates may be 2 or 3 weeks off.  Hopefully this language/culture bug gets fixed in the next release.
 
New Post
2/23/2007 6:45 PM
 

I see in the FAQ About Gallery, that this problem is blamed on the Gallery module using XML files for its metadata.  Is that just a paradigm issue?  None of the other modules I'm using experience this problem with dates.  Even the Forum module, which I understand was written by the same team, does not have this problem.  With a lot of international users, you never know whether someone is going to view your site with a browser set to English, Spanish, German, or whatever culture setting they may have.  Ever core DNN module should be written anticipating that this condition will occur.

 
New Post
4/2/2007 10:10 AM
 
Any update on this outstanding error?
 
New Post
4/2/2007 2:27 PM
 

Yes it is a known bug in the current beta version of the gallery.  When the next release comes out it will be fixed.  As for the date on the next release..I really don't know, other than, a while.

You are welcome to try out my patched/fixed version of the gallery with this, and other, bugs fixed.  www.Jegers.com

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryDate format causes error when user using different languagesDate format causes error when user using different languages


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