Sale Of The Day

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 year ago
Hello, I have installed the Nop Sale Of The Day plugin on my site and I want to use it. I created a sample template in Nop Templates ->Plugins->Sale Of The Day -> Manage Offers. When I add Widget Zones on the edit page (usually in zones that start with main_ or home_) I get "We're sorry, an internal error occurred.

Our supporting staff has been notified of this error and will address the issue shortly.

We apologize for the inconvenience.

Please try clicking your browsers 'back' button or try reloading the home page.

If you continue to receive this message, please try again in a little while.

Thank you for your patience." I'm getting this error.
Can you help me what is the reason for this?
My Nopcommerce version is 4.50.
Thanks already for your help.
1 year ago
HI
can you please share the error log
it can be checked on this path

admin >system> log
whatever log it raised is just shared here so we can look into this

and additionally, as this is 3rd party plugin, so please create a ticket into  op Templates  and I am sure they will provide you support ,if their plugin related issue is there

Thanks
Ilyas Patel
1 year ago
Hi ilyas_patel, thank you for your reply. I usually get the following errors in the log.
Resource string (admin.common.alert.nothingselected) is not found. Language ID = 3
Resource string (admin.help.documentation) is not found. Language ID = 3
Resource string (admin.help.solutionpartners) is not found. Language ID = 3
I am sharing the details of my main problem. Thanks again for your help.

 Günlük seviyesi
Hata
Kısa mesaj
Method not found: 'System.Threading.Tasks.Task`1<Nop.Core.Domain.Catalog.TierPrice> Nop.Services.Catalog.IProductService.GetPreferredTierPriceAsync(Nop.Core.Domain.Catalog.Product, Nop.Core.Domain.Customers.Customer, Int32, Int32)'.
Tam mesaj
System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<Nop.Core.Domain.Catalog.TierPrice> Nop.Services.Catalog.IProductService.GetPreferredTierPriceAsync(Nop.Core.Domain.Catalog.Product, Nop.Core.Domain.Customers.Customer, Int32, Int32)'.
   at SevenSpikes.Nop.Plugins.SaleOfTheDay.Components.SaleOfTheDayComponent.PrepareProductSpecialPriceEndDateAsync(IEnumerable`1 products, ProductOverviewModelWithThumbs productOverviewModelWithThumbs)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at SevenSpikes.Nop.Plugins.SaleOfTheDay.Components.SaleOfTheDayComponent.PrepareProductSpecialPriceEndDateAsync(IEnumerable`1 products, ProductOverviewModelWithThumbs productOverviewModelWithThumbs)
   at SevenSpikes.Nop.Plugins.SaleOfTheDay.Components.SaleOfTheDayComponent.GetDefaultPublicModelsAsync(Customer customer, Int32 productId, Int32 categoryId, Int32 manufacturerId, String widgetZone)
   at SevenSpikes.Nop.Plugins.SaleOfTheDay.Components.SaleOfTheDayComponent.PreparePublicModelAsync(String widgetZone)
   at SevenSpikes.Nop.Plugins.SaleOfTheDay.Components.SaleOfTheDayComponent.InvokeAsync(String widgetZone)
   at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context)
   at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context)
   at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context)
   at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, Object arguments)
   at AspNetCore._Views_Shared_Components_Widget_Default.ExecuteAsync() in /home/site/wwwroot/Views/Shared/Components/Widget/Default.cshtml:line 4
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
   at Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult.ExecuteAsync(ViewComponentContext context)
   at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context)
   at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, Object arguments)
   at AspNetCore._Views_Shared__ColumnsOne.ExecuteAsync() in /home/site/wwwroot/Views/Shared/_ColumnsOne.cshtml:line 8
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderLayoutAsync(ViewContext context, ViewBufferTextWriter bodyWriter)
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable`1 statusCode)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
   at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeResultAsync>g__Logged|22_0(ResourceInvoker invoker, IActionResult result)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeResultFilters>g__Awaited|28_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Nop.Services.Authentication.AuthenticationMiddleware.InvokeAsync(HttpContext context) in C:\Yazılım\NopCommerce450Guncel\src\Libraries\Nop.Services\Authentication\AuthenticationMiddleware.cs:line 94
   at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 121
   at WebMarkupMin.AspNetCore6.WebMarkupMinMiddleware.ProcessAsync(HttpContext context, Boolean useMinification, Boolean useCompression)
   at WebMarkupMin.AspNetCore6.WebMarkupMinMiddleware.ProcessAsync(HttpContext context, Boolean useMinification, Boolean useCompression)
   at WebMarkupMin.AspNetCore6.WebMarkupMinMiddlewareBase.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Nop.Services.Installation.InstallUrlMiddleware.InvokeAsync(HttpContext context, IWebHelper webHelper) in C:\Yazılım\NopCommerce450Guncel\src\Libraries\Nop.Services\Installation\InstallUrlMiddleware.cs:line 52
   at Nop.Services.Common.KeepAliveMiddleware.InvokeAsync(HttpContext context, IWebHelper webHelper) in C:\Yazılım\NopCommerce450Guncel\src\Libraries\Nop.Services\Common\KeepAliveMiddleware.cs:line 49
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
1 year ago
[quote=Gulsen]I usually get the following errors in the log.
Resource string (admin.common.alert.nothingselected) is not found. Language ID = 3
Resource string (admin.help.documentation) is not found. Language ID = 3
Resource string (admin.help.solutionpartners) is not found. Language ID = 3
You can define these resources for your language Id = 3 in Configuration > Language

For the main error check you have the Sale of the day product defined correctly
- Does that product use tier prices - if so try a product that does not have tier prices
And if needed log a support request with Nop-Templates
1 year ago
Thank you for your help Yidna, this helped me find the error
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.