Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ahmed 10 posts 111 karma points
    Apr 01, 2020 @ 16:35
    Ahmed
    0

    Use Image Cropper with Doc type grid editor

    I tried to Use Image Cropper with Doc type grid editor but I got this exception

    System.Exception: Invalid content key. at Umbraco.Web.PropertyEditors.ImageCropperPropertyValueEditor.FromEditor(ContentPropertyData editorValue, Object currentValue) in D:\a\1\s\src\Umbraco.Web\PropertyEditors\ImageCropperPropertyValueEditor.cs:line 98 at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.ConvertValue(String id, String contentTypeAlias, String dataJson) at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.<>cDisplayClass00.0() at Umbraco.Core.Cache.AppCacheExtensions.<>cDisplayClass501.<GetCacheItem>b__0() in D:\a\1\s\src\Umbraco.Core\Cache\AppCacheExtensions.cs:line 62 at Umbraco.Core.Cache.FastDictionaryAppCacheBase.<>c__DisplayClass21_0.<GetSafeLazy>b__0() in D:\a\1\s\src\Umbraco.Core\Cache\FastDictionaryAppCacheBase.cs:line 285 --- End of stack trace from previous location where exception was thrown --- at Umbraco.Core.Cache.HttpRequestAppCache.Get(String key, Func1 factory) in D:\a\1\s\src\Umbraco.Core\Cache\HttpRequestAppCache.cs:line 81 at Umbraco.Core.Cache.AppCacheExtensions.GetCacheItem[T](IAppCache provider, String cacheKey, Func`1 getCacheItem) in D:\a\1\s\src\Umbraco.Core\Cache\AppCacheExtensions.cs:line 62 at Our.Umbraco.DocTypeGridEditor.Helpers.DocTypeGridEditorHelper.ConvertValueToContent(String id, String contentTypeAlias, String dataJson) at ASP.PageapppluginsdoctypegrideditorrenderDocTypeGridEditorcshtml.Execute() in C:\Users\HP\source\repos\Boulevard\BoulevardWebsite\appplugins\doctypegrideditor\render\DocTypeGridEditor.cshtml:line 26 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at Umbraco.Web.Mvc.ProfilingView.Render(ViewContext viewContext, TextWriter writer) in D:\a\1\s\src\Umbraco.Web\Mvc\ProfilingView.cs:line 25 at System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model) at ASP.PageViewsPartialsgrideditorsBase_cshtml.Execute() in C:\Users\HP\source\repos\Boulevard\BoulevardWebsite\Views\Partials\grid\editors\Base.cshtml:line 20

    Help !!

  • Frans de Jong 548 posts 1840 karma points MVP 4x c-trib
    Apr 01, 2020 @ 17:36
    Frans de Jong
    100

    This is a known issue of doctype grid editor:

    https://github.com/skttl/umbraco-doc-type-grid-editor#known-issues

  • Ahmed 10 posts 111 karma points
    Apr 02, 2020 @ 02:15
    Ahmed
    0

    is there any alternatives?!

  • Frans de Jong 548 posts 1840 karma points MVP 4x c-trib
    Apr 02, 2020 @ 07:22
    Frans de Jong
    0

    If you want default crops you can go with a mediapicker and define crops on that.

    If you want the editor to define crops for every image than I can's see a way to do it right now

  • Ahmed 10 posts 111 karma points
    Apr 02, 2020 @ 09:35
    Ahmed
    0

    Thank you..

Please Sign in or register to post replies

Write your reply to:

Draft