New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recursive:true throws Exception #44
Comments
What version of vorto are you using? I believe this should have been fixed in 1.5.1 |
Ok, Version 1.4 was installed. I updated to 1.5.1 and now, my Grid-Renderer throws an error: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: string enthält keine Definition für sections. bei CallSite.Target(Closure , CallSite , Object ) bei ASP._Page_Views_Partials_Grid_bootstrap3_cshtml.Execute() in c:\inetpub\wwwroot\umbHbiG\Views\Partials\Grid\Bootstrap3.cshtml:Zeile 9. bei System.Web.WebPages.WebPageBase.ExecutePageHierarchy() bei System.Web.Mvc.WebViewPage.ExecutePageHierarchy() bei System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) bei Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) bei System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) bei ASP._Page_Views_MacroPartials_RenderInhaltsseite_cshtml.Execute() in c:\inetpub\wwwroot\umbHbiG\Views\MacroPartials\RenderInhaltsseite.cshtml:Zeile 8. |
With Version : 1.5.0-alpha-000022, it works. |
Sorry, wir 1.5.0.-alpha 26. I'm running Umbraco 7.4.1 |
But here I still get the error: Happy easter, by the way and thanks for listening. :) |
Could you try the latest nightly?
https://ci.appveyor.com/project/mattbrailsford/umbraco-vorto/build/artifacts
|
Fixed the problem from this post, but I get the grid-render error again. |
Can you explain your setup a bit further? How is the grid relevant to the vorto property? |
Also, what is happening in RenderInhaltsseite.cshtml at line 8? |
It renders a Vorto Datatype of grid in a PartialView Macro with:
|
And what's the code in Bootstrap3.cshtml? |
I setup a normal Grid and connected it to the vorto datatype. This is the common umbraco code:
|
…ck to do with issue #19 in which we made ConvertSourceToObject get called first. At the time, I had forgotten why I had them in the order I did, but I remembered the reason now and so added a comment also so we don't forget. ConvertDataToSource MUST occur before ConvertSourceToObject.
Ok, I know what the problem is now. We switched some code around when converting a values type to the target type, which seems to break this. Have switched it back and added a comment to ensure it doesn't get moved again in future. Try this build: https://ci.appveyor.com/project/mattbrailsford/umbraco-vorto/build/1.5.2.45/artifacts |
Best easter egg of the day. This fixed the problem. Thank you so much again. :) |
Hi,
this code throws the following exception. If there is a value in the property, it works but without, I got the error.
Exception:
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Our.Umbraco.Vorto.Extensions.IPublishedContentExtensions.DoInnerGetVortoValue[T](IPublishedContent content, String propertyAlias, String cultureName, Boolean recursive, T defaultValue)
bei Our.Umbraco.Vorto.Extensions.IPublishedContentExtensions.GetVortoValue[T](IPublishedContent content, String propertyAlias, String cultureName, Boolean recursive, T defaultValue, String fallbackCultureName)
bei Our.Umbraco.Vorto.Extensions.IPublishedContentExtensions.GetVortoValue(IPublishedContent content, String propertyAlias, String cultureName, Boolean recursive, Object defaultValue, String fallbackCultureName)
bei ASP._Page_Views_MacroPartials_Metatags_cshtml.Execute()
The text was updated successfully, but these errors were encountered: