Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Gallery Module ...  Date format causes error when user using different languages
Previous Previous
 
Next Next
New Post 2/22/2007 12:03 PM
User is offline Gary Steiner
66 posts
10th Ranked


Date format causes error when user using different languages 

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 3:31 PM
User is offline Gary Steiner
66 posts
10th Ranked


Re: Date format causes error when user using different languages 
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 3:45 PM
User is offline Gary Steiner
66 posts
10th Ranked


Re: Date format causes error when user using different languages 
Modified By Gary Steiner  on 2/23/2007 6:50:04 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 8:10 AM
User is offline Mediademon
21 posts
www.mediademon.com
10th Ranked


Re: Date format causes error when user using different languages 
Any update on this outstanding error?
 
New Post 4/2/2007 12:27 PM
User is offline James Jegers
216 posts
www.Jegers.com
9th Ranked


Re: Date format causes error when user using different languages 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Gallery Module ...  Date format causes error when user using different languages
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP