Close

Bugs

cqueen44
3 years ago
#21273 Quote
Avatar
  • 1
I upgraded my store from 4.1 to 4.3, then added the Emporium theme which was an upgrade from Traction 4.1.

The SS_JC_JCarousel table did not have the ID column as a primary key, and it was not set with IsIdentity. So when I went to add a new JCarousel to my site, an error occured:

SqlException: Cannot insert the value NULL into column 'Id', table 'mydb.dbo.SS_JC_JCarousel'; column does not allow nulls. INSERT fails.


I was able to fix the problem by setting the ID column to primary key and IsIdentity.

I'm not sure where in your scripts this issue would need to be fixed. Figured I'd report it for anyone else experiencing the same issue.
azzam223
one year ago
#21872 Quote
Avatar
  • 1
MissingMethodException: Method not found: 'Void Nop.Web.Factories.CatalogModelFactory..ctor(Nop.Core.Domain.Blogs.BlogSettings, Nop.Core.Domain.Catalog.CatalogSettings, Nop.Core.Domain.Common.DisplayDefaultMenuItemSettings, Nop.Core.Domain.Forums.ForumSettings, Microsoft.AspNetCore.Mvc.Infrastructure.IActionContextAccessor, Nop.Services.Catalog.ICategoryService, Nop.Services.Catalog.ICategoryTemplateService, Nop.Services.Directory.ICurrencyService, Nop.Services.Customers.ICustomerService, Nop.Core.Events.IEventPublisher, Microsoft.AspNetCore.Http.IHttpContextAccessor, Nop.Services.Localization.ILocalizationService, Nop.Services.Catalog.IManufacturerService, Nop.Services.Catalog.IManufacturerTemplateService, Nop.Services.Media.IPictureService, Nop.Services.Catalog.IPriceFormatter, Nop.Web.Factories.IProductModelFactory, Nop.Services.Catalog.IProductService, Nop.Services.Catalog.IProductTagService, Nop.Services.Common.ISearchTermService, Nop.Services.Catalog.ISpecificationAttributeService, Nop.Core.Caching.IStaticCacheManager, Nop.Core.IStoreContext, Nop.Services.Topics.ITopicService, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory, Nop.Services.Seo.IUrlRecordService, Nop.Services.Vendors.IVendorService, Nop.Core.IWebHelper, Nop.Core.IWorkContext, Nop.Core.Domain.Media.MediaSettings, Nop.Core.Domain.Vendors.VendorSettings)'.
SevenSpikes.Nop.Framework.Factories.CatalogModelFactory7Spikes..ctor(BlogSettings blogSettings, CatalogSettings catalogSettings, DisplayDefaultMenuItemSettings displayDefaultMenuItemSettings, ForumSettings forumSettings, IActionContextAccessor actionContextAccessor, ICategoryService categoryService, ICategoryTemplateService categoryTemplateService, ICurrencyService currencyService, ICustomerService customerService, IEventPublisher eventPublisher, IHttpContextAccessor httpContextAccessor, ILocalizationService localizationService, IManufacturerService manufacturerService, IManufacturerTemplateService manufacturerTemplateService, IPictureService pictureService, IPriceFormatter priceFormatter, IProductModelFactory productModelFactory, IProductService productService, IProductTagService productTagService, ISearchTermService searchTermService, ISpecificationAttributeService specificationAttributeService, IStaticCacheManager staticCacheManager, IStoreContext storeContext, ITopicService topicService, IUrlHelperFactory urlHelperFactory, IUrlRecordService urlRecordService, IVendorService vendorService, IWebHelper webHelper, IWorkContext workContext, MediaSettings mediaSettings, VendorSettings vendorSettings, ISettingService settingService)

DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Nop.Core.Domain.Blogs.BlogSettings, Nop.Core.Domain.Catalog.CatalogSettings, Nop.Core.Domain.Common.DisplayDefaultMenuItemSettings, Nop.Core.Domain.Forums.ForumSettings, Microsoft.AspNetCore.Mvc.Infrastructure.IActionContextAccessor, Nop.Services.Catalog.ICategoryService, Nop.Services.Catalog.ICategoryTemplateService, Nop.Services.Directory.ICurrencyService, Nop.Services.Customers.ICustomerService, Nop.Core.Events.IEventPublisher, Microsoft.AspNetCore.Http.IHttpContextAccessor, Nop.Services.Localization.ILocalizationService, Nop.Services.Catalog.IManufacturerService, Nop.Services.Catalog.IManufacturerTemplateService, Nop.Services.Media.IPictureService, Nop.Services.Catalog.IPriceFormatter, Nop.Web.Factories.IProductModelFactory, Nop.Services.Catalog.IProductService, Nop.Services.Catalog.IProductTagService, Nop.Services.Common.ISearchTermService, Nop.Services.Catalog.ISpecificationAttributeService, Nop.Core.Caching.IStaticCacheManager, Nop.Core.IStoreContext, Nop.Services.Topics.ITopicService, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory, Nop.Services.Seo.IUrlRecordService, Nop.Services.Vendors.IVendorService, Nop.Core.IWebHelper, Nop.Core.IWorkContext, Nop.Core.Domain.Media.MediaSettings, Nop.Core.Domain.Vendors.VendorSettings, Nop.Services.Configuration.ISettingService)' on
Boyko
one year ago
#21873 Quote
Avatar
  • Moderator
  • 1570
azzam223 wrote:
MissingMethodException: Method not found: 'Void Nop.Web.Factories.CatalogModelFactory..ctor ...


Please do not modify the constructor but resolve any dependencies directly or use Property injection instead as described here.
Regards,
Nop-Templates.com Team