Sitefinity failure to create new pages
Hi,
We cannot create new pages in our Sitefinity database. When attempting to do so a page does get created (with MVC widget content) however attempting to view the page triggers the error listed below:
[ArgumentNullException: Value cannot be null.
Parameter name: key]
Telerik.Sitefinity.Web.SiteMapBase.FindSiteMapNodeFromKey(String key,
Boolean ifAccessible) +196
Telerik.Sitefinity.Web.PageSiteNodeCollection.UpdateNode(PageSiteNode&
node) +319
Telerik.Sitefinity.Web.PageSiteNodeCollection.get_Item(Int32
index) +108
Telerik.Sitefinity.Web.InnerEnumerator.get_Current() +47
Telerik.Sitefinity.Web.SiteMapBase.GetChildNode(PageSiteNode parent,
String urlName) +297
Telerik.Sitefinity.Web.SiteMapBase.ResolveNode(String[] segments,
PageSiteNode parent, String expectedExtension, Int32 extensionSegmentIndex,
Int32& regularNodesCount, String[]& additionalUrls) +142
Telerik.Sitefinity.Web.SiteMapBase.FindSiteMapNode(String rawUrl,
Boolean ifAccessible, Boolean unresolveUrl, Boolean& isAdditionalUrl,
String[]& urlParameters) +1872
Telerik.Sitefinity.Web.SitefinityRoute.FindSiteMapNode(String&
virtualPath, SiteMapBase siteMapProvider, Boolean& isAdditional,
String[]& pars, Boolean skipSubSiteCheck) +516
Telerik.Sitefinity.Web.SitefinityRoute.GetRouteData(HttpContextBase
httpContext) +291
System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase
httpContext) +233
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase
context) +60
System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object
sender, EventArgs e) +82
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+136
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +69
Attempting to modify content or publish the page produces a popup alert stating:
"Value cannot be null.<br>Parameter name: key" or "Undefined".
We have attempted to add the maxPageNodes property with a large value in the web.config as listed below however it has no effect in resolving the issue.
<siteMap defaultProvider="SitefinitySiteMap">
<providers>
<add name="SitefinitySiteMap" type="Telerik.Sitefinity.Web.SitefinitySiteMap, Telerik.Sitefinity" taxonomyProvider="OpenAccessDataProvider" pageTaxonomy="Pages" rootNode="FrontendSiteMap" pageProvider="OpenAccessDataProvider" maxPageNodes ="500"/>
</providers>
</siteMap>
We have also performed maintenance on the Sitefinity DB in order to defragment table indexes to no avail.
The issue is definitely related to reaching a page limit in Sitefinity since deleting existing pages and re-creating them resolves the issue until the point where a specific number of pages have been recreated without issue and then finally the next one fails. As stated prior the maxPageNodes has no effect is resolving this.
We're using Sitefinity version 6.1.43.
Thanks,
Edward
When you create the page, choose the option that does not automatically open the page in edit mode.
Hello Edward,
Can you please try to increase the value also in the backend (Administration > Settings > Advanced > Pages), Save the changes and restart the application. Increase the value to higher number e.g. 5000.
You can refer to that KB article:
http://www.sitefinity.com/developer-network/knowledge-base/details/site-crashes-after-creating-a-new-page
Regards,
Svetoslav Manchev
Telerik