Copied to clipboard

Flag this post as spam?

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


  • Chad 25 posts 196 karma points
    Sep 02, 2015 @ 22:36
    Chad
    0

    File or directory not found

    I have a site that I have been running on my local IIS with no problem, and I recently did a push to our staging server environment as well. Both of these environments are pulling the data from the same Umbraco database, but suddenly today I can't access one of the nodes of the site locally.

    On the staging site I can go to 'domain.com/page' and the page loads, but locally if I go to '/page' I get a 404. I can go to all other pages just fine, it's only if I go to '/page or /page/subpage' that it's not found. If I use the preview from within the admin (running locally) I can see the page and all of the content is there, but when actually browsing to the page it gives the 404.

    So far I've tried recycling the App Pool, republishing all content from the main root, unpublishing the page and it's descendants then republishing all, and setting the local XmlCache to disabled - none of which are working.

    Any ideas on what this could be?

    Thanks!

  • Mark Bowser 273 posts 860 karma points c-trib
    Sep 02, 2015 @ 23:31
    Mark Bowser
    0

    When you say that you unpublished and then published all, do you mean that you did the "Republish the entire site"? Or did you right click on the specific node and select Publish in the context menu? Republishing the entire site is more of a light publish, and you probably want the one in the context menu.

    I would also try reindexing your examine indexes and checking in the App_Data\Logs\umbracoTraceLog.txt to see if there are any errors being thrown that are preventing the node from being published. Maybe there are file permissions?

    Are you able to unpublish and republish other nodes on your local site and have them still work? Verify that when you unpublish a node locally, that it actually gives you a 404, and then verify that you can publish it again.

    Do you see the node in question in the xml cache on disk at App_Data\umbraco.config?

  • Chad 25 posts 196 karma points
    Sep 08, 2015 @ 16:43
    Chad
    0

    Hi Mark,

    I did both - republished the entire site and unpublished/published the node in the context menu. Looking at the Trace Log, I think it looks like Umbraco thinks there is a different node ID for the root node in my local environment:

    2015-09-02 15:38:45,534 [6] DEBUG Umbraco.Web.UmbracoModule - [P4184/T1/D2] Begin request: http://domain.com/business.
    2015-09-02 15:38:45,534 [6] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [P4184/T1/D2] FindDomain: Uri="http://domain.com/business"
    2015-09-02 15:38:45,534 [6] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [P4184/T1/D2] FindDomain: Matches domain="domain.com/business", rootId=1073, culture="en-US"
    2015-09-02 15:38:45,534 [6] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [P4184/T1/D2] FindDomain: Culture="en-US"
    2015-09-02 15:38:45,534 [6] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [P4184/T1/D2] FindPublishedContentAndTemplate: Path="/business"
    2015-09-02 15:38:45,534 [6] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [P4184/T1/D2] FindPublishedContent: Begin finders
    2015-09-02 15:38:45,534 [6] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - [P4184/T1/D2] Test route "1073/"
    2015-09-02 15:38:45,534 [6] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - [P4184/T1/D2] No match.
    2015-09-02 15:38:45,534 [6] DEBUG Umbraco.Web.Routing.ContentFinderByIdPath - [P4184/T1/D2] Not a node id
    

    When I look at the content properties for the page at /business, it now says the ID is 1208. Looking in the umbraco.config file, it is also showing up there but it has an id of 1073 - which is what it was initially before unpublishing and then republishing. All of the subpages for business also show the path being based on 1073. For example:

     <SectionLandingPage id="1132" parentID="1073" ..... nodeName="Business Services" urlName="business-services" path="-1,1073,1132" .....></SectionLandingPage>
    

    What's really strange is that it all works in my staging server environment! Can I manually replace 1073 with the new ID of 1208 for everything, or is there a way to get the parent node page (/business) to be 1073 again?

    I can unpublish and republish other sections/pages with no problem, and the ID doesn't change on them. It's only this one giving me a problem.

  • Chad 25 posts 196 karma points
    Sep 11, 2015 @ 22:59
    Chad
    0

    Alright, I manually updated the Xml field in the database and the config file, but it is still trying to load the page at an absolute URL:

    absoluteUrl

    If I click in to another section that isn't having a problem, I get a standard path:

    standard

    I don't see where it would be getting an absolute URL from on the business pages?

Please Sign in or register to post replies

Write your reply to:

Draft