Close

CDN error

IvanSlater
10 years ago
#7764 Quote
Avatar
  • 89
Hi there.

I have started use NopAccelerate CDN plugin and it is configured and is working great. The point is, since I enabled it, the customer reminder plugin started to thrown this error:

System.NullReferenceException: Object reference not set to an instance of an object. at XcellenceIT.Plugin.CDN.Services.CDNPictureService.GetDomains() at XcellenceIT.Plugin.CDN.Services.CDNPictureService.GetPictureUrl(Picture picture, Int32 targetSize, Boolean showDefaultPicture, String storeLocation, PictureType defaultPictureType) at SevenSpikes.Nop.Plugins.CustomerReminders.Services.AbandonedShoppingCartReminderRule.GetShoppingCartProductsHtml(IList`1 shoppingCartItems, Language language, Boolean includePictures, Int32 storeId) at SevenSpikes.Nop.Plugins.CustomerReminders.Services.AbandonedShoppingCartReminderRule.(Customer , IList`1 , Int32 ) at SevenSpikes.Nop.Plugins.CustomerReminders.Services.AbandonedShoppingCartReminderRule.GetCustomerReminderInfos(TimeSpan conditionMetDateEarlierThan, TimeSpan conditionMetDateLaterThan, Int32 storeId) at SevenSpikes.Nop.Plugins.CustomerReminders.Services.RemindersProcessor.() at SevenSpikes.Nop.Plugins.CustomerReminders.Tasks.CustomerRemindersTask.Execute()



System.NullReferenceException: Object reference not set to an instance of an object. at XcellenceIT.Plugin.CDN.Services.CDNPictureService.GetDomains() at XcellenceIT.Plugin.CDN.Services.CDNPictureService.GetPictureUrl(Picture picture, Int32 targetSize, Boolean showDefaultPicture, String storeLocation, PictureType defaultPictureType) at SevenSpikes.Nop.Plugins.CustomerReminders.Services.AbandonedShoppingCartReminderRule.GetShoppingCartProductsHtml(IList`1 shoppingCartItems, Language language, Boolean includePictures, Int32 storeId) at SevenSpikes.Nop.Plugins.CustomerReminders.Services.AbandonedShoppingCartReminderRule.(Customer , IList`1 , Int32 ) at SevenSpikes.Nop.Plugins.CustomerReminders.Services.AbandonedShoppingCartReminderRule.GetCustomerReminderInfos(TimeSpan conditionMetDateEarlierThan, TimeSpan conditionMetDateLaterThan, Int32 storeId) at SevenSpikes.Nop.Plugins.CustomerReminders.Services.RemindersProcessor.() at SevenSpikes.Nop.Plugins.CustomerReminders.Tasks.CustomerRemindersTask.Execute() at Nop.Services.Tasks.Task.Execute(Boolean throwException) in \Libraries\Nop.Services\Tasks\Task.cs:line 83

Can you help?
Boyko
10 years ago
#7767 Quote
Avatar
  • 1570
IvanSlater wrote:
Hi there.

I have started use NopAccelerate CDN plugin and it is configured and is working great. The point is, since I enabled it, the customer reminder plugin started to thrown this error:

System.NullReferenceException: Object reference not set to an instance of an object. at XcellenceIT.Plugin.CDN.Services.CDNPictureService.GetDomains() at XcellenceIT.Plugin.CDN.Services.CDNPictureService.GetPictureUrl(Picture picture, Int32 targetSize, Boolean showDefaultPicture, String storeLocation, PictureType defaultPictureType)

...

Can you help?


Hi IvanSlater,

It looks like there is a problem in their implementation of the IPictureService- .CDNPictureService.
You should contact the plugin vendor and let them know that their implementation of the IPictureService throws an exception when used from a Scheduled Task (the customer reminders scheduled task), so that they can fix it or at least to default to the default nopCommerce PictureService implementation.

Thanks
Regards,
Nop-Templates.com Team