Copied to clipboard

Flag this post as spam?

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


  • Daniel Jensen 29 posts 160 karma points
    Jan 06, 2017 @ 09:53
    Daniel Jensen
    0

    "Failed to retrieve datatype" in Backoffice, when trying to edit a grid editor

    Hi, i have a problem with my grid editors, after upgrading to 7.5.6.

    They still render out content in my site, but in umbraco backoffice, when trying to edit a grid editor from leblender, it just tells me that it failed to retrieve the datatype.

    Server error: Contact administrator, see log for full details.
    Failed to retrieve datatype 
    

    The error looks like this: ( i apologize for the danish) enter image description here

    I'm using LeBlender v. 1.0.8.4, from NuGet.

    Does anyone know what could be causing this? Or have any ideas as to where to look?

    I have tried to test a non-LeBlender grid editor, and it works fine. I have checked the Umbraco Logfile for errors related to this, but it doesn't write to the log when this error occurs.

    If it's any help, it seems like when i have a grid editor with two properties, like a title and a body text, that it writes out the error twice. Like once per property. Grid editors with more properties failed more times, according to the number of properties they have.

    Any help/hints/ideas are very much welcome. Thnx in advance.

    Best regards

    Daniel

  • peter 13 posts 144 karma points
    Apr 18, 2017 @ 13:44
    peter
    0

    Hi Daniel,

    Looking into the requesthelper service of leblender it shows that the request that raises this error has caching.

    Have you tried clearing the cache of your umbraco website?

    You can do this by deleting the TEMP folder in APPDATA and touching the webconfig folder (add a spacebar and remove it again).

    If that's not it, can you place your code from the grid.editor.config.js located in config folder?

    Best regards,

    Peter

  • Daniel Jensen 29 posts 160 karma points
    Apr 26, 2017 @ 12:24
    Daniel Jensen
    0

    Hi,

    I have tried multiple times to delete the cache, and have it rebuild it. Both for this problem, and other unrelated problems.

    The problem still persists, and im gonna try to rewrite all the grid editors i made through this plugin.

    Not my favourite task, having to redo stuff that should work. But at least i know it will work that way.

    An solution would still be nice though. Also for anyone else encountering the same problem. Here is the grid.editor.config.js file:

    [
    {
        "name": "Rich text editor",
        "alias": "rte",
        "view": "rte",
        "icon": "icon-article"
    },
    {
        "name": "Image",
        "alias": "media",
        "view": "media",
        "icon": "icon-picture"
    },
    {
        "name": "Macro",
        "alias": "macro",
        "view": "macro",
        "icon": "icon-settings-alt"
    },
    {
        "name": "Embed",
        "alias": "embed",
        "view": "embed",
        "icon": "icon-movie-alt"
    },
    {
        "name": "Headline",
        "alias": "headline",
        "view": "textstring",
        "icon": "icon-coin",
        "config": {
            "style": "font-size: 36px; line-height: 45px; font-weight: bold",
            "markup": "<h1>#value#</h1>"
        }
    },
    {
        "name": "Quote",
        "alias": "quote",
        "view": "textstring",
        "icon": "icon-quote",
        "config": {
            "style": "border-left: 3px solid #ccc; padding: 10px; color: #ccc; font-family: serif; font-variant: italic; font-size: 18px",
            "markup": "<blockquote>#value#</blockquote>"
        }
    },
    {
        "name": "Modul boks",
        "alias": "moduleBox",
        "view": "/App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.html",
        "icon": "icon-application-window",
        "render": "/App_Plugins/LeBlender/editors/leblendereditor/views/Base.cshtml",
        "config": {
            "editors": [
                {
                    "name": "Title",
                    "alias": "title",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Titel her"
                },
                {
                    "name": "Description",
                    "alias": "description",
                    "propretyType": {},
                    "dataType": "ca90c950-0aff-4e72-b976-a30b1ac57dad",
                    "description": "Description her"
                }
            ],
            "min": 1,
            "max": 1,
            "frontView": "~/App_Plugins/Grid/View/moduleBox.cshtml",
            "renderInGrid": "1"
        }
    },
    {
        "name": "Modul boks uden titel",
        "alias": "moduleBoxNoTitle",
        "view": "/App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.html",
        "icon": "icon-application-window-alt",
        "render": "/App_Plugins/LeBlender/editors/leblendereditor/views/Base.cshtml",
        "config": {
            "editors": [
                {
                    "name": "description",
                    "alias": "description",
                    "propretyType": {},
                    "dataType": "ca90c950-0aff-4e72-b976-a30b1ac57dad",
                    "description": "Skriv indholdet af boksen her."
                }
            ],
            "min": 1,
            "max": 1,
            "frontView": "~/App_Plugins/Grid/View/moduleBoxNoTitle.cshtml",
            "renderInGrid": "1"
        }
    },
    {
        "name": "Modul billede",
        "alias": "mediaNoCaption",
        "view": "~/App_Plugins/Grid/View_js/medianocaption.html",
        "icon": "icon-picture",
        "render": "~/App_Plugins/Grid/View/medianocaption.cshtml"
    },
    {
        "name": "Nyhedsbrev boks",
        "alias": "newsletterBox",
        "view": "/App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.html",
        "icon": "icon-mailbox color-green",
        "render": "/App_Plugins/LeBlender/editors/leblendereditor/views/Base.cshtml",
        "config": {
            "frontView": "~/App_Plugins/Grid/View/newsletterBox.cshtml",
            "editors": [
                {
                    "name": "Titel",
                    "alias": "title",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt titel her"
                },
                {
                    "name": "Tekst",
                    "alias": "text",
                    "propretyType": {},
                    "dataType": "c6bac0dd-4ab9-45b1-8e30-e4b619ee5da3",
                    "description": "Indsæt tekst her."
                },
                {
                    "name": "Ikon",
                    "alias": "icon",
                    "propretyType": {},
                    "dataType": "2b3e17a0-5cc8-4ff4-aec9-d1c23f927049",
                    "description": "Vælg ikon"
                },
                {
                    "name": "Start tekst i felt",
                    "alias": "placeholderText",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt start tekst til feltet. (f.eks. \"[email protected]\")"
                },
                {
                    "name": "Tekst på knap",
                    "alias": "buttonText",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt tekst til knappen"
                },
                {
                    "name": "Fejl i mail tekst",
                    "alias": "mailError",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt en fejlbesked, hvis der er indtastet en ugyldig email"
                },
                {
                    "name": "Succes besked ved tilmelding",
                    "alias": "succesSignUp",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indtast succes beskeden der skal vises efter tilmelding"
                }
            ],
            "renderInGrid": "1",
            "min": 1,
            "max": 1
        }
    },
    {
        "name": "Søgeboks",
        "alias": "searchBox",
        "view": "/App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.html",
        "icon": "icon-search",
        "render": "/App_Plugins/LeBlender/editors/leblendereditor/views/Base.cshtml",
        "config": {
            "frontView": "~/App_Plugins/Grid/View/searchBox.cshtml",
            "renderInGrid": "1",
            "min": 1,
            "editors": [
                {
                    "name": "Titel",
                    "alias": "title",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Titel til søgeboksen"
                },
                {
                    "name": "Søgefelt tekst",
                    "alias": "placeholderText",
                    "propretyType": {},
                    "description": "Søgefelt tekst",
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae"
                }
            ]
        }
    },
    {
        "name": "Sociale ikoner",
        "alias": "socialIcons",
        "view": "/App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.html",
        "icon": "icon-globe-europe---africa color-yellow",
        "render": "/App_Plugins/LeBlender/editors/leblendereditor/views/Base.cshtml",
        "config": {
            "editors": [
                {
                    "name": "Titel",
                    "alias": "title",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt titel på boksen her"
                },
                {
                    "name": "Facebook url",
                    "alias": "facebookUrl",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt url'en til Facebook siden her"
                },
                {
                    "name": "Twitter url",
                    "alias": "twitterUrl",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt url'en til Twitter her"
                },
                {
                    "name": "LinkedIn url",
                    "alias": "linkedInUrl",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt url'en til LinkedIn her"
                },
                {
                    "name": "Google+ url",
                    "alias": "googleUrl",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt url'en til Google+ her"
                },
                {
                    "name": "Tekst under ikoner",
                    "alias": "textBelowIcons",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt teksten under ikonerne her"
                }
            ],
            "renderInGrid": "1",
            "frontView": "~/App_Plugins/Grid/View/socialIcons.cshtml",
            "min": 1,
            "max": 2
        }
    },
    {
        "name": "Banner",
        "alias": "banner",
        "view": "/App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.html",
        "icon": "icon-bookmark",
        "render": "/App_Plugins/LeBlender/editors/leblendereditor/views/Base.cshtml",
        "config": {
            "editors": [
                {
                    "name": "Banner billede",
                    "alias": "bannerImage",
                    "propretyType": {},
                    "dataType": "93929b9a-93a2-4e2a-b239-d99334440a59",
                    "description": "Indsæt et banner billede her"
                },
                {
                    "name": "Banner Link",
                    "alias": "bannerUrl",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt linket til banneret her"
                },
                {
                    "name": "Alt tekst",
                    "alias": "altText",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt alt tekst til banneret her"
                }
            ],
            "renderInGrid": "1",
            "min": 1,
            "frontView": "~/App_Plugins/Grid/View/banner.cshtml"
        }
    },
    {
        "name": "Seneste forum indlæg",
        "alias": "latestForumPosts",
        "view": "/App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.html",
        "icon": "icon-layers-alt",
        "render": "/App_Plugins/LeBlender/editors/leblendereditor/views/Base.cshtml",
        "config": {
            "renderInGrid": "1",
            "min": 1,
            "frontView": "~/App_Plugins/Grid/View/latestForumPosts.cshtml",
            "editors": [
                {
                    "name": "Titel",
                    "alias": "title",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt titel her"
                },
                {
                    "name": "Tekst til \"se seneste indlæg\" link",
                    "alias": "linkLatestTxt",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt tekst til linket her"
                }
            ]
        }
    },
    {
        "name": "Modul boks knap",
        "alias": "modulBoksKnap",
        "view": "/App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.html",
        "icon": "icon-settings-alt",
        "render": "/App_Plugins/LeBlender/editors/leblendereditor/views/Base.cshtml",
        "config": {
            "editors": [
                {
                    "name": "Titel",
                    "alias": "title",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt titel her"
                },
                {
                    "name": "Brødtekst",
                    "alias": "text",
                    "propretyType": {},
                    "dataType": "ca90c950-0aff-4e72-b976-a30b1ac57dad",
                    "description": "Indsæt indholdet af boksen her"
                },
                {
                    "name": "Tekst på knap",
                    "alias": "buttonText",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indsæt teksten til knappen her"
                }
            ],
            "renderInGrid": "1",
            "min": 1,
            "frontView": ""
        }
    },
    {
        "name": "Seneste kommentarer",
        "alias": "senesteKommentarer",
        "view": "/App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.html",
        "icon": "icon-ordered-list",
        "render": "/App_Plugins/LeBlender/editors/leblendereditor/views/Base.cshtml",
        "config": {
            "frontView": "~/App_Plugins/Grid/View/latestNewsComments.cshtml",
            "min": 1,
            "max": 1,
            "editors": [
                {
                    "name": "Titel",
                    "alias": "title",
                    "propretyType": {},
                    "dataType": "0cc0eba1-9960-42c9-bf9b-60e150b429ae",
                    "description": "Indtast en titel her"
                }
            ]
        }
    }
    

    ]

  • peter 13 posts 144 karma points
    Apr 26, 2017 @ 12:41
    peter
    101

    Hi Daniel,

    I think i have been able to reproduce your error by first creating a datatype in Developer->datatype, adding that datatype to the leblender and then deleting the datatype again. It doesnt update the editor.config if you delete it.

    So you can check two things: Check if the datatypes of the properties using the editor exist in the Data type section

    Check if the datatype unique id is equal to the one in the database. (I wonder if this one is faster than recreating it though..)

  • Daniel Jensen 29 posts 160 karma points
    Apr 27, 2017 @ 10:11
    Daniel Jensen
    0

    Manually editing the editor.config file did indeed work. It is odd, that it fails to retrieve the others though, since its just an extra grid editor config object lying in the file. Its not even malformed syntax or anything. I guess the plugin should be updated, to either delete the config object in the editor.config file, or skip it, when trying to load it, so it doesnt break the rest of the plugin in the backoffice part.

    Best regards Daniel

Please Sign in or register to post replies

Write your reply to:

Draft