Copied to clipboard

Flag this post as spam?

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


  • MB 273 posts 936 karma points
    Sep 03, 2016 @ 22:13
    MB
    0

    No umbraco document matches the url

    Hi everyone,

    I need a superhero to rescue me right now.

    Online and locally I can't access any pages beside my frontpage at roldskov.sp34k.dk

    • Under Culture and Hostnames I have added: http://roldskov.sp34k.dk/ and http://localhost:52242/, otherwise Umbraco complains about RenderBody()
    • I have tired republishing the site
    • I have checked that all document types are using a template
    • I have tried recycling the application through my IIS

    What am I missing?

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Sep 03, 2016 @ 23:49
    Nicholas Westby
    1

    Let's take this page for example: http://roldskov.sp34k.dk/produkter/tilbehoer/pedaler/look/

    404

    As you say, it is showing a 404. First, I'd check each and every ancestor page, including the homepage, to ensure the "Link to document" on the "Properties" tab is the correct URL. That means you should check the properties tab of each of these pages:

    I find that sometimes (for whatever reason) ancestor pages can become unpublished, which causes all descendant pages to become unpublished. Usually, this manifests by the "Link to document" appearing as "#" (i.e., a hash character) rather than the correct URL.

    You might also confirm that the "Template" is set on the properties tab for each of those pages. And confirm that whatever template they are set to exists in the developer section and on the file system. Additionally, confirm that all of the layouts used by your templates exist on the file system.

    Also, confirm that when you publish a content node, an entry is created in the Umbraco log that says a content node was published, in addition to confirming no other errors are added to the Umbraco log when you perform that publish.

    I would also recommend you add any extra information here that may be useful in troubleshooting. For example, the Umbraco version you are using, and if you are using any custom URL providers or content finders. Also, can you create new pages and do they also show up as a 404? A screenshot of the back office content tree could be useful too (e.g., to confirm that the pages are actually published and not just saved).

  • MB 273 posts 936 karma points
    Sep 04, 2016 @ 08:24
    MB
    0

    Hi Nicholas,

    Thank you for reading my post and helping me out, I appreciate that!

    Alrighty, first thing first, the details:

    • Umbraco version 7.5.2 assembly: 1.0.6079.16190
    • All pages return a 404
    • I don't know exactly what custom url providers is so I guess the answer would be "no"
    • I have tried to republish every page individually but with no success
    • Using "link to document" still result in a 404
    • BUT if I choose a new "culture and hostname" page, that specific page works

    Since there's nothing to hide on my side, you are more than welcome to login:

    www.roldskov.sp34k.dk/umbraco
    ID: [email protected]
    PW: public123456
    
  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Sep 04, 2016 @ 08:43
    Nicholas Westby
    0

    I'm heading off to bed now. Perhaps somebody else can hop on and assist in the meantime.

    By the way, those credentials don't seem to work.

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Sep 04, 2016 @ 16:17
    Nicholas Westby
    1

    Seems to work now, in terms of no longer being a 404. And I was able to log in. However, looks like you've got another error:

    Error

  • MB 273 posts 936 karma points
    Sep 04, 2016 @ 16:41
    MB
    0

    Hey Nicholas! :o)

    Yes it seems that if the domain (http://roldskov.sp34k.dk/) is removed from the Culture and Hostnames (forside node), all the subpages works, but then the frontpage doesn't work.

    How do I tell umbraco that the default.aspx page should be the frontpage/forside node? I have always done this through the Culture and hostnames.

    Oh and thank you once again for diggin' into this issue and helping me out :)

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Sep 04, 2016 @ 19:11
    Nicholas Westby
    100

    Why would you want the homepage to use the default.aspx file? For one, Umbraco has never worked with aspx files. It now defaults to CSHTML and previously used MASTER files, I believe.

    Here, we can clearly see the problem is that the homepage is using the "Master" template:

    Master Template Homepage

    And in the settings section, we can clearly see that the "Master" template should only be used as a layout and not as a view:

    Templates

    Based on the naming, I'd guess you would want to use the "Frontpage" template (also shown in the above screenshot).

    Furthermore, you appear to have created the homepage node with the "Master" document type, whereas I suspect you should have created it with the "Frontpage" document type:

    Frontpage

    If that's true, you will likely want to create a new homepage node, move all the old pages under the new homepage, then delete the old homepage.

  • MB 273 posts 936 karma points
    Sep 05, 2016 @ 08:40
    MB
    1

    And that my friend, was the answer! I created a "Frontpage" node at the Content Root with all it's children pages, and it worked!

    I guess I did it wrong using the Master at content root. I have always done this because of the "footer" content which should be used on all pages.

    Thank you Nicholas, for being so patient with me and helping me out here! I really appreciate it!

Please Sign in or register to post replies

Write your reply to:

Draft