Copied to clipboard

Flag this post as spam?

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


This forum does not allow new topics to be created, please use the v2 forum from now on.

  • Hamish 95 posts 153 karma points
    Oct 01, 2010 @ 01:19
    Hamish
    0

    Redirects not appearing under "301 URL Tracker" under "Settings"

    I've added the 301 Url Tracker package to Umbraco 4.5.2 but there seems to be an issue when trying to view the list of redirects under 301 URL Tracker under Settings.

    When I choose to view the list, it thinks for a second and then shows nothing (removeing the expand icon from the 301 Url Tracker ).

    However, I'm able to view the redirects at the node level within the Content tree (after adding the 301 URL Tracker datatype to the doctype).

    Has anyone else had this problem? Let me know if you need more information.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Oct 11, 2010 @ 22:31
    Stefan Kip
    0

    Just tested this and it works for me on 4.5.2.

    Can you use Firebug to see what the result of the AJAX call is when expanding the 301 URL Tracker node and post it here?

  • Hamish 95 posts 153 karma points
    Oct 12, 2010 @ 23:33
    Hamish
    0

    I get the following 500 error message:

    Server Error in '/' Application.
    Method not found: 'System.String umbraco.cms.presentation.Trees.BaseTree.GetTreeServiceUrl(System.Object)'.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    
    Exception Details: System.MissingMethodException: Method not found: 'System.String umbraco.cms.presentation.Trees.BaseTree.GetTreeServiceUrl(System.Object)'.
    
    Source Error:
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace:
    
    [MissingMethodException: Method not found: 'System.String umbraco.cms.presentation.Trees.BaseTree.GetTreeServiceUrl(System.Object)'.]
       InfoCaster.Umbraco._301UrlTracker.Tree301URLTracker.Render(XmlTree& tree) +0
       umbraco.presentation.webservices.TreeDataService.LoadTree(TreeRequestParams treeParams) +159
       umbraco.presentation.webservices.TreeDataService.GetXmlTree() +198
       umbraco.presentation.webservices.TreeDataService.ProcessRequest(HttpContext context) +85
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 
  • Stefan Kip 1606 posts 4098 karma points c-trib
    Oct 13, 2010 @ 00:01
    Stefan Kip
    0

    Right, then the only explanation I can give, is that you have a corrupt umbraco installation...

    What is you umbraco.dll version? Should be v2.0.50727 (for umbraco v4.5.2)

    It's nagging about a missing method, which should be in the umbraco.cms.presentation.Trees.BaseTree class --> public string GetTreeServiceUrl(int id);

    Can you check if it exists in your installation?

  • Hamish 95 posts 153 karma points
    Oct 13, 2010 @ 01:17
    Hamish
    0

    Thats strange - The umbraco.dll from the build from codeplex is only 1.0.3891.20719 for both downloads:

    • Umbraco 4.5.2 for .NET 3.5
    • Umbraco 4.5.2 for .NET 4

    Am i looking at the right version number (right click on umbraco.dll > properties > Details > File Version (same number as Product Version))???

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Oct 13, 2010 @ 10:41
    Stefan Kip
    0

    Yes, that's the right version, I entered the version which is stated at the top of the file itself in the comment :-)

    Edit:
    Something strange is happening. Your umbraco.dll is fine! It's the method parameter...
    I'm calling the method like this:

    GetTreeServiceUrl(current.Node.Id);

    current.Node.Id gives the Node Id (umbraco Node) of the current entry, which should be an integer.
    This is what happens in your installation:

    [MissingMethodException: Method not found: 'System.String umbraco.cms.presentation.Trees.BaseTree.GetTreeServiceUrl(System.Object)'.]

    This means it's calling the umbraco.cms.presentation.Trees.BaseTree.GetTreeServiceUrl method with a parameter of type 'object' instead of 'int'... So Node.Id is an object in your installation.

    Weird, really weird, and I don't know why something like this could happen...
    The only reason I can think of, is that 'umbraco.presentation.nodeFactory.Node.Id' is of type 'object' in your installation... Can you check this?

  • Hamish 95 posts 153 karma points
    Oct 20, 2010 @ 00:05
    Hamish
    0

    Sorry for the delayed reponse.

    I get the following for Node.GetCurrent().Id.GetType():

    Node.GetCurrent().Id.GetType()
    {Name = "Int32" FullName = "System.Int32"}
        [System.RuntimeType]: {Name = "Int32" FullName = "System.Int32"}
        base {System.Reflection.MemberInfo}: {Name = "Int32" FullName = "System.Int32"}
        Assembly: {mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089}
        AssemblyQualifiedName: "System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

    ..etc

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Oct 20, 2010 @ 09:09
    Stefan Kip
    0

    Well then I really don't know what the problem is... It works for other people, so it has to be something specific with your installation.
    Like I said; the only possible problem is calling GetTreeServiceUrl with an object as parameter.

  • Shgzuter 7 posts 27 karma points
    Oct 21, 2010 @ 19:36
    Shgzuter
    0

    Count me as one it does NOT work for, and I'd like it to for a site going live this week.

     

  • Connie DeCinko 931 posts 1159 karma points
    Oct 21, 2010 @ 19:50
    Connie DeCinko
    0

    Same here.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Oct 22, 2010 @ 10:40
    Stefan Kip
    0

    Okay, thanks for reporting, I will install a clean umbraco 4.5.2 and install the 301 URL Tracker to see what I can do.

  • Chad Rosenthal 272 posts 474 karma points
    Oct 27, 2010 @ 21:09
    Chad Rosenthal
    0

    Hey. I made a clean install of 4.5.2 yesterday. Set-up a site. Installed your package.

    I created a property for one of the items and named it 'redirects'. I then added 2 redirects to a node. lodging.html and lodging.aspx. I made sure that .html was mapped to the isapi.dll. Neither of these redirects work.

    I checked the 301 Tracker. I can view all of the 'not found requests', and can see that it logged lodging.aspx but did not log lodging.html.

    I then tried to right click the 301 URL Tracker folder to manually create redirects. It opened up the Model window, but would throw javascript errors when I try to create or even when I cancel.

    Any help would be appreciated!

    -C

  • Heather Floyd 531 posts 787 karma points MVP 2x c-trib
    Nov 09, 2010 @ 00:08
    Heather Floyd
    0

    Hi,

    I have the same issue that Hamish has.

    I had "301 URL Tracker" installed on a version 4.0 site, and it was working fine. I then upgraded the site to 4.5.2 and now there is nothing under the node in "Settings". I tried installing the package again, but that didn't change anything.

    ~Heather

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Nov 25, 2010 @ 23:00
    Stefan Kip
    1

    Just released the 301 URL Tracker version 1.2 for umbraco 4.5, with multi-site support :-)
    Tested it on two clean 4.5.2 installations; .NET 3.5 and .NET 4.0, both working perfectly...

    Please mark this reply as 'the answer'.

  • Hamish 95 posts 153 karma points
    Dec 10, 2010 @ 01:32
    Hamish
    0

    Sorry for the delay - just noticed the email regarding this.

    Have tested 301 URL tracker 1.3 on a new project and works like a charm. Thanks for the update

  • 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