Close

An exception was thrown while invoking the constructor

t.ent
10 years ago
#4062 Quote
Avatar
  • 9
We just installed the Ajax filter plugin.  It is displaying on the category page but when we click an option we get the following error below.  We have made some changes to the Category.cshtml page and other pages.  Maybe we have removed a field that is needed?  Can you tell us what section needs to be present when an option is clicked.

An exception was thrown while invoking the constructor 'Void .ctor(Nop.Services.Catalog.ICategoryService, Nop.Services.Catalog.IManufacturerService, Nop.Services.Catalog.IProductService, Nop.Services.Catalog.IProductTemplateService, Nop.Services.Catalog.ICategoryTemplateService, Nop.Services.Catalog.IManufacturerTemplateService, Nop.Services.Catalog.IProductAttributeService, Nop.Services.Catalog.IProductAttributeParser, Nop.Core.IWorkContext, Nop.Core.IStoreContext, Nop.Services.Tax.ITaxService, Nop.Services.Directory.ICurrencyService, Nop.Services.Media.IPictureService, Nop.Services.Localization.ILocalizationService, Nop.Services.Catalog.IPriceCalculationService, Nop.Services.Catalog.IPriceFormatter, Nop.Core.IWebHelper, Nop.Services.Catalog.ISpecificationAttributeService, Nop.Services.Helpers.IDateTimeHelper, Nop.Services.Orders.IShoppingCartService, Nop.Services.Catalog.IRecentlyViewedProductsService, Nop.Services.Catalog.ICompareProductsService, Nop.Services.Messages.IWorkflowMessageService, Nop.Services.Catalog.IProductTagService, Nop.Services.Orders.IOrderReportService, Nop.Services.Common.IGenericAttributeService, Nop.Services.Catalog.IBackInStockSubscriptionService, Nop.Services.Security.IAclService, Nop.Services.Stores.IStoreMappingService, Nop.Services.Security.IPermissionService, Nop.Services.Media.IDownloadService, Nop.Services.Logging.ICustomerActivityService, Nop.Services.Events.IEventPublisher, Nop.Core.Domain.Common.CommonSettings, Nop.Core.Domain.Media.MediaSettings, Nop.Core.Domain.Catalog.CatalogSettings, Nop.Core.Domain.Orders.ShoppingCartSettings, Nop.Core.Domain.Localization.LocalizationSettings, Nop.Core.Domain.Customers.CustomerSettings, Nop.Web.Framework.UI.Captcha.CaptchaSettings, Nop.Core.Caching.ICacheManager, Nop.Core.Data.IDataProvider, SevenSpikes.Nop.Services.Catalog.IProductService7Spikes, SevenSpikes.Nop.AjaxFilters.Services.IProductServiceNopAjaxFilters, SevenSpikes.Nop.Services.Catalog.IDiscountService7Spikes, SevenSpikes.Nop.AjaxFilters.Services.IPriceCalculationServiceNopAjaxFilters, SevenSpikes.Nop.AjaxFilters.Helpers.IFiltersPageHelper, SevenSpikes.Nop.AjaxFilters.Domain.NopAjaxFiltersSettings, Nop.Core.Domain.Tax.TaxSettings, Nop.Core.Caching.ICacheManager, SevenSpikes.Nop.AjaxFilters.QueryStringManipulation.IQueryStringBuilder, SevenSpikes.Nop.AjaxFilters.QueryStringManipulation.IQueryStringToModelUpdater)' on type 'Catalog7SpikesController'.
Boyko
10 years ago
#4065 Quote
Avatar
  • 1570
t.ent wrote:
We just installed the Ajax filter plugin.  It is displaying on the category page but when we click an option we get the following error below.  We have made some changes to the Category.cshtml page and other pages.  Maybe we have removed a field that is needed?  Can you tell us what section needs to be present when an option is clicked.

An exception was thrown while invoking the constructor 'Void .ctor(Nop.Services.Catalog.ICategoryService, Nop.Services.Catalog.IManufacturerService ...


Hi t.ent,

You have probably modified the constructor of the Catalog controller. Please use properties instead of parameters in the constructor of the Catalog controller as described in this post.

Best Regards,
Nop-Templates.com Support Team
Regards,
Nop-Templates.com Team