Strange umbraco error. Options
Gibson
Posted: Monday, July 24, 2006 10:20:53 AM
Rank: Devotee

Joined: 7/21/2006
Posts: 58
I'm working on a site with Umbraco 2.1.1
The site works well but after some minutes (I can't say how many minutes, maybe when cache is destroyed) it stops to work, givinge always the same error. Umbraco GUI is fully functional and if I republish all childs the site rebirth.
What can be my mistake? please help me.My structure is:

Contents
-Home
--page1
--page2
-Test

the error is:

Object reference not set to an instance of an object.
NullReferenceException: Object reference not set to an instance of an object.]
umbraco.library.GetItem(Int32 nodeID, String alias) in F:\umbraco\umbraco2.1\umbraco\presentation\library.cs:493

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess) +0
System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess) +320
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +23
System.Reflection.MethodInfo.Invoke(Object obj, Object[] parameters) +17
System.Xml.Xsl.FuncExtension.Invoke(XsltContext xsltContext, Object[] args, XPathNavigator docContext) +133
System.Xml.XPath.XsltFunction.InvokeFunction(XPathNavigator qy, XPathNodeIterator iterator) +230

[XsltException: Function 'umbraco.library:GetItem()' has failed.]
System.Xml.XPath.XsltFunction.InvokeFunction(XPathNavigator qy, XPathNodeIterator iterator) +787
System.Xml.XPath.XsltFunction.getValue(XPathNavigator qy, XPathNodeIterator iterator) +21
System.Xml.XPath.XPathNavigator.Evaluate(XPathExpression expr, XPathNodeIterator context) +121
System.Xml.Xsl.Processor.RunQuery(ActionFrame context, Int32 key) +120
System.Xml.Xsl.VariableAction.Execute(Processor processor, ActionFrame frame) +109
System.Xml.Xsl.ActionFrame.Execute(Processor processor) +24
System.Xml.Xsl.Processor.Execute() +78
System.Xml.Xsl.XslTransform.Transform(IXPathNavigable input, XsltArgumentList args, TextWriter output, XmlResolver resolver) +74
System.Web.UI.WebControls.Xml.Render(HtmlTextWriter output) +130
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +44
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +263
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
umbraco.layoutControls.umbracoPageHolder.Render(HtmlTextWriter output) in F:\umbraco\umbraco2.1\umbraco\presentation\umbracoPageHolder.cs:111
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
umbraco.WebForm1.Render(HtmlTextWriter output) in F:\umbraco\umbraco2.1\umbraco\presentation\default.aspx.cs:32
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
System.Web.UI.Page.ProcessRequestMain() +1880
Gibson
Posted: Monday, July 24, 2006 10:46:21 AM
Rank: Devotee

Joined: 7/21/2006
Posts: 58
Investigating I've found that I use an xslt where I've some:

xsl:sort select="umbraco.library:GetItem(@id, 'DataInizio')" order="descending"

xsl:variable name="DataFine" select="umbraco.library:GetItem(@id, 'DataFine')"

xsl:variable name="datainizio" select="umbraco.library:GetItem(@id, 'DataInizio')"

It's possible that there are pages with "DataInizio" or "DataFine" empty, but I can't explain why it works after a republish of the pages listed with this xslt.
Some idea on how to solve the problem?
PeterD
Posted: Monday, July 24, 2006 12:11:22 PM

Rank: Fanatic

Joined: 7/20/2006
Posts: 486
Location: NL
Can you check the permissions on the data/umbraco.xml file?
Try giving that file full permission or everyone and see if that solves anything.

Working on an events-calendar with recursion. Post requests on my blog!
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.