Event Calander

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/2/2008 2:45:21 PM
Gravatar
Total Posts 104

Event Calander

Hi,

I use a calander in my mooportal and also portal language is Farsi, when I try to add an event , I get this error message , also now I can't open the page that has this module after I try to add event:

this is the System Log:

Would you please help me to fix it?

2008-09-02 21:33:09,363 [6268] ERROR mojoPortal.Web.mojoBasePage [(null)] - 193.178.201.67-fa-IR - /TermSch.aspx
System.FormatException: String was not recognized as a valid DateTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
at System.DateTime.Parse(String s, IFormatProvider provider)
at System.Data.ConstNode..ctor(DataTable table, ValueType type, Object constant, Boolean fParseQuotes)
at System.Data.ExpressionParser.Parse()
at System.Data.DataExpression..ctor(DataTable table, String expression, Type type)
at System.Data.DataView.set_RowFilter(String value)
at mojoPortal.Web.Controls.DataCalendar.OnDayRender(TableCell cell, CalendarDay day)
at System.Web.UI.WebControls.Calendar.RenderDays(HtmlTextWriter writer, DateTime firstDay, DateTime visibleDate, CalendarSelectionMode selectionMode, Boolean buttonsActive, Boolean useAccessibleHeader)
at System.Web.UI.WebControls.Calendar.Render(HtmlTextWriter writer)
at mojoPortal.Web.Controls.DataCalendar.Render(HtmlTextWriter html)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.Control.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.Control.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.Control.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at mojoPortal.Web.mojoBasePage.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

 

PS . Is there any way that I force mojoportal to use only farsi language and not using browser settings?

9/2/2008 3:14:40 PM
Gravatar
Total Posts 18439

Re: Event Calander

Hi,

I was able to produce this error on my machine by changing my browser language to Persian and adding an event to the calendar. I did manage to fix it so the error doesn't happen. If you are a develooper, the fix for this will be in svn trunk by later tonight sometime, for everyone else it will be fixed when I make the next release.

It is possible to specify a culture instead of using the browser settings as documented here:

http://www.mojoportal.com/localization.aspx

However, it won't work if you set it to a default culture that has not been fully translated, you will probably get null reference exception if there are missing keys in the default resource files. I'm 100% sure our Persian translation is missing some keys so you would need to find all the missing ones (by comparing to the English resource files) and update the resource files to fill in the missing keys. If you do that, please send me the updated files so I can include them in mojoportal.

Hope it helps,

Joe

9/3/2008 12:27:08 AM
Gravatar
Total Posts 104

Re: Event Calander

Thanks for your response.

As soon as I update Persian resources files I will send them.

I find some other bug in Persian language and Calander ( Blog Module ) I will send more details soon.

9/3/2008 12:58:38 AM
Gravatar
Total Posts 104

Re: Event Calander

In Blog module , when we use Persian language and check the Show Archive , there is a bug.

in this case we see a list of months , Month an Year didnt convert to Persian Calander but using Persian name for month.

For Example , for August 2008 , write  آبانo 2008 , which آبان (ABAN ) is  the name of 8'th month in persian calander.

it most chaneg to مرداد 1387 which مرداد is name of 5'th month is Persian Calander ( around 21 July - 21 Aug) .

Sorry for my bad english :)

9/3/2008 9:59:54 AM
Gravatar
Total Posts 550

Re: Event Calander

Hi Ashian

 I treid to solve archives  in blog module , but some SQL function needs in database side (becuase perisan months and English months not match  ),but after negusciate with joe audette , he do'nt agree to merge these funtion in the core of mojoportal.So I may be decide to distribute  a Persian Pack for customizie Persian Language. Feel free to ask you question form me.

I hope to help you.

 

 

9/3/2008 3:29:53 PM
Gravatar
Total Posts 18439

Re: Event Calander

Hi Ashian and Hi Asad,

I implemented a solution for this problem today without making any changes to the database. My fix will be in svn trunk later tonight so you can test it and tell me if it is solved correctly. I'm not sure about the year because it came out as 2008 = 1386 (you said it should be 1387 so maybe I'm off by one year?)

Asad, the reason I did not want to integrate the sql changes is because I don't think we need to solve this problem in the database, it can be solved outside the database and this will be better because we have 5 different databases and I don't want the complexity of having 5 different solutions.

I added a few methods to PersianDateHelper.cs to achieve this solution. As I mentioned above I'm not sure I got the year calculation right so it may need a little tweaking to fix it.

Let me know after you test it if it still needs fixing.

Best,

Joe

9/5/2008 3:57:15 AM
Gravatar
Total Posts 550

Re: Event Calander

Hi Joe
First of all I thank you for attention to my Language (Persian).I tests your effort to solve my problem in blog module. Months appear correctly but years are incorrect. I inform you that 1387 not exactly equal 2008 but 1387 start from Match of 2008 and finish in March 2009.So 1387 float in 2008 and 2009.
Thanks again.
Best Regards
Asad
 

9/5/2008 7:17:50 AM
Gravatar
Total Posts 18439

Re: Event Calander

Hi Asad,

I made a few fixes that seem to solve the year problem. My changes will be in svn trunk by tonight.

Best,

Joe

9/6/2008 7:30:17 AM
Gravatar
Total Posts 104

Re: Event Calander

Hi Joe,

thanks for your attention.as I see in your site , year and month are correct.

hope I can complete the Persian Language pack soon , then I will send you.

Best wishes

Mehdi Alidoost

Ashian ICT Solutions

9/6/2008 8:00:50 AM
Gravatar
Total Posts 18439

Re: Event Calander

Hi Mehdi,

I forgot to mention before, there are also files to translate in the Web/Data/MessageTemplates folder.

Thanks for your help in updating the Persian translation. You may also wish to coordinate your efforts with Asad, because he made the Persian translations we have now.

Best,

Joe

9/6/2008 8:26:40 AM
Gravatar
Total Posts 104

Re: Event Calander

Ok,

I read current translation and will update them ( non translated and also some update for current translations ) after finishing I will send them to you and Asad , hope we have a complete Persain Language pack then.

best wishes

Mehdi Alidoost

You must sign in to post in the forums. This thread is closed to new posts.