Copied to clipboard

Flag this post as spam?

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


  • Ricardo Carvalho 6 posts 26 karma points
    Aug 12, 2011 @ 14:48
    Ricardo Carvalho
    0

    Issue with displaying second level documents

    Hi All

    apologies if this topic has already been brought up before. However I haven't been able to find anything that can help me with my problem.

    Basically, I have created the following templates:
       Website
               Website Home Page
               Website First Level
               Website Second Level
    Each of the templates have the respective document types setup and linked correctly (as far as I am concerned) to their child nodes.

    The content structure that I have setup is as follows:
    Content
        Home
            Contact Us
                 Directions
                 Map
           About Us
                 Our History
                 Major Clients

    So far, so good, it all seems logical and simple. Also, this is my second Umbraco site and this setup worked perfectly in my first site. So.... here with the issue.

    If I try and access http://dev.site.co.za/ (setup as such in IIS). All is good.
    If I try and access http://dev.site.co.za/about-us.aspx or http://dev.site.co.za/about-us or http://dev.site.co.za/1067 . All is good.
    HOWEVER
    As soon as I try and access http://dev.site.co.za/about-us/our-history.aspx (or any varient thereof) Umbraco throws a 404 and displays me the general 404 page. This is confusing the hell out of me. An example of where this setup does work, can be found here at http://www.49million.co.za/get-involved/downloads.aspx.

    Essentially, it would seem that if I try and access the second level nav, nothing gets displayed. In terms of the difference in setup between the two projects, the only thing is, that on my first project I used a template to start off with. The second project, I started from the ground up. SO ran the install and did not install a template.

    Any help will be appreciated as I have no clue.
    Thanks

    Ricardo Carvalho

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 12, 2011 @ 14:59
    Dirk De Grave
    0

    Ricardo,

    First suggestion: try adding ?umbdebugshowtrace=true and find out how umbraco is trying to render that page. I know it'll tell it be using the 404handle, but maybe there's already a clue in the trace statements before that? Can you check? 

    Cheers,

    /Dirk

  • Ricardo Carvalho 6 posts 26 karma points
    Aug 12, 2011 @ 15:07
    Ricardo Carvalho
    0

    Dirk

    You sir, are a legend. You have given me the ability to see something that I would never have figured. I didn't even think to use the debug method. I get this error:

    template Master template is the same as the current template. It would course an endless loop!


    Now I must try and figure out what that means and how to fix it. :)

    Thanks again for a quick reply.

  • Ricardo Carvalho 6 posts 26 karma points
    Aug 12, 2011 @ 16:41
    Ricardo Carvalho
    0

    Hi

    After further investigation. I see that my master template (ie Website) is set to have no master template. As in the drop down list is set to none. Also, if I navigate to a different third level document like http://dev.glmi.co.za/contact-us/directions.aspx, I still get a 404 thrown but in the debug mode (?umbdebugshowtrace=true) it no longer shows the same error as above. I now get this in the trace route:

    Category    Message    From First(s)    From Last(s)
    aspx.page    Begin PreInit       
    umbracoInit    handling request    1.88201993435514E-05    0.000019
    request handler    current url '/contact-us/directions.aspx'    0.000108472785307378    0.000090
    umbracoRequestHandler    xpath: '/root/*/* [@urlName = "contact-us"]/* [@urlName = "directions"] | /root/* [@urlName = "directions"]'    0.000150903780191022    0.000042
    umbracoRequestHandler    Just before xPath query (False, '/root/*/* [@urlName = "contact-us"]/* [@urlName = "directions"] | /root/* [@urlName = "directions"]')    0.000179647357370264    0.000029
    umbracoRequestHandler    pageXPathQueryStart: '/root'    0.000192992589632055    0.000013
    umbracoRequestHandler    Adding to cache... ('/contact-us/directions.aspx')    0.000303860673037703    0.000111
    umbracoRequestHandler    After xPath query    0.000317548090742104    0.000014
    umbracoRequestHandler    Access checking started    0.000339790144511756    0.000022
    umbracoRequestHandler    Page not protected    0.000358268158412698    0.000018
    umbracoRequestHandler    Access checking ended    0.000369560278018828    0.000011
    umbracoInit    Done handling request    0.000379483655854519    0.000010
    umbracoPage    testing altTemplate    0.000510198494931549    0.000131
    umbracoPage    Element loaded: bodyText    0.000560841940437833    0.000051
    umbracoPage    Element loaded: hideInNav    0.000584452735977925    0.000024
    umbracoPage    Pagedata loaded for Directions (ID: 1083)    0.000598140153682326    0.000014
    umbracoPage    Looking up skin information    0.000623804061878078    0.000026

    The part that really boggles my mind is the second last line. Pagedata loaded for Directions (ID: 1083). That is the exact correct PageId for the page that I am trying to call.

    Regards
    Ricardo Carvalho

Please Sign in or register to post replies

Write your reply to:

Draft