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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Error opening page settings after upgrade to 7.3.4Error opening page settings after upgrade to 7.3.4
Previous
 
Next
New Post
1/15/2015 7:57 AM
 
I'm receiving an issue, after upgrading from DNN 7.1 >> 7.03.04
I do see similar problems, but they are old, and the solution is not working.

When clicking "Page settings", I receive an error, on all pages, in all portals!

Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Value of '12/31/9999 11:59:59 PM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'. Parameter name: SelectedDate ---> System.ArgumentOutOfRangeException: Value of '12/31/9999 11:59:59 PM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'. Parameter name: SelectedDate at Telerik.Web.UI.RadDatePicker.set_SelectedDate(Nullable`1 value) at DotNetNuke.Modules.Admin.Tabs.ManageTabs.BindTab() at DotNetNuke.Modules.Admin.Tabs.ManageTabs. (EventArgs e) --- End of inner exception stack trace ---

After setting debug=true: (dutch error)
DotNetNuke.Services.Exceptions.Exceptions - FriendlyMessage="Fout: is op dit moment niet beschikbaar." ctrl="ASP.desktopmodules_admin_tabs_managetabs_ascx" exc="System.ArgumentOutOfRangeException: Value of '31-12-9999 23:59:59' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.
Parameter name: SelectedDate
at Telerik.Web.UI.RadDatePicker.set_SelectedDate(Nullable`1 value)
at DotNetNuke.Modules.Admin.Tabs.ManageTabs.BindTab() in d:\SITES\DotNetNuke\PROD\DesktopModules\Admin\Tabs\ManageTabs.ascx.cs:line 379
at DotNetNuke.Modules.Admin.Tabs.ManageTabs. (EventArgs e) in d:\SITES\DotNetNuke\PROD\DesktopModules\Admin\Tabs\ManageTabs.ascx.cs:line 1501"

Downloaded code. Code in that section:
    if (!Null.IsNull(Tab.StartDate))
    {
        startDatePicker.SelectedDate = Tab.StartDate;
    }
    if (!Null.IsNull(Tab.EndDate))
    {
        endDatePicker.SelectedDate = Tab.EndDate;
    }
    
    endDatePicker.MinDate = DateTime.Now;

I did found info about a bug, where the EndDate and/or the StartDate was like '12/31/9999 11:59:59 PM'  and the solution was:


UPDATE dnn_Modules SET StartDate=NULL WHERE StartDate LIKE '%9999%';
UPDATE dnn_Modules SET EndDate=NULL WHERE EndDate LIKE '%9999%';
UPDATE dnn_Tabs SET StartDate=NULL WHERE StartDate LIKE '%9999%';
UPDATE dnn_Tabs SET EndDate=NULL WHERE EndDate LIKE '%9999%';

But when I execute this, I get 0 rows effected... I even tried a script, searching all tables and all fields for %9999%, but there are no columns with that value at all...

It would probably be easier to set the radDate(Time) picker, to not give errors on invalid values, but only check it on save.

Well, no clue what this error courses... Anyone?

Regards,

Erik

 

 
New Post
1/15/2015 10:53 AM
 
Date is not a string, therefore "like" would not work.
you may use

UPDATE dnn_Modules SET StartDate=NULL WHERE StartDate > GetDate()
UPDATE dnn_Modules SET EndDate=NULL WHERE EndDate > GetDate()
UPDATE dnn_Tabs SET StartDate=NULL WHERE StartDate > GetDate()
UPDATE dnn_Tabs SET EndDate=NULL WHERE EndDate > GetDate()

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/15/2015 11:27 AM
 
Hello SEBASTIAN,

Thanks for your reply. Actually, it does work in MSSQL. I also had doubts, but a select on a date with like '%2014%' will produce rows... But that is besides the point;

I've checked both tables (module and tab), and all rows have an EndDate of NULL. But the program still produces the error. So, somewhere before this point, the date is set (between loading from DB and this row) the date is reset. I even checked the whole database, all tables and columns on the value '31/12/9999...'. It does not occur anywhere (FYI '%2014%' does produce results; dates, '%9999%' does not). 

I now changed 'DesktopModules/Admin/ManageTabs.ascx.cs':
 373    startDatePicker.SkipMinMaxDateValidationOnServer = true;
 374    endDatePicker.SkipMinMaxDateValidationOnServer = true;

And the problem is gone. The page settings screen opens fine and shows the value '9999-12-31 23:59:59' (Dutch format) in the EndDate box...  When I save this value, NULL is saved... So, there is a bug, somewhere...

I also did spot an other with this problem, in this version. (some job site, asking quotes to fix this)

Erik

 
New Post
1/15/2015 7:47 PM
 
very strange, and I didn't experience it in German (which uses same date format)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/18/2015 2:29 PM
 
Erik,
Thanks a lot for your fix. I used because I found the same error when copying a page in version 7.4.2 (english - default)
Notice tht the correct path is DesktopModules/Admin/Tabs/ManageTabs.ascx.cs
And in case someone wants to edit with just Notepad you search for BindSkins(); and add the 2 lineas so it will look like this:

BindSkins();

if (PortalSettings.SSLEnabled)
{
chkSecure.Enabled = true;
chkSecure.Checked = Tab.IsSecure;
}
else
{
chkSecure.Enabled = false;
chkSecure.Checked = Tab.IsSecure;
}
var allowIndex = false;


startDatePicker.SkipMinMaxDateValidationOnServer = true;
endDatePicker.SkipMinMaxDateValidationOnServer = true;

Regards,
Fred
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Error opening page settings after upgrade to 7.3.4Error opening page settings after upgrade to 7.3.4


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