Dynamic Form Plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 года назад
We are in the process of upgrading from Nop 3.7 to 4.3. I can get everything else upgraded and working (theme and plugins) however, once I add in the Dynamic Form Plugin I get the error below.

- I'm using the 4.3 NoSource
- I've tried adding in the plugin using both the add plugin button in the admin side as well as drag and drop the 4.3 folder into to plugin folder in the backed.
- Since we had this plugin on our version of 3.7 I've also renamed the database tables that were originally created to see if that would fix the issue, but it didn't.

Any thoughts on where to look to solve the issue?

Error:

An unhandled exception occurred while processing the request.
SqlException: Invalid object name 'DynamicFormItem'.
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, bool breakConnection, Action<Action> wrapCloseInAction)
•  Stack
•  Query
•  Cookies
•  Headers
•  Routing
•  SqlException: Invalid object name 'DynamicFormItem'.
o  System.Data.SqlClient.SqlConnection.OnError(SqlException exception, bool breakConnection, Action<Action> wrapCloseInAction)
o  System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, bool breakConnection, Action<Action> wrapCloseInAction)
o  System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, bool callerHasConnectionLock, bool asyncClose)
o  System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, out bool dataReady)
o  System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
o  System.Data.SqlClient.SqlDataReader.get_MetaData()
o  System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, string resetOptionsString)
o  System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, bool returnStream, bool async, int timeout, out Task task, bool asyncWrite, SqlDataReader ds)
o  System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, bool returnStream, TaskCompletionSource<object> completion, int timeout, out Task task, bool asyncWrite, string method)
o  System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, bool returnStream, string method)
o  System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
o  System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
o  System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
o  LinqToDB.Data.DbCommandProcessor.DbCommandProcessorExtensions.ExecuteReaderExt(IDbCommand cmd, CommandBehavior commandBehavior)
o  LinqToDB.Data.DataConnection.ExecuteReader(IDbCommand command, CommandBehavior commandBehavior)
o  LinqToDB.Data.DataConnection.ExecuteReader(CommandBehavior commandBehavior)
o  LinqToDB.DataContext+QueryRunner.ExecuteReader()
o  LinqToDB.Linq.QueryRunner.ExecuteQuery<T>(Query query, IDataContext dataContext, Mapper<T> mapper, Expression expression, object[] ps, int queryNumber)+MoveNext()
o  System.Collections.Generic.List<T>..ctor(IEnumerable<T> collection)
o  System.Linq.Enumerable.ToList<TSource>(IEnumerable<TSource> source)
o  Nop.Plugin.Widgets.DynamicForm.Services.DynamicFormItemService+<>c__DisplayClass16_0.<GetAllWidgetsName>b__0()
o  Nop.Core.Caching.MemoryCacheManager+<>c__DisplayClass6_0<T>.<Get>b__0(ICacheEntry entry) in MemoryCacheManager.cs
o  Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate<TItem>(IMemoryCache cache, object key, Func<ICacheEntry, TItem> factory)
o  Nop.Core.Caching.MemoryCacheManager.Get<T>(CacheKey key, Func<T> acquire) in MemoryCacheManager.cs
o  Nop.Plugin.Widgets.DynamicForm.Services.DynamicFormItemService.GetAllWidgetsName(int storeId)
o  Nop.Plugin.Widgets.DynamicForm.DynamicFormPlugin.GetWidgetZones()
o  Nop.Services.Cms.WidgetPluginManager+<>c__DisplayClass2_0.<LoadActivePlugins>b__0(IWidgetPlugin widget) in WidgetPluginManager.cs
o  System.Linq.Enumerable+WhereListIterator<TSource>.ToList()
o  System.Linq.Enumerable.ToList<TSource>(IEnumerable<TSource> source)
o  Nop.Services.Cms.WidgetPluginManager.LoadActivePlugins(Customer customer, int storeId, string widgetZone) in WidgetPluginManager.cs
o  Nop.Web.Areas.Admin.Factories.WidgetModelFactory.PrepareRenderWidgetModels(string widgetZone, object additionalData) in WidgetModelFactory.cs
o  Nop.Web.Areas.Admin.Components.AdminWidgetViewComponent.Invoke(string widgetZone, object additionalData) in AdminWidget.cs
o  lambda_method(Closure , object , object[] )
o  Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(object target, object[] parameters)
o  Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeSyncCore(ObjectMethodExecutor executor, ViewComponentContext context)
o  Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context)
o  Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, object arguments)
o  AspNetCore.Areas_Admin_Views_Common_Warnings.ExecuteAsync() in Warnings.cshtml
+
16.          @await Component.InvokeAsync("AdminWidget", new { widgetZone = AdminWidgetZones.WarningsButtons })
o  Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
o  Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, bool invokeViewStarts)
o  Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
o  Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, string contentType, Nullable<int> statusCode)
o  Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, string contentType, Nullable<int> statusCode)
o  Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, string contentType, Nullable<int> statusCode)
o  Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
o  Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
o  Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|29_0<TFilter, TFilterAsync>(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
o  Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
o  Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext<TFilter, TFilterAsync>(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
o  Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
o  Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
o  Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
o  Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
o  Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
o  Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
o  Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
o  WebMarkupMin.AspNetCore3.WebMarkupMinMiddleware.ProcessAsync(HttpContext context, bool useMinification, bool useCompression)
o  WebMarkupMin.AspNetCore3.WebMarkupMinMiddleware.ProcessAsync(HttpContext context, bool useMinification, bool useCompression)
o  WebMarkupMin.AspNetCore3.WebMarkupMinMiddlewareBase.Invoke(HttpContext context)
o  StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in MiniProfilerMiddleware.cs
o  Nop.Services.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) in AuthenticationMiddleware.cs
o  Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
o  Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
o  Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
o  Nop.Services.Installation.InstallUrlMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in InstallUrlMiddleware.cs
o  Nop.Services.Common.KeepAliveMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in KeepAliveMiddleware.cs
o  Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
o  Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
o  Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
o  Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
o  Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
o  Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
•  
Show raw exception details
2 года назад
Are you using the 4.3 version of the plugin?
https://www.nopcommerce.com/en/dynamic-form-plugin-plugin-contact-form

4.3 moved away from Entity Framework so previous versions of the plugin won't work.  It may need an uninstall/re-install so it can go through the database migration, but outside of that if you're using the matching version then you'll likely need to contact the developer.
2 года назад
I am using the 4.3 version, but it doesn't seem to work. I'll contact the developer and see what they can do.

Thanks!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.