in general common, when I click save it throws an error but still it saves

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
when in general common, I edit the social media links and click save button, it throws this error, but it get the work saved  :


An unhandled exception occurred while processing the request.
ArgumentException: The value '0' is not a valid value for the enum 'CaptchaType'.
System.ComponentModel.EnumConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)

Stack Query Cookies Headers Routing
ArgumentException: The value '0' is not a valid value for the enum 'CaptchaType'.
System.ComponentModel.EnumConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System.ComponentModel.TypeConverter.ConvertToString(ITypeDescriptorContext context, CultureInfo culture, object value)
Nop.Services.Configuration.SettingService.SetSetting(Type type, string key, object value, int storeId, bool clearCache) in SettingService.cs
Nop.Services.Configuration.SettingService.SetSetting<T>(string key, T value, int storeId, bool clearCache) in SettingService.cs
Nop.Services.Configuration.SettingService.SaveSetting<T, TPropType>(T settings, Expression<Func<T, TPropType>> keySelector, int storeId, bool clearCache) in SettingService.cs
Nop.Services.Configuration.SettingService.SaveSettingOverridablePerStore<T, TPropType>(T settings, Expression<Func<T, TPropType>> keySelector, bool overrideForStore, int storeId, bool clearCache) in SettingService.cs
Nop.Web.Areas.Admin.Controllers.SettingController.GeneralCommon(GeneralCommonSettingsModel model) in SettingController.cs
lambda_method(Closure , object , object[] )
Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
WebMarkupMin.AspNetCore3.WebMarkupMinMiddleware.ProcessAsync(HttpContext context, bool useMinification, bool useCompression)
WebMarkupMin.AspNetCore3.WebMarkupMinMiddleware.ProcessAsync(HttpContext context, bool useMinification, bool useCompression)
WebMarkupMin.AspNetCore3.WebMarkupMinMiddlewareBase.Invoke(HttpContext context)
StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in MiniProfilerMiddleware.cs
Nop.Services.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) in AuthenticationMiddleware.cs
Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
Nop.Services.Installation.InstallUrlMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in InstallUrlMiddleware.cs
Nop.Services.Common.KeepAliveMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in KeepAliveMiddleware.cs
Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Show raw exception details
3 years ago
What version of nopCommerce?
3 years ago
New York wrote:
What version of nopCommerce?


I am using 4.30
3 years ago
If you go to admin "All Settings", find  captchasettings.captchatype .  What do you see?
The default is CheckBoxReCaptchaV2.   Edit/put that value in there, and then go back to Common Settings and see if Save works then.
3 years ago
New York wrote:
If you go to admin "All Settings", find  captchasettings.captchatype .  What do you see?
The default is CheckBoxReCaptchaV2.   Edit/put that value in there, and then go back to Common Settings and see if Save works then.


hey, thx for help, I tried but still it's not working
3 years ago
Are you getting the same exact error "The value '0' is not a valid value for the enum 'CaptchaType'."?

Would you take a screen shot of your  captchasettings.captchatype setting and post it here?
3 years ago
New York wrote:
Are you getting the same exact error "The value '0' is not a valid value for the enum 'CaptchaType'."?

Would you take a screen shot of your  captchasettings.captchatype setting and post it here?


I checked it out, it is 0 and still I am having the same error
3 years ago
Go to admin "All Settings", find  captchasettings.captchatype .  
Take a screen capture and post here.

If the value is not CheckBoxReCaptchaV2, then Edit/put that value in there and Save.
Search again and verify it sticks.

Go to admin General / Common Settings.  Take a screen capture of the Captcha section and post it here.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.