problem with setting knowledgebase enabled to n


https://forum.kartris.com/Topic2194.aspx
Print Topic | Close Window

By bpaluch - Mon 15 Jul 2013
when I changed the knowledgebase enabled setting to 'n' from 'y', the whole site gives me a 404 error, and in the error log, I see 'Object reference not set to an instance of this object'. I would expect the knowledgebase list to get removed from top menu navigation, but this is not happening and I get a 404 error instead...

Please advise,

B. Paluch
By kalkhovm - Mon 15 Jul 2013
If you are attempting to remove the knowledgebase option from them menu, you also need to make a change to the web_menu.sitemap file by deleting the line that starts
<siteMapNode url="~/knowledgebase.aspx"
 
Once uploaded this should cure your problem
By bpaluch - Wed 17 Jul 2013
shouldn't the enabled setting remove that line in code, just like it does it for the news menu?
By Paul - Thu 18 Jul 2013
This issue came about because of the way we removed items from the menus. We changed the web_menu.sitemap in a newer version, so some items that were second level nested became top level. Therefore some of the code that was designed to remove them from the second level didn't work and errored.

We've improved the code in the latest development version (which we hope to release in next few days) to handle up to two levels, so these problems should not occur. It basically tries to remove the item, and then tries as if it is a child one - both times within a try/catch.

If you go to codeplex, there are downloads of the newer v2.5 available (go to downloads page, then check the versions on the right hand side). Grab the following file:

/UserControls/Skin/NavigationMenu.aspx (and the .vb)