Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Charles 42 posts 63 karma points
    Mar 03, 2014 @ 18:41
    Charles
    0

    Creation of new Content pages gives me 404 Error on those URLs...

    Looking at this video here http://www.youtube.com/watch?v=SwrNS_5mZoU followed it step by step, have installation on localhost, but my urls for content created on new templates point to 404 Error pages.  How to debug this?

  • Charles 42 posts 63 karma points
    Mar 03, 2014 @ 20:55
    Charles
    0

    Digging into it more shows this:

    System.ArgumentException was unhandled by user code
      HResult=-2147024809
      Message=No node exists with id '0'
      Source=cms
      StackTrace:
           at umbraco.cms.businesslogic.CMSNode.setupNode()
           at umbraco.cms.businesslogic.template.Template.setupNode()
           at umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id)
           at umbraco.cms.businesslogic.template.Template..ctor(Int32 id)
           at controls_HeaderControl.LoadData() in c:\inetpub\Website_new\controls\HeaderControl.ascx.cs:line 38
           at MasterMain.Page_Load(Object sender, EventArgs e) in c:\inetpub\Website_new\MasterMain.master.cs:line 104
           at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
           at System.Web.UI.Control.OnLoad(EventArgs e)
           at System.Web.UI.Control.LoadRecursive()
           at System.Web.UI.Control.LoadRecursive()
           at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
      InnerException: 

    And points to HeaderControl.ascx.cs file on this line here:

        else if(new umbraco.cms.businesslogic.template.Template((Context.GetContent()).template).Alias == "TemplateLanguage") 
    The entire method looks like this:
    public void LoadData()
    {
        return;
        _Location = HttpContext.Current.GetLocation();
      
        if (Context.GetContent().NodeTypeAlias == "Home")
        {
            TheHomeHeaderPH.Visible = true;
            ThePhonePH.Visible      = true;
            _MenuStyle = "var-nav nav-large";
            LoadMenuTopControl();
            LoadMenuMainControl();
        }  
        else if(new umbraco.cms.businesslogic.template.Template((Context.GetContent()).template).Alias == "TemplateLanguage") 
        {
            TheContentHeaderPH.Visible = true;
            _MenuStyle              = "nav-small";
            LoadContentMenuTopControl();
            LoadMenuLanguageControl();
        }
        else
        {
            MMG.BusinessLayer.Content theContent = MMG.BusinessLayer.Content.GetCached(Context.GetContent());
            if (theContent.TemplateColor == "168C9C")
            {
                TheHomeHeaderPH.Visible = true;
                _MenuStyle = "nav-small";
                LoadMenuTopControl();
                LoadMenuMainControl();
            }
            else
            {
                TheContentHeaderPH.Visible = true;
                LoadContentMenuTopControl();
                LoadContentMenuMainControl();
            }
        }
    }
    How to fix this?  How does the node have an id of 0??
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies