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...Language and In...Language and In...Bug in ControlBar.ascx ?Bug in ControlBar.ascx ?
Previous
 
Next
New Post
4/8/2014 10:24 AM
 

I enabled Localized Content. I asked DNN to copy all pages to the new language. Now, I am trying to view a page, and I am getting an error.

This is the error from the EventLog:

DotNetNuke.Services.Exceptions.PageLoadException: Value cannot be null.Parameter name: format ---> System.ArgumentNullException: Value cannot be null.Parameter name: format   at System.String.Format(String format, Object arg0)   at DotNetNuke.UI.ControlPanels.ControlBar.LoadPaneList() in d:\Online.Nuke.7\Website\admin\ControlPanel\ControlBar.ascx.cs:line 217   at ASP.admin_controlpanel_controlbar_ascx.__RenderControlPanel(HtmlTextWriter __w, Control parameterContainer) in d:\Online.Nuke.7\Website\admin\ControlPanel\ControlBar.ascx:line 351   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   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 ASP.admin_controlpanel_controlbar_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\online_7\b2fb7384\92a5cc98\App_Web_5ewhckwm.2.cs:line 0   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)   at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)   at System.Web.UI.Page.Render(HtmlTextWriter writer)   at DotNetNuke.Framework.DefaultPage.Render(HtmlTextWriter writer) in d:\Online.Nuke.7\Website\Default.aspx.cs:line 931   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   --- End of inner exception stack trace ---

 

Through debugging I found out that the error is in this line of admin/ControlPanel/ControlBar.ascx.cs:

var botPane = new string[]{

                        string.Format(GetString("Pane.Add.Text"), p),

                        p.ToString(),

                        "BOTTOM"

                    };

GetString("Pane.Add.Text") always returns null. I tried with "Pane.Add". Same. I tried to copy resx file to ControlBar.el-GR.ascx.resx. Same.

 

Any ideas?

 

 
New Post
4/8/2014 6:48 PM
 
not sure what the issue might be, as long as the admin\ControlPanel\App_LocalResources folder is in place and there is a correctly named resx (e.g. ControlBar.ascx.resx by default), it should work i.e. even if your localized version is missing DNN will fallback to the default. Please make sure you haven't accidentally disabled your greek language.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/9/2014 5:17 AM
 

Thanks! That was the problem. I haven't notice that you need to mark the Active property after content localization.

 
New Post
4/9/2014 9:25 AM
 
it's a bug in that the platform should always ensure there is an active locale - in some cases this isn't so but if the language is en-US we assume it should be active so the error doesn't happen for that locale.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/9/2014 9:59 AM
 

We have the en-US locale disabled, as we are using the en-GB which it the default. So, maybe there is the problem.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Bug in ControlBar.ascx ?Bug in ControlBar.ascx ?


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.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out