We have an issue that the Link to Document is not getting updated when moving content using the Right Click menu option. This only occurs on our staging and live servers, but not our local installation !!
Umbraco version 4.11.5
Local dev: Windows Server 2008 IIS 7
Staging: Windows Server 2003 IIS6
Live: Windows Server 2008 IIS 7
If we unpublish the node, and then republish, the link is corrected.
Could it be a strange permissions issue ? On my local dev machine moving content in the tree works faultlessly. As soon as the site is on the staging & production servers the issue appears. (although the site is an exact copy)
Strange. However... this usually happens when the move actually did not end well. It looks like everything was OK but internally Umbraco did not finish the move, and more precisely did not refresh the cache... do you have any event handlers, anything special that might alter how "move" works? Also, it can be triggered by Examine having locked some index files, anything that would throw an exception that would be hidden by Umbraco but abort the move.
I do have some events in the App_Code folder for publish & save but I've removed these temporarily for testing.
Looking at the umbraco.config after a node move and the path attribute still has the old parent node id i.e path="-1,1047,1063,2640"
1063 should have changed to 1062 after the move.
Just checked the umbraco logs and am getting this error:
Error Republishing: System.ArgumentException: An item with the same key has already been added. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at umbraco.content.LoadContentFromDatabase()
So it seems that the content cache is not refreshed, ie the umbraco.config file is not updated. And that would be because the exception you're seeing it stopping the process before it properly ends. Is that error all you have in the log? Do you have more infos re. the error, ie a complete stacktrace of some sort?
Link to document not updating
We have an issue that the Link to Document is not getting updated when moving content using the Right Click menu option. This only occurs on our staging and live servers, but not our local installation !!
Umbraco version 4.11.5
Local dev: Windows Server 2008 IIS 7
Staging: Windows Server 2003 IIS6
Live: Windows Server 2008 IIS 7
If we unpublish the node, and then republish, the link is corrected.
Just to be sure I understand: right-click on a node, move to a new position in the tree, and Link to document is not updated. Right?
If you select (click on) the node again in the tree, Link to document still is not updated?
The link is only updated when you republish the node?
Before you republish... which url is actually working for that node, the old one or the new one?
That would indicate that some cache is not being cleared... though I don't understand why it would not do it consistently on all environments.
Could it be a strange permissions issue ? On my local dev machine moving content in the tree works faultlessly. As soon as the site is on the staging & production servers the issue appears. (although the site is an exact copy)
Right, it's not a permissions issue as I've brought a copy of the staging site down to my dev machine and its still happening.
Don't think it's related to this issue as this is a fresh 4.11.5 install.
Strange. However... this usually happens when the move actually did not end well. It looks like everything was OK but internally Umbraco did not finish the move, and more precisely did not refresh the cache... do you have any event handlers, anything special that might alter how "move" works? Also, it can be triggered by Examine having locked some index files, anything that would throw an exception that would be hidden by Umbraco but abort the move.
I do have some events in the App_Code folder for publish & save but I've removed these temporarily for testing.
Looking at the umbraco.config after a node move and the path attribute still has the old parent node id i.e path="-1,1047,1063,2640"
1063 should have changed to 1062 after the move.
Just checked the umbraco logs and am getting this error:
Error Republishing: System.ArgumentException: An item with the same key has already been added. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at umbraco.content.LoadContentFromDatabase()
So it seems that the content cache is not refreshed, ie the umbraco.config file is not updated. And that would be because the exception you're seeing it stopping the process before it properly ends. Is that error all you have in the log? Do you have more infos re. the error, ie a complete stacktrace of some sort?
That's the only info in the log table, is there a way to get more info ?
The error:
Error Republishing: System.ArgumentException: An item with the same key has already been added.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at umbraco.content.LoadContentFromDatabase()
is assigned to the NodeId of -1 which is the homenode, is that intentional, or does it mean the error is with this node ?
Ah... in the log table... but in App_Data/Logs?
I cleared out the latest txt file and then tried moving again, which inserted 366 new lines, which were all INFO. No mention of any errors.
is working on a reply...