Copied to clipboard

Flag this post as spam?

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


  • Søren Mastrup 109 posts 474 karma points c-trib
    Sep 24, 2015 @ 11:40
    Søren Mastrup
    0

    404 not working if page isn't in root

    When assigning a 404 page to a node that isn't in the root, the 404 redirect isn't working.

    Example of content-tree:

    • Site 1
      • DK language
      • DE language
      • EN language
    • Site 2
      • DK language
      • DE language
      • EN language

    I am trying to assign 404 pages to the language-nodes below the site-nodes.

  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Sep 25, 2015 @ 07:54
    Tim Geyssens
    0

    Ok must say I haven't tried that, will do that now and update the code :)

  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Sep 25, 2015 @ 07:57
    Tim Geyssens
    0

    Can confirm the issue

  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Sep 25, 2015 @ 08:00
    Tim Geyssens
    0

    Could I ask you which Umbraco version you are running?

  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Sep 25, 2015 @ 08:06
    Tim Geyssens
    0

    Ok scrap that I can't reproduce, so if you could give your umbraco version number that would be helpfull, tried on latest stable and on 7.3 RC

  • Søren Mastrup 109 posts 474 karma points c-trib
    Sep 25, 2015 @ 08:53
    Søren Mastrup
    0

    I am running 7.2.4

  • Jeavon Leopold 2997 posts 13115 karma points MVP 6x admin c-trib
    Sep 28, 2015 @ 11:32
    Jeavon Leopold
    0

    You might want to try adding existingResponse="PassThrough" to the system.webServer/httpErrors element of your web.config

    e.g. <httpErrors existingResponse="PassThrough">

  • Søren Mastrup 109 posts 474 karma points c-trib
    Sep 28, 2015 @ 11:41
    Søren Mastrup
    0

    Hi Jeavon

    Thanks for your reply - I have tried the following:

    <system.webServer>
       <httpErrors existingResponse="PassThrough" />
    </system.webServer>
    

    That didn't work.

  • Jeavon Leopold 2997 posts 13115 karma points MVP 6x admin c-trib
    Sep 28, 2015 @ 11:47
    Jeavon Leopold
    0

    Shame :) I presume you have plenty of other stuff in the system.webServer element..?

  • Søren Mastrup 109 posts 474 karma points c-trib
    Sep 28, 2015 @ 11:56
    Søren Mastrup
    0

    I have! I just trimmed it down to keep it simple ;)

  • Deepak 14 posts 34 karma points
    Sep 25, 2015 @ 09:16
    Deepak
    0

    Hi Søren,

    What are you using for redirect ? is there any property like "Internal Redirect" ?

    Thanks Deepak

  • Søren Mastrup 109 posts 474 karma points c-trib
    Sep 25, 2015 @ 09:23
    Søren Mastrup
    0

    Hi Deepak

    I have installed the "Url Tracker" package(v. 3.6) by Stefan Kip and the "Epiphany.SeoMetadata" package (v. 0.2.1) by Ryan Lewis. These are the only packages that I can think of, that could interfere with the 404 redirects.

  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Oct 02, 2015 @ 06:42
    Tim Geyssens
    0

    @Soren, do you have domains set for your different sites?

  • Søren Mastrup 109 posts 474 karma points c-trib
    Oct 02, 2015 @ 07:21
    Søren Mastrup
    0

    Yes I have, but only on the Language nodes. Top top Site-nodes doesn't have any.

  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Oct 02, 2015 @ 07:03
    Tim Geyssens
    100

    @Soren could you try with this version https://ci.appveyor.com/api/buildjobs/sqpm4gaj4omfk3fp/artifacts/Releases/PageNotFoundManager1.5.1.zip that should take the domains into account

  • Søren Mastrup 109 posts 474 karma points c-trib
    Oct 02, 2015 @ 07:35
    Søren Mastrup
    0

    I tried to install the updated package. I am getting this error:

    Server error: Contact administrator, see log for full details.
    Failed to retrieve data for a node's menu 1445
    

    I have tried to restart the site and uninstall the old packages before installing this version.

    This is returned in my log:

    2015-10-02 09:33:31,582 [50] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 59] An unhandled exception occurred
    System.TypeLoadException: Could not load type 'Umbraco.Core.Services.IDomainService' from assembly 'Umbraco.Core, Version=1.0.5557.19139, Culture=neutral, PublicKeyToken=null'.
       at PageNotFoundManager.PageNotFoundContentFinder.TryFindContent(PublishedContentRequest contentRequest)
       at Umbraco.Web.Routing.PublishedContentRequestEngine.HandlePublishedContent()
       at Umbraco.Web.Routing.PublishedContentRequestEngine.FindPublishedContentAndTemplate()
       at Umbraco.Web.Routing.PublishedContentRequestEngine.PrepareRequest()
       at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    
  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Oct 02, 2015 @ 07:58
    Tim Geyssens
    0

    AH yes forgot to mention that you need to be running 7.3 because domain service isn't available in older versions so you'll need to upgrade

  • Søren Mastrup 109 posts 474 karma points c-trib
    Oct 02, 2015 @ 10:31
    Søren Mastrup
    0

    Ah okay! I'll try that.

  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Oct 02, 2015 @ 10:37
    Tim Geyssens
    0

    Cool, let us know if that does the trick

  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Oct 08, 2015 @ 17:20
    Tim Geyssens
    0

    @Soren any update, did that version do the trick?

  • Søren Mastrup 109 posts 474 karma points c-trib
    Oct 08, 2015 @ 20:17
    Søren Mastrup
    0

    Sorry for not getting back to you Tim.

    I am currently not able to upgrade to 7.3. I am running with the Optimus package and it seems to make the site crash when I try to upgrade.

  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Oct 09, 2015 @ 08:40
    Tim Geyssens
    1

    Ah ok I'll take a look at why Optimus is crashing on v7.3 , thanks for the details!

  • Tim Geyssens 6419 posts 15021 karma points MVP 2x c-trib
    Oct 13, 2015 @ 07:33
    Tim Geyssens
    1

    Just upgraded Optimus so it works on 7.3, the latest release 1.4.0 should do the trick https://our.umbraco.org/projects/developer-tools/optimus/#

  • Martijn Duizendstra 18 posts 113 karma points
    Jan 15, 2016 @ 13:19
    Martijn Duizendstra
    0

    Old post... but any news on this?

    Just installed the 404 package on Umbraco 7.4.0 beta (yeah... I kinda had to update due to the 301 redirect being broken on 7.3) and I'm running into the same issues as described by the TS.

    Structure looks like this:

    • Company
      • Domain X (with domain/culture settings)
      • Domain Y (with domain/culture settings)

    I'd really love to use it. Some packages should've been core functionality ;-)

    Hope to hear from someone. Switching back to the crappy web.config solution I had in place in the meanwhile.

    Update: I ended up using the normal bundling functionality in .Net.

  • giuseppe 8 posts 61 karma points
    Mar 16, 2017 @ 13:55
    giuseppe
    0

    Hi, I had the same issue. In my case the problem was the name of the 404 page. In fact the package wasn't working untill I've put the string 404 at the begining of the page name. I don't know, maybe only a lucky accident.

  • Søren Mastrup 109 posts 474 karma points c-trib
    Mar 16, 2017 @ 14:00
    Søren Mastrup
    0

    When using the latest version of this package I no longer have this issue.

Please Sign in or register to post replies

Write your reply to:

Draft