Copied to clipboard

Flag this post as spam?

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


  • Amir Khan 1199 posts 2567 karma points
    Oct 15, 2015 @ 14:14
    Amir Khan
    0

    404 Returns Random Template

    Hi, I'm using the Page Not Found Manager on a multisite installation with 6 domains. I've set a 404 page for each domain, but I'm experiencing some really odd behavior.

    I have some logic to switch the header of the page based on the node (see below). If I go to domain1.com/somenotexistingpage it will preserve the domain as domain1.com but return a header from another site like domain2.com. This doesn't happen anywhere else on the site except with 404 pages. Is there any reason my view switching logic would be conflicting with the package?

    Here's what I'm using:

    @if(CurrentPage.IsDescendantOrSelf(Umbraco.Content(1234))) {
            @Html.Partial("~/Views/Partials/Headers/BlogHeader.cshtml")
        }
    

    Thank you!

    Amir

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 15, 2015 @ 14:27
    Tim Geyssens
    0

    So this happens on the 404 page? Where is your 404 page located? Do you have one for each of the 6 domains? Or just point it to a single one?

  • Amir Khan 1199 posts 2567 karma points
    Oct 15, 2015 @ 14:34
    Amir Khan
    0

    Yep, happens on the 404 pages. There is one per domain, living under the root node for that site. The 404 pages themselves look fine when you hit them directly.

    Also, I just noticed that the funky behavior only happens when hitting a non-existing page on the root of the domain.

    So domain1.com/nonexistingpage returns a random header, domain1.com/existingpage/nonexistingpage returns the correct one.

    Any ideas?

    Amir

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 15, 2015 @ 14:43
    Tim Geyssens
    0

    Hmm no ideas, will setup a similar environment and get back to you tomorrow, which Umbraco version are you on, 7.3 I suppose?

  • Amir Khan 1199 posts 2567 karma points
    Oct 15, 2015 @ 14:59
    Amir Khan
    0

    Hi Tim, 7.2.4. Thanks for your help, excited to see what you find.

    -Amir

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 15, 2015 @ 15:16
    Tim Geyssens
    0

    Ow then you are using an older version of Page not found manager, since the latest only works on 7.3, any chance you can upgrade? Loads of bug fixes in 7.3

  • Amir Khan 1199 posts 2567 karma points
    Oct 15, 2015 @ 15:30
    Amir Khan
    0

    I can but that is not a simple undertaking....Any fixes up to 1.5.1 that might address the issues? I have 1.4.0 installed currently. Just wondering if its worth trying...

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 15, 2015 @ 16:12
    Tim Geyssens
    0

    Nope don't think so, will see if I can make a version for you that works on 7.2.4

  • Amir Khan 1199 posts 2567 karma points
    Oct 21, 2015 @ 18:01
    Amir Khan
    0

    Hi Tim, any luck on this?

    Thanks! Amir

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 21, 2015 @ 18:36
    Tim Geyssens
    0

    Not yet, will give it a shot tomorrow and get back to you then (or if you feel comfortable building from the source I can give you the pointers needed to make it work)

  • Amir Khan 1199 posts 2567 karma points
    Oct 21, 2015 @ 18:37
    Amir Khan
    0

    I'm happy to try first to save you some time if you think its worth it!

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 21, 2015 @ 18:40
    Tim Geyssens
    0

    Well this is the content finder that should work on older version then 7.3, https://github.com/marcemarc/UmbracoPageNotFoundManager/blob/marcemarc-fix-%233/PageNotFoundManager/PageNotFoundContentFinder.cs (provided by Marc Goodson) You can try to pull and build the assembly and drop it in your bin directory, that should do the trick.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 21, 2015 @ 19:21
    Tim Geyssens
    0

    But looks like it's a couple of commits behind so will build it with recent changes tomorrow

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 22, 2015 @ 10:34
    Tim Geyssens
    100

    Ok could you try with this dll https://www.dropbox.com/s/ra56n15bspmj94w/PageNotFoundManager.dll?dl=0 and see if that works

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 22, 2015 @ 15:04
    Tim Geyssens
    0

    @Amir, did that do the trick?

  • Amir Khan 1199 posts 2567 karma points
    Oct 26, 2015 @ 16:55
    Amir Khan
    0

    Hi Tim, sorry for the late response. I will update it along with some other things tomorrow morning and let you know.

    Thank you!

    Amir

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 26, 2015 @ 17:42
    Tim Geyssens
    0

    No problem, that would be great, thanks!

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 08, 2015 @ 15:38
    Tim Geyssens
    0

    @Amir so how did the update go, is the issue resolved :) ?

  • Amir Khan 1199 posts 2567 karma points
    Nov 11, 2015 @ 19:13
    Amir Khan
    0

    Hi Tim, your updated dll worked great!

    Thank you for your help,

    Amir

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 11, 2015 @ 19:16
    Tim Geyssens
    0

    Woot, thanks for confirming!

  • Amir Khan 1199 posts 2567 karma points
    Nov 16, 2015 @ 15:03
    Amir Khan
    0

    Hi Tim, any reason that updated would cause me to get the following error whenever I right-click on a node now?

    umbraco Failed to retrieve data for a node's menu init

    Can't think of anything else that has changed with our setup besides that update since the error started happening.

    Thanks,

    Amir

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 16, 2015 @ 15:24
    Tim Geyssens
    0

    Nope, will give it a try on the same Umbraco version as you to see if I hit the same error

  • Amir Khan 1199 posts 2567 karma points
    Nov 16, 2015 @ 15:26
    Amir Khan
    0

    Confirmed it was related to that update. Just tested on a copy of the site.

  • 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