Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
I'm getting the following error and haven't made any changes to allowDisplay variable and don't know how to figure out what the error is. There is a customization to hide the Checkout button on the notifier popup under certain conditions. Do I need to do something with allowDisplay? Thanks, these parameters are all new for me. Here's the code that hides it-allowCheckout is a boolean I populated in code at top of page: @if (ViewBag.CheckoutButtonVisible == true && allowCheckout) { <button type="submit" class="btn btn-primary" onclick="document.getElementById('IsMiniDropdownCheckoutButton').value = '1'">@GetResourceString("retail.minibasketdropdown.checkout")</button> } An error has occured at https://www.xxx.com/Checkout/_ItemAddedNotify View less Exception: The parameters dictionary contains a null entry for parameter 'allowDisplay' of non-nullable type 'System.Boolean' for method 'System.Web.Mvc.ActionResult _ItemAddedNotify(Boolean)' in 'AbleCommerce.Controllers.CheckoutController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.Parameter name: parameters Stack Trace: at System.Web.Mvc.ActionDescriptor.ExtractParameterFromDictionary(ParameterInfo parameterInfo, IDictionary`2 parameters, MethodInfo methodInfo) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.ExecuteCore() at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) at System.Web.Mvc.Async.AsyncResultWrapper.<.cctor>b__0(IAsyncResult asyncResult, Action action) at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
This seems to happen because of some bot that is scanning the page source and requesting all the URLs without using the required parameters. In this case, a request is initiated without giving the param i-e allowDisplay.
This request is never initiated from any UI flow or application feature.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close