Copied to clipboard

Flag this post as spam?

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


  • Jonas Havmøller 4 posts 24 karma points
    Jun 15, 2015 @ 07:07
    Jonas Havmøller
    0

    404 Error when using "Render in grid"

    Hi,

    I am having a periodic error in my backoffice, when I'm using the setting "Render in grid".

    enter image description here

    I just came out of nowhere, but sometimes it disappear for a couple of hours, and then shows up again.

    Do you have any clue about what I'm doing wrong?

    BR Jonas

  • Antoine 176 posts 1482 karma points
    Jun 17, 2015 @ 15:47
    Antoine
    0

    Hi Jonas,

    It quite weird, maybe related with a session issue? could you give me the editor json config to try for my own

    Cheers

  • Anton Oosthuizen 185 posts 441 karma points
    Jun 17, 2015 @ 22:13
    Anton Oosthuizen
    0

    When I try to edit in the grid the above error appears. When I try to save any grid editor I get the error I uploaded

    enter image description here

  • Anton Oosthuizen 185 posts 441 karma points
    Jun 17, 2015 @ 22:13
    Anton Oosthuizen
    0

    I think this might be a related issue

  • Antoine 176 posts 1482 karma points
    Jun 18, 2015 @ 20:33
    Antoine
    0

    I don't think that it was related, your issue Anton seems to be that the grid json config has a bad format

  • Anton Oosthuizen 185 posts 441 karma points
    Jun 18, 2015 @ 21:46
    Anton Oosthuizen
    0

    Strange. It rectified itself after a good nights sleep :)

  • Antoine 176 posts 1482 karma points
    Jun 19, 2015 @ 07:19
    Antoine
    0

    oups !! weird... probably cache issue

  • Jonas Havmøller 4 posts 24 karma points
    Jun 23, 2015 @ 06:37
    Jonas Havmøller
    0

    I have not had the issue since I posted in here, so I guess it solved it self.

  • Anton Oosthuizen 185 posts 441 karma points
    Jun 23, 2015 @ 06:50
    Anton Oosthuizen
    0

    I've had the error again. And it looks like it happens if you are logged in both as member and user on the same email.

  • Antoine 176 posts 1482 karma points
    Jul 02, 2015 @ 15:28
    Antoine
    0

    Hi Anton

    I tried for my side and I can't reproduce your issue, did you figure out something else?

  • Regin Larsen 3 posts 24 karma points
    Jul 16, 2015 @ 10:41
    Regin Larsen
    1

    I started to get these errors after updating from Umbraco 7.2.6 to 7.2.7.

    I've sent a small pull request with some changes that solved the issue for me: https://github.com/Lecoati/LeBlender/pull/9

    / Regin

  • Antoine 176 posts 1482 karma points
    Jul 17, 2015 @ 17:54
    Antoine
    0

    Thanks Regin ! I will have a look on it, your change looks great. I just want to do some test before.

  • schlubadub 102 posts 617 karma points
    Jul 20, 2015 @ 09:17
    schlubadub
    0

    @Antoine - any idea when this will be fixed? I upgraded to Umbraco 7.2.8 yesterday and a lot of the LeBlender admin functionality is broken. I had to turn off 'render in grid' as I'm getting the 404 errors as described in this thread, and I am also unable to save any changes (via GridEditors nav) to my grid.editors.config file too (I've checked permissions are still okay).

  • Antoine 176 posts 1482 karma points
    Jul 20, 2015 @ 09:25
    Antoine
    0

    Hi,

    I will publish a release today to fixed that and others small bugs. I ll keep you up to to date.

  • Antoine 176 posts 1482 karma points
    Jul 20, 2015 @ 11:21
    Antoine
    0

    The bug is fixed in LeBlender 1.0.8 (just released), many thanks Regin for your contribution

  • schlubadub 102 posts 617 karma points
    Jul 21, 2015 @ 19:18
    schlubadub
    1

    I've just updated to 1.08 and it's completely broken everything... even worse than before! With the previous version I could just turn rendering off and the users could still edit their leblender items and they would still show on the webpage...

    But with 1.0.8: - If I attempt to edit anything in the GridEditors section it breaks - My front-end webpages are now not working and displaying lots of "Object reference not set to an instance of an object" errors - With rendering off I can click on a LeBlender item in the admin to show the details but I can't save any changes at all - If I turn rendering on it's flooded with those red 404 errors

    I've tried republishing everything, clicking on each leblender item and trying to save them but nothing works.

    I have these errors showing now:

    WARN  Umbraco.Core.Services.ApplicationTreeService - [P5664/T36/D11] The tree definition: <add initialize="true" sortOrder="0" alias="GridEditorManager" application="developer" title="Grid Editors" iconClosed="icon-doc" iconOpen="icon-folder-open" type="Lecoati.leblender.Extension.Controllers.LeBlenderEditorManagerTreeController, Lecoati.leblender.Extension" /> could not be resolved to a .Net object type
    

    and a lot of these errors too, possibly not related to LeBlender (although that's the only thing having issues)

    2015-07-22 02:13:33,273 [27] ERROR Umbraco.Web.Mvc.AdminTokenAuthorizeAttribute - [P5664/T17/D7] Failed to format passed in token value
    System.Security.Cryptography.CryptographicException: Error occurred during a cryptographic operation.
       at System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] input)
       at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket)
       at Umbraco.Core.StringExtensions.DecryptWithMachineKey(String value)
       at Umbraco.Web.Mvc.AdminTokenAuthorizeAttribute.AuthorizeCore(HttpContextBase httpContext)
    2015-07-22 02:13:33,304 [27] ERROR Umbraco.Core.UmbracoApplicationBase - [P5664/T17/D7] An unhandled exception occurred
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Umbraco.Core.Configuration.UmbracoSettings.ContentErrorPageElement.set_Culture(String value)
       at Umbraco.Core.Configuration.UmbracoSettings.ContentErrorsElement.get_Error404Collection()
       at Umbraco.Web.Routing.ContentFinderByLegacy404.TryFindContent(PublishedContentRequest pcr)
       at Umbraco.Web.Routing.ContentLastChanceFinderByNotFoundHandlers.HandlePageNotFound(PublishedContentRequest docRequest)
       at Umbraco.Web.Routing.ContentLastChanceFinderByNotFoundHandlers.TryFindContent(PublishedContentRequest docRequest)
       at Umbraco.Web.Routing.PublishedContentRequestEngine.HandlePublishedContent()
       at Umbraco.Web.Routing.PublishedContentRequestEngine.UpdateRequestOnMissingTemplate()
       at Umbraco.Web.Mvc.RenderRouteHandler.GetHandlerForRoute(RequestContext requestContext, PublishedContentRequest publishedContentRequest)
       at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context)
       at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    

    I rolled back these files (1.0.7 files): blendereditorwrapper.js, requesthelper.service.js, parameterconfig.controller.js, parameterconfig.html, as well as the main LeBlender dll, and the front-end site is at least working again! Admin still won't save though...

  • Antoine 176 posts 1482 karma points
    Jul 21, 2015 @ 20:35
    Antoine
    0

    Hi,

    It's essential to clear the clientdependency cache just after upgrade the package or work in debug mode, hopefully it is related with that.

    If you still have the issue, give me more información about your LeBlender version your are trying to upgrade and if you are using nuget, I will try to reproduce your issue. Antoine

  • schlubadub 102 posts 617 karma points
    Jul 22, 2015 @ 19:47
    schlubadub
    0

    I've tried clearing the clientdependecy, updating the clientdependecy.config, and touching the web.config but it still isn't working.

    However, I set debug to true and it DOES start working. I re-saved all of my GridEditors, then had to go through every page on every site with a LeBlender component, click each individual leblender component and click 'update' for it to start working again (then publish the whole page obviously). One of my previously working components still refuses to work though.

    But, if I then set debug to false then it falls over again (only the front-end works):

    In the Content areas I get multiple big red error messages (as shown earlier in this thread) saying "Request error: The URL returned a 404 (not found): /umbraco/surface/Helper/GetPartialViewResultAsHtmlForEditor"

    And in the GridEditors area I get the big red error "The URL returned a 404 (not found): /umbraco/surface/Helper/SaveEditorConfig"

    Note: I upgraded from 1.0.7 to 1.0.8 - I upgrade my development version using Nuget, and then copy the updated & published files to the live server.

  • schlubadub 102 posts 617 karma points
    Jul 24, 2015 @ 08:15
    schlubadub
    0

    Any ideas Antoine?

  • Antoine 176 posts 1482 karma points
    Jul 24, 2015 @ 10:23
    Antoine
    0

    Hi,

    Sorry, I didn't have the time to have a look on that... but I did several upgrade of leblender 1.0.7 to 1.0.8 in different projects, the only issue I found was related with the strong cache of Umbraco.

    I always have the error: Request error: The URL returned a 404..., but it always related with the client dependency cache, try to remove the folder /app_data/temp/ClientDependency in your both environments and clear your browser cache as well. If it worked in mode bebug=true, it must be related with that...

    For the only componente that doesn't work, have you got a specific error?

  • schlubadub 102 posts 617 karma points
    Jul 25, 2015 @ 18:10
    schlubadub
    0

    Hi Antoine,

    I noticed that I had a second ClientDependecy folder in AppData (i.e. AppData/ClientDependecy). I was previously only clearing the files in App_Data/TEMP/ClientDependecy. Anyway, I shutdown the site in IIS, deleted both of the ClientDependecy folders and restarted it... and it started to work!

    So it looks like you were right all along :) Thank you very much for your help!

  • Ibrahim Abdulhussein 7 posts 27 karma points
    Jul 28, 2015 @ 10:44
    Ibrahim Abdulhussein
    0

    Hello Guys

    I have the same problem. I'm using Umbarco 7.2.8 and leBlender 1.08. I removed all ClientDependency folder and removed browser cache. But the problem is still there. The Error I got

    Please help!! My project depend heavily on Grid Editors.

  • Antoine 176 posts 1482 karma points
    Jul 28, 2015 @ 12:24
    Antoine
    0

    Hi Ibrahim,

    It seems to be again related with some cache... did you try in debug mode?

  • Antoine 176 posts 1482 karma points
    Jul 29, 2015 @ 09:26
    Antoine
    1

    Hi Ibrahim,

    There is another potencial explaining, and this is something we have to change in the next version of Leblender:

    When you create a new LeBlender Editor, its properties are related with datatype GUIDs. The probleme here is that if your are working with a local database with differnt datatype GUIDs, you must be careful to update your Leblender Editor properties first with the right datatype, otherwise you will have this issue.

  • Ibrahim Abdulhussein 7 posts 27 karma points
    Jul 29, 2015 @ 15:45
    Ibrahim Abdulhussein
    0

    Thank you Antonie

    I tried that and the problem solve. i copied the grid config file from another installation.

  • Antoine 176 posts 1482 karma points
    Jul 29, 2015 @ 16:23
    Antoine
    0

    Hi Ibrahim, Hi Schlubadub

    Problems solved, it makes me happy :) I can go on holiday in peace ! We really have to solve the GUID issue, we always have problem with that.

    Cheers

  • mmaty 68 posts 171 karma points
    Aug 05, 2015 @ 08:17
    mmaty
    0

    Same story in my implementation. Is there any solution in sight?

    My workaround is to edit the grid.editors.config.js manually. Since I need the datatype guids to do this, I wrote a short service which produced a list of the guids:

    "Label":"f0bc4bfb-b499-40d6-ba86-058885a5178c",
    "Upload":"84c6b441-31df-4ffe-b67e-67d5bc3ae65a",
    "Textbox multiple":"c6bac0dd-4ab9-45b1-8e30-e4b619ee5da3",
    "Textstring":"0cc0eba1-9960-42c9-bf9b-60e150b429ae",
    "Richtext editor":"ca90c950-0aff-4e72-b976-a30b1ac57dad",
    "Numeric":"2e6d3631-066e-44b8-aec4-96f09099b2b5",
    "True/false":"92897bc6-a5f3-4ffe-ae27-f2e7e33dda49",
    "Checkbox list":"fbaf13a8-4036-41f2-93a3-974f678c312a",
    "Dropdown":"0b6a45e7-44ba-430d-9da5-4e46060b9e03",
    "Date Picker":"5046194e-4237-453c-a547-15db3a07c4e1",
    "Radiobox":"bb5f57c9-ce2b-4bb9-b697-4caca783a805",
    "Dropdown multiple":"f38f0ac7-1d27-439c-9f3f-089cd8825a53",
    "Folder Browser":"fd9f1447-6c61-4a7c-9595-5aa39147d318",
    "Approved Color":"0225af17-b302-49cb-9176-b9f35cab9c17",
    "Date Picker with time":"e4d66c0f-b935-4200-81f0-025f7256b89a",
    "List View - Content":"c0808dd3-8133-4e4b-8ce8-e2bea84a96a4",
    "List View - Media":"3a0156c4-3b8c-4803-bdc1-6871faa83fff",
    "List View - Members":"aa2c52a0-ce87-4e65-a47c-7df09358585d",
    "Content Picker":"a6857c73-d6e9-480c-b6e6-f15f6ad11125",
    "Media Picker":"93929b9a-93a2-4e2a-b239-d99334440a59",
    "Member Picker":"2b24165f-9782-4aa3-b459-1de4a4d21f60",
    "Related Links":"21e798da-e06e-4eda-a511-ed257f78d4fa",
    "Tags":"b6b73142-b9c1-4bf8-a16d-e1c23320b549",
    "Image Cropper":"1df9f033-e6d4-451f-b8d2-e0cbc50a836f",
    "Multiple Media Picker":"7e3962cc-ce20-4ffc-b661-5897a894ba7e",
    

    This is a short example:

    {
        "name": "My awesome Grid Editor",
        "alias": "myAwesomeGridEditor",
        "view": "/App_Plugins/LeBlender/editors/leblendereditor/LeBlendereditor.html",
        "icon": "icon-whhg-squareplay",
        "render": "YourRenderer.cshtml",
        "config": {
            "editors": [
                {
                    "name": "The Content",
                    "alias": "theContent",
                    "propretyType": {},
                    // Content Picker
                    "dataType": "a6857c73-d6e9-480c-b6e6-f15f6ad11125"  
                }
            ],
            "renderInGrid": "0",
            "min": null,
            "max": null,
            "expiration": 360,
            "frontView": "ff-slideshow"
        }
    },
    

    Hope, this helps somebody.

    Mirko

  • Travis Schoening 35 posts 158 karma points
    Aug 17, 2017 @ 00:01
    Travis Schoening
    0

    Where are you finding these GUID values?

  • mmaty 68 posts 171 karma points
    Aug 05, 2015 @ 09:33
    mmaty
    0

    I found the solution. The update to 1.0.8 via NuGet didn't update the file

    /App_Plugins/LeBlender/common/services/requesthelper.service.js

    There was a change in the HelperController (see r. 81) from a SurfaceController to an UmbracoAuthorizedApiController. The requesthelper.service.js calls the api with the URL

    /umbraco/surface/Helper/SaveEditorConfig

    which doesn't apply for UmbracoAuthorizedApiControllers. The .js file was changed in r. 82 but seems not te be updated with NuGet.

    Solution: Checkout the file from the Git repository (https://github.com/Lecoati/LeBlender/trunk) and replace it in your umbraco installation.

  • Thomas 65 posts 87 karma points
    Sep 11, 2015 @ 06:59
    Thomas
    0

    Hi I just had the same issue as Jonas:

    Running Umbraco 7.2.5 with LeBlender (1.05 I think) Updated to Umbraco 7.2.8 Got 404 error messages with getPartialViewResultAsHtmlForEditor in the editor with rendering in the grid Updated LeBlender to 1.08 using package installer - still had the issue Deleted both ClientDependency folders - still an issue Ran the site with debug set to true - no problems at all Restarted computer, deleted clientdepency folders, deleted the browseer cache, ran in debug mode, saved all pages with grid in, republished entire site - and switched back to debug=false - that solved it

    Thanks for making a fantastic package and helping solve problems with it!! :o)

  • Jonas Havmøller 4 posts 24 karma points
    Sep 15, 2015 @ 08:18
    Jonas Havmøller
    0

    Did anyone find a nice solution for the GUID-problem?

    It's kind of a huge problem, that we cant deploy the grid.editor.js config file to our server, because of the different GUIDs in the DB.

  • Dan Evans 582 posts 922 karma points
    Oct 02, 2015 @ 10:58
    Dan Evans
    0

    I have just upgraded to Umbraco 7.3.0 and this issue has started. Is there a problem with 7.3.0?

  • z4kk 24 posts 78 karma points
    Apr 20, 2017 @ 12:33
    z4kk
    0

    I know it's old post. But solution is:
    Set disableFindContentByIdPath in umbracoSettings.config to false

    I hope this may help you :3

Please Sign in or register to post replies

Write your reply to:

Draft