Copied to clipboard

Flag this post as spam?

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


  • bproven 9 posts 26 karma points
    Sep 22, 2010 @ 00:08
    bproven
    0

    Strange Issue with POET patch

    I having some weird issues with the patch as well on umbraco 4.0.2.1. 

    I've seen a few other posts here regarding some issues/questions, but my current issue doesn't seemt o fall in line with those :(

    First off, it would not apply using the package and told me to apply manually.  It appears that the package could not change the web.confg or 404handlers.config files only drop the dll and aspx pages.  Anyway to fix this manually I did the following:

    • Verified the dll was here /bin/Umbraco.PoetPatcher.dll
    • Verified the error page aspx here:  /umbraco/plugins/PoetPatcher/CustomError.aspx
    • Modify /config/404handlers.config to look like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <NotFoundHandlers>
        <notFound assembly="umbraco" type="SearchForAlias" />
        <notFound assembly="umbraco" type="SearchForTemplate"/>
        <notFound assembly="umbraco" type="SearchForProfile"/>
        <notFound assembly="umbraco.PoetPatcher" type="GenericError"/>
    </NotFoundHandlers>
    • Modify the web.config to look like this (change the customerrors tag to this):
      <customErrors mode="On" redirectMode="ResponseRewrite"
    defaultRedirect="~/umbraco/plugins/poetpatcher/CustomError.aspx" />
    •  Removed the custom error id from the 'errors' tag in the /config/UmbracoSettings.config file:
      <errors>
          <!-- the id of the page that should be shown if the page is not found -->
          <!--        <errorPage culture="default">1</errorPage>-->
          <!--        <errorPage culture="en-US">200</errorPage>-->
          <!--<error404>1115</error404>-->
        </errors>

    The above seems correct to me, but I get the following behavior.  I've restarted the service and app several times to no avail:

    • When I vist this URL "/test" - I get my old 404 page (even though I removed it from web.config customErrors *and* removed the entry from the "errors" tag in UmbracoSettings as shown above.
    • Visit "/umbraco/plugins/test" - I get the old 404 page (same as above)
    • Visit "/umbraco/plugins/test.aspx" - I get the the proper CustomError.aspx page
    • Visit "/test.aspx" I get the old 404 page

    Now, I do use the SEO URLs (enabled via web.config using the following):

     <add key="umbracoUseDirectoryUrls" value="true" />


    Anyway, I'm at a loss right now, hopefully someone has a clue to what could be happening.  I'll keep trying to figure this out in the meantime :(

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Sep 22, 2010 @ 13:16
    Ismail Mayat
    0

    bproven,

    i have same setup as you including umbracoUseDirectoryUrls i applied the patch to 2 servers first one worked no problem. Second one i had to manually copy over the plugin folder files then applied the patch all works nicely.  This is on w2k3 with iis6.

    Regards

    Ismial

  • bproven 9 posts 26 karma points
    Sep 22, 2010 @ 17:44
    bproven
    0

    I figured out my issue.  It has to do with this problem on IIS7 regarding 404s :http://our.umbraco.org/forum/using/ui-questions/8244-IIS7--404

    I had previously worked around it using by just defining a 404 page in IIS.  So when I appled the patch it just kept using that 404 page, b/c IIS was bypassing Umbraco for error pages ;)

    To fix I had to apply the workaround indicated in the thread linked above to applicationHost.config and THEN apply the POET patch as intructed by Umbraco.  there is one typo in the documenation that also threw me for a loop regarding the 404handlers.config entry.  Someone else figured this one out here : http://our.umbraco.org/forum/core/general/12868-Poet-Patch-QuestionProblem?p=1#comment47757 (webmonger).  With that and the adjustment to applicationHost.config I am in good shape.

     

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft