Close

Error when trying to browse site/facebook/store

JRon
6 years ago
#14287 Quote
Avatar
  • 67
Hi there
I am setting up the plugin but I am having some trouble, this is the code I get on my site log when trying to access mysite/facebook/store

I am using Nop 3.7

[code]   System.MissingMethodException: Method not found: 'System.Collections.Generic.IEnumerable`1<Nop.Web.Models.Catalog.ProductOverviewModel> Nop.Web.Extensions.ControllerExtensions.PrepareProductOverviewModels(System.Web.Mvc.Controller, Nop.Core.IWorkContext, Nop.Core.IStoreContext, Nop.Services.Catalog.ICategoryService, Nop.Services.Catalog.IProductService, Nop.Services.Catalog.ISpecificationAttributeService, Nop.Services.Catalog.IPriceCalculationService, Nop.Services.Catalog.IPriceFormatter, Nop.Services.Security.IPermissionService, Nop.Services.Localization.ILocalizationService, Nop.Services.Tax.ITaxService, Nop.Services.Directory.ICurrencyService, Nop.Services.Media.IPictureService, Nop.Core.IWebHelper, Nop.Core.Caching.ICacheManager, Nop.Core.Domain.Catalog.CatalogSettings, Nop.Core.Domain.Media.MediaSettings, System.Collections.Generic.IEnumerable`1<Nop.Core.Domain.Catalog.Product>, Boolean, Boolean, System.Nullable`1<Int32>, Boolean, Boolean)'. at SevenSpikes.Nop.Plugins.FacebookShop.Controllers.FacebookShopController.PrepareProductOverviewModels(IList`1 products) at SevenSpikes.Nop.Plugins.FacebookShop.Controllers.FacebookShopController.PrepareHomePageProducts(FacebookCatalogPagingFilteringModel command) at SevenSpikes.Nop.Plugins.FacebookShop.Controllers.FacebookShopController.Index(FacebookCatalogPagingFilteringModel command) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) 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.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.Call
anton_ivanov
6 years ago
#14293 Quote
Avatar
  • Moderator
  • 277
Hello,

Have you made any code customizations to the source code of nopCommerce? More specifically the signature of the PrepareProductOverviewModels in ~/Presentation/Nop.Web/Extensions/ControllerExtensions.cs file?

If yes, you will need to revert those changes. The Facebook Shop plugin uses that method in its code and changes to its signature will mean that the plugin's code will not be able to find the method and cause an exception.
Regards,
Anton Ivanov
Nop-Templates.com