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?
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.
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
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...
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)
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:
Thank you!
Amir
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?
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
Hmm no ideas, will setup a similar environment and get back to you tomorrow, which Umbraco version are you on, 7.3 I suppose?
Hi Tim, 7.2.4. Thanks for your help, excited to see what you find.
-Amir
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
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...
Nope don't think so, will see if I can make a version for you that works on 7.2.4
Hi Tim, any luck on this?
Thanks! Amir
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)
I'm happy to try first to save you some time if you think its worth it!
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.
But looks like it's a couple of commits behind so will build it with recent changes tomorrow
Ok could you try with this dll https://www.dropbox.com/s/ra56n15bspmj94w/PageNotFoundManager.dll?dl=0 and see if that works
@Amir, did that do the trick?
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
No problem, that would be great, thanks!
@Amir so how did the update go, is the issue resolved :) ?
Hi Tim, your updated dll worked great!
Thank you for your help,
Amir
Woot, thanks for confirming!
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
Nope, will give it a try on the same Umbraco version as you to see if I hit the same error
Confirmed it was related to that update. Just tested on a copy of the site.
is working on a reply...
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.