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.
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
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?
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.
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.
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.
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...
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.
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?
I get the following 500 error message:
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?
Thats strange - The umbraco.dll from the build from codeplex is only 1.0.3891.20719 for both downloads:
Am i looking at the right version number (right click on umbraco.dll > properties > Details > File Version (same number as Product Version))???
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:
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:
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?
Sorry for the delayed reponse.
I get the following for Node.GetCurrent().Id.GetType():
..etc
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.
Count me as one it does NOT work for, and I'd like it to for a site going live this week.
Same here.
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.
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
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
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'.
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
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.