@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 error is just appearing in the log file. There are no forms called Standard and no custom API stuff with the forms from what I can see (I inherited the site). The forms implementation is fairly simple and standard.
So if this only appears in the logs.
Does the form correctly render on the page as expected in the correct place in the grid & successfully submit etc ?
Does this happen for all forms in the site and is it only seen on the live/production server or are you seeing this same problem on other environments such as development your local machine?
Hi Ben,
No not currently from the logs, I have just got a current task from my sprint that is to improve log messages with more contextual information such as the form etc which may be caught in this updated version coming.
But I would recommend trying to diagnose the issue on other environments or your local machine to see if you see the same error in the message, if not then it suggests something specific with the production environment.
If you can replicate, then we can try and find out further information on steps to reproduce the problem in order to help you out.
I've just looked ad the live logs and this is still appearing there in the last few days. I've just gone through the site and submitted the forms and none of them throw an error or log an error in the error logs so struggling to replicate at the moment.
Umbraco Forms error log : Error loading partial view macro (View: ~/Views/MacroPartials/InsertUmbracoForm.cshtml)
Hi,
I've getting the following for a live site. The path looks odd (and wrong) to me, has anybody had anything similar or know a fix?
Hello Ben,
That is odd, have you created any forms named
Standard
?Can you show me the contents of the following file please:
\Views\MacroPartials\InsertUmbracoForm.cshtml
As it should be trying to find a form based on a GUID as an alternative override. So it seems your Form ID is set to Standard?
Have you been pragmatically using the APIs of Forms to try and create Forms or similar?
Does this fail for all forms or for a very specific form?
Also how is the macro used, inside a grid cell, inside a RTE or directly on a template or view?
Hopefully together we can help figure this out.
Thanks,.
Warren
Contents of InsertUmbracoForm is.
The error is just appearing in the log file. There are no forms called Standard and no custom API stuff with the forms from what I can see (I inherited the site). The forms implementation is fairly simple and standard.
The forms are inserted in a Grid.
So if this only appears in the logs.
Does the form correctly render on the page as expected in the correct place in the grid & successfully submit etc ?
Does this happen for all forms in the site and is it only seen on the live/production server or are you seeing this same problem on other environments such as development your local machine?
The forms works correctly and fine on the site. There 3, pretty basic forms.
It's just an error message I noticed appearing in the logs.
Is there a way to tell which form or page is causing the error in the message?
The logs are from production server. Not checked other environments.
Hi Ben, No not currently from the logs, I have just got a current task from my sprint that is to improve log messages with more contextual information such as the form etc which may be caught in this updated version coming.
But I would recommend trying to diagnose the issue on other environments or your local machine to see if you see the same error in the message, if not then it suggests something specific with the production environment.
If you can replicate, then we can try and find out further information on steps to reproduce the problem in order to help you out.
Thanks,
Warren
Hi Warren,
I've just looked ad the live logs and this is still appearing there in the last few days. I've just gone through the site and submitted the forms and none of them throw an error or log an error in the error logs so struggling to replicate at the moment.
Thanks for the update.
I am not sure what could be causing this. Especially if everything seems to be working all OK.
This got approved as fixed by internal review for this sprint - http://issues.umbraco.org/issue/CON-906
So a nightly build of Umbraco Forms should be available for you to try that should give more contextual logging & MiniProfiler messages to help you.
When doing any updates make sure you always backup, so you can ensure you can rollback if needed.
http://nightly.umbraco.org/?container=umbraco-forms
https://umbraconightlies.blob.core.windows.net/umbraco-forms/nightlies/UmbracoForms.Files.4.2.2-build142.zip
Let me know if this helps to pinpoint the problem for you.
Thanks,
Warren
is working on a reply...