Copied to clipboard

Flag this post as spam?

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


  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Oct 27, 2016 @ 09:46
    Dave Woestenborghs
    1

    Redirects not added to umbraco umbracoRedirectUrl table

    Hi,

    I just upgraded to Umbraco 7.5.4 from 7.4.

    On my local machine redirects don't get added to the umbracoRedirectUrl table after renaming a item and publishing it.

    Strange thing is that it works on our test environment.

    Anybody seen this before ?

    Dave

  • Micha Somers 134 posts 597 karma points
    Oct 27, 2016 @ 11:30
    Micha Somers
    100

    Hi Dave,

    Maybe you could check if upgrading failed somewhere on your local environment.

    Any upgrade related errors showing in the logs?

    Are your web.config files on the test and local environment pointing to the same version (7.5.3) of Umbraco?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Oct 27, 2016 @ 11:42
    Dave Woestenborghs
    0

    Oops..I accidently marked this post as solved.

    Both config are same only differenc is the connection string.

    Dave

  • Micha Somers 134 posts 597 karma points
    Oct 27, 2016 @ 12:05
    Micha Somers
    0

    Ok,

    Unfortunately, I do not know how to set the answer back to unsolved.

    However, the answer may still be found in one of the log files (in ~/App_Data/Logs).

    Is there anything special in the log file at the time of publishing your renamed item?

    Any suspicious logs created during upgrade ?

    The database (the local connection string is pointing to) has a table umbracoRedirectUrl and that table is completely empty?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Oct 27, 2016 @ 12:07
    Dave Woestenborghs
    0

    Ok,

    Unfortunately, I do not know how to set the answer back to unsolved.

    • no problem..just some free karma for you :-)

    However, the answer may still be found in one of the log files (in ~/App_Data/Logs). Is there anything special in the log file at the time of publishing your renamed item?

    • nothing in the logs

    Any suspicious logs created during upgrade ?

    • nope

    The database (the local connection string is pointing to) has a table umbracoRedirectUrl and that table is completely empty?

    Table is there. Just not getting populated

  • Micha Somers 134 posts 597 karma points
    Oct 27, 2016 @ 13:02
    Micha Somers
    0

    ... thanks for the karma ;-)

    The only valid reason I can think of right now why an umbracoRedirectUrl table would be empty after having renamed a published node, is when you delete the renamed node afterwards and then clear the recycle bin.

    In your case, where it has not been added to the table in the first place, something else must be going on ... hopefully someone can help you further!

  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Oct 27, 2016 @ 16:50
    Sebastiaan Janssen
    0

    Do you happen to have any of these installed?

                    "InfoCaster.Umbraco.UrlTracker",
                    "SEOChecker",
                    "Simple301",
                    "Terabyte.Umbraco.Modules.PermanentRedirect",
                    "CMUmbracoTools",
                    "PWUrlRedirect"
    

    We disable redirect tracking if these dlls are found to avoid rewrite conflicts and infinite redirects. See: https://github.com/umbraco/Umbraco-CMS/blob/5397f2c53acbdeb0805e1fe39fda938f571d295a/src/Umbraco.Web/Routing/RedirectTrackingEventHandler.cs#L43

    That said, it should also show up as the being disabled in Umbraco if you have any of them installed.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Oct 27, 2016 @ 17:42
    Dave Woestenborghs
    1

    I actually think I know what the issue is.

    We have a shared db between developers. And my instance wasn't master at the moment.

    Because here in the code from the link you posted i see this :

    private void PageCacheRefresher_CacheUpdated(PageCacheRefresher sender, CacheRefresherEventArgs cacheRefresherEventArgs)
            {
                // only on master / single, not on slaves!
                if (IsSlaveServer) return;
    
                // simply getting OldRoutes will register it in the request cache,
                // so whatever we do with it, try/finally it to ensure it's cleared
    
                try
                {
                    foreach (var oldRoute in OldRoutes)
                    {
                        // assuming we cannot have 'CacheUpdated' for only part of the infos else we'd need
                        // to set a flag in 'Published' to indicate which entities have been refreshed ok
                        CreateRedirect(oldRoute.Key, oldRoute.Value.Item1, oldRoute.Value.Item2);
                    }
                }
                finally
                {
                    OldRoutes.Clear();
                    RequestCache.ClearCacheItem(ContextKey3);
                }
            }
    

    Dave

  • 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