Copied to clipboard

Flag this post as spam?

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


  • jtrip 13 posts 103 karma points
    May 06, 2016 @ 15:40
    jtrip
    0

    Form template not displayed, Exceptions on front-end and back-end

    Hi, I have some good development experience but am new to Umbraco and C# web apps and have inherited a project and repo from another team.

    The project is running (without the errors below) on the clients PROD url and there is also an STG url hosted by two separate azure web apps services. These instances originally pointed to the same DB but I duplicated it and pointed STG to the new copy so I could freely test changes.

    version info: UmbracoCms version 7.2.4 UmbracoForms version 4.1.4

    I am able to build from the repo however when loading a page that includes an Umbraco Forms template the template section is not displayed and instead I see this error message:
    Error loading Partial View script (file: ~/Views/MacroPartials/InsertUmbracoForm.cshtml)

    At the same time this is generated in the App_Data/UmbracoTraceLog.txt

    http://clipboard.space/clip/beAWGgX3necB0PeKOJyq

    The file mentioned in the first line InsertUmbracoFrom.cshtml is just:

    @inherits Umbraco.Web.Macros.PartialViewMacroPage
    
    
    @if (Model.MacroParameters["FormGuid"] != null)
    {
    var s = Model.MacroParameters["FormGuid"].ToString();
    var g = new Guid(s);
    
    Html.RenderAction("Render", "UmbracoForms", new {formId = g});
    }
    

    The path (drive) for the file in the second line does not exist on my local machine or in the ftp path of the azure web app.

    Also when I am testing locally using the debugger I see two exceptions as it is trying to load that page.

    http://clipboard.space/clip/MBO3925pD5irjMp7DxyE

    http://clipboard.space/clip/gg9AGRgOQvsbn8aKqJYD

    When loading the forms interface in the backoffice the Visual Studio debugger opened a find file dialog and was looking for RecordController.cs however I have not been able to find this file. Subsequent loading in the back office has not prompted this dialog box however the forms list does not show the all the forms that are visible from the running instance in STG. (I pointed my local instance to the STG DB)

    I believe this find file dialog might have appeared for the front end exception as well but I was confused and did not note the file name, I do not know how to 'reset' that 'warning' to see what file it was looking for, I believe it might have been an Umbraco Forms controller.

    The attempt to build from the repo and re-deploy was spurred by needing to make a change to the form entries export controller. I was actually able to make that change (on a different branch), build, and test it; since testing that api endpoint did not require me to load the front end or backoffice.

    These errors seem to be related to Umbraco Forms files and not the previously written custom code, but I am not sure.

    Is it possible to recompile controllers (or other cs source) downloaded from the azure web apps instance? I believe I cannot do this because I could not find the source in the ftp path.

    I would like to get some paid support but the client is still looking for their support/license information.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 06, 2016 @ 16:43
    Dennis Aaen
    1

    Hi jtrip,

    First of all It could be this one that you have hitting into http://issues.umbraco.org/issue/CON-867

    I would recommend you to at least upgrade Umbraco Forms to 4.1.5, the recommendation for this is: https://umbraco.com/follow-us/blog-archive/2016/1/27/umbraco-forms-security-notice/

    When you are going to upgrade your Umbraco Forms, then I would recommend you to upgrade to the latest versions, then you get all the latest features and fixes.

    You can do a manually Umbraco Forms upgrade by copy over the folders and files from this zip file. https://umbraconightlies.blob.core.windows.net/umbraco-forms-release/UmbracoForms.Files.4.2.1.zip

    Hope this helps,

    /Dennis

  • jtrip 13 posts 103 karma points
    May 06, 2016 @ 18:30
    jtrip
    0

    Thanks for the info Dennis, that issue you linked to does look an awful lot like mine so I am going to try the upgrade.

    I noticed that there are a few templates in that zip. Do you know if there are any significant changes to that part of the system? My Form.cshtml and FieldType.FileUpload.cshtml are quite customized so merging the two would be a pretty big task. I'm kind of guessing that the views can be largely ignored in an update when there are highly customized templates.

    Also is the empty App_Data/TEMP/formupdate file used as a trigger? Should it be there only for initial recycling of the app and then removed?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 06, 2016 @ 18:50
    Dennis Aaen
    0

    Hi Jtrip,

    If you have customized the Forms.cshtml and FieldType.FileUpload.cshtml then you should just leave them as you have made them. The should not been changes to this as far as I am informed.

    I can see I donĀ“t have it in my test site so it should be save to remove.

    Hope this helps,

    /Dennis

  • jtrip 13 posts 103 karma points
    May 06, 2016 @ 19:27
    jtrip
    0

    Thanks for the tip, I copied over everything (and even tried to copy the templates after the first attempt) but I am still getting the same exact behavior.

    Is there a process I have to follow to make sure the upgrade is complete, or is just restarting the app sufficient?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 06, 2016 @ 19:39
    Dennis Aaen
    0

    Hi Jtrip,

    Could you add a issue on this issue tracker, http://issues.umbraco.org/issues/CON then I will talk to Warren on Monday who is one of the guys who works on the Umbraco Forms project.

    You can just link to this thread.

    /Dennis

  • jtrip 13 posts 103 karma points
    May 06, 2016 @ 20:38
    jtrip
    0

    Thanks again Dennis, for reference I created this issue: http://issues.umbraco.org/issue/CON-1025

  • jtrip 13 posts 103 karma points
    May 10, 2016 @ 14:26
    jtrip
    0

    Hello, just wondering if Warren was able to take a look at the error or anyone else could point me in the right direction.

    I do have my Contour license information if that helps.

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    May 17, 2016 @ 07:25
    Warren Buckley
    0

    Hello JTrip
    As discussed on your support ticket. The problem to this was that the JSON file for the form was missing off disk.

    As reference we have created a new issue/task for Forms that gives better error message than the one you received.

    http://issues.umbraco.org/issue/CON-1034

    Thanks,
    Warren :)

Please Sign in or register to post replies

Write your reply to:

Draft