Copied to clipboard

Flag this post as spam?

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


  • Ian Smedley 97 posts 192 karma points
    Jun 14, 2013 @ 09:18
    Ian Smedley
    0

    Republish Entire Site - 404 error on Sub pages

    Hi,

    I've got a problem with a current site which we started with Version 6.01  and has now been upgraded to 6.1.1

    Imagine a structure like this:

    Home

    Main Page

    Sub Page 1

    Sub Page 2

    Sub Page 3

    Main Page

    Sub Page 1

    You are on the site on http://sitename/MainPage/SubPage1/SubPage2 then if you go to the backend, and choose Republish Entire Site,  go back to the SubPage2 tab and hit F5 -  you get the "no nodes found 404 page" 

    If you go back to http://sitename/MainPage/SubPage1 - you get the same thing. Go back to http://sitename/MainPage - then that page, and every subsequent sub page will load fine.

    This is obviously a big issue for us - pages coming up with 404's when they do exist.

    I can't see why this would happen. We're using SQL 2005, with MVC - and this happens on both the current staging server (2012) and on the local development machines running Windows 7 and IISEXPRESS.

     

     

     

  • Ian Smedley 97 posts 192 karma points
    Jun 14, 2013 @ 14:10
    Ian Smedley
    100

    Solved!

    The problem was that there was no TemplateId coming back for the node...

    I eventually narrowed this down to the following (more accurate representation of the structure ;-))

    Home

    Main Page

    Sub-Page1 (No Template - just data)

    Sub-Page1 (Same name - but different Doc Type, which has a Template and data)

     

    The first time you tried to access /main-page/sub-page1 it would return the one without the template (hence the 404) once you've loaded /main-page/ then every subsequent request works.

    1.) Should Umbraco validate to ensure that two pages with the same name can't be added under a node?

    2.) Should Umbraco prioritise somehow - to evaluate multiple matches - and return the one with the template? 

     

    None of this explains to me why it ever worked, and returns the correct page!

Please Sign in or register to post replies

Write your reply to:

Draft