Monday, April 6, 2026 1:05:59 AM

CDN Plugin error

11 years ago
#89 Quote
Hi Krunal,

I am having issue with CDN plugin. It is working fine however, I have another plugin which sends our customer reminders for abandon carts. In that email we are including product with pictures which they have in thier cart. This is where CDN plugin fails and give following 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



I have raised this issue first with Nop Template guys for thier Customer Reminder plugin. See the thread here, there are others who are facing same issues as well.


http://www.nop-templates.com/boards/topic/2200/cdn-error


They believe that it is issue in CDN plugin for Picture Services implementation. see below


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.


Can you please resolve this issue at your earliest please? till then I will have to disable it. Once disabled there isn't any issue.

regards,
Viren.
0
11 years ago
#90 Quote
Hello Viren,

This bug is already resolved. Can you please update the CDN plugin?

Regards,
Ankita
0
11 years ago
#102 Quote
Hi, I'm getting below error when i click on categories.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 513:                    {
Line 514:                        var picture = _pictureService.GetPictureById(x.PictureId);
Line 515:                        var pictureModel = new PictureModel()
Line 516:                        {
Line 517:                            FullSizeImageUrl = _pictureService.GetPictureUrl(picture),

Source File: c:\Yashica\nopcommerce_3.4\nopCommerce_3.40\Presentation\Nop.Web\Controllers\CatalogController.cs    Line: 515

0