Find bugs in nopCommerce 4.50.0 BETA and earn $10

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 anni tempo fa
Hello. Im running 4.5 beta on a 14" Macbook pro m1 (the new one) and i too get an error on Admin/Setting/GeneralCommon.

Steps:
1. Downloaded 4.5 beta zip source
2. ran install with a azure db sql server
3. run with dotnet run after dotnet restore
4. navigate to https://localhost:5001/Admin/Setting/GeneralCommon

This seems to be related: https://github.com/mono/SkiaSharp/issues/1341

https://imgur.com/a/sZDn7iS

System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(liblibSkiaSharp, 0x0001): tried: 'liblibSkiaSharp' (no such file), '/usr/local/lib/liblibSkiaSharp' (no such file), '/usr/lib/liblibSkiaSharp' (no such file), '/Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Presentation/Nop.Web/liblibSkiaSharp' (no such file), '/usr/local/lib/liblibSkiaSharp' (no such file), '/usr/lib/liblibSkiaSharp' (no such file)
   at SkiaSharp.SkiaApi.sk_filestream_new(Void* path)
   at SkiaSharp.SKFileStream.CreateNew(String path)
   at SkiaSharp.SKFileStream..ctor(String path)
   at SkiaSharp.SKFileStream.OpenStream(String path)
   at SkiaSharp.SKCodec.Create(String filename, SKCodecResult& result)
   at SkiaSharp.SKCodec.Create(String filename)
   at SkiaSharp.SKBitmap.Decode(String filename)
   at Nop.Services.Media.PictureService.GetDefaultPictureUrlAsync(Int32 targetSize, PictureType defaultPictureType, String storeLocation) in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Libraries/Nop.Services/Media/PictureService.cs:line 507
   at Nop.Services.Media.PictureService.GetPictureUrlAsync(Picture picture, Int32 targetSize, Boolean showDefaultPicture, String storeLocation, PictureType defaultPictureType) in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Libraries/Nop.Services/Media/PictureService.cs:line 564
   at Nop.Services.Media.PictureService.GetPictureUrlAsync(Int32 pictureId, Int32 targetSize, Boolean showDefaultPicture, String storeLocation, PictureType defaultPictureType) in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Libraries/Nop.Services/Media/PictureService.cs:line 542
   at AspNetCore._Areas_Admin_Views_Shared_EditorTemplates_Picture.ExecuteAsync() in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Presentation/Nop.Web/Areas/Admin/Views/Shared/EditorTemplates/Picture.cshtml:line 27
   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.ViewFeatures.TemplateRenderer.Render()
   at Microsoft.AspNetCore.Mvc.ViewFeatures.TemplateBuilder.Build()
   at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.GenerateEditor(ModelExplorer modelExplorer, String htmlFieldName, String templateName, Object additionalViewData)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.Editor(String expression, String templateName, String htmlFieldName, Object additionalViewData)
   at Microsoft.AspNetCore.Mvc.Rendering.HtmlHelperEditorExtensions.Editor(IHtmlHelper htmlHelper, String expression, String templateName, Object additionalViewData)
   at Nop.Web.Framework.TagHelpers.Admin.NopEditorTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output) in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Presentation/Nop.Web.Framework/TagHelpers/Admin/NopEditorTagHelper.cs:line 148
   at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.RunAsync(TagHelperExecutionContext executionContext)
   at AspNetCore._Areas_Admin_Views_Setting__GeneralCommon_Common.ExecuteAsync() in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Presentation/Nop.Web/Areas/Admin/Views/Setting/_GeneralCommon.Common.cshtml:line 62
   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.ViewFeatures.HtmlHelper.RenderPartialCoreAsync(String partialViewName, Object model, ViewDataDictionary viewData, TextWriter writer)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.PartialAsync(String partialViewName, Object model, ViewDataDictionary viewData)
   at AspNetCore._Areas_Admin_Views_Setting_GeneralCommon.<>c__DisplayClass44_0.<<ExecuteAsync>b__5>d.MoveNext() in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Presentation/Nop.Web/Areas/Admin/Views/Setting/GeneralCommon.cshtml:line 76
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.GetChildContentAsync(Boolean useCachedResult, HtmlEncoder encoder)
   at Nop.Web.Framework.TagHelpers.Admin.NopCardTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output) in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Presentation/Nop.Web.Framework/TagHelpers/Admin/NopCardTagHelper.cs:line 166
   at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count)
   at AspNetCore._Areas_Admin_Views_Setting_GeneralCommon.<>c__DisplayClass44_0.<<ExecuteAsync>b__3>d.MoveNext() in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Presentation/Nop.Web/Areas/Admin/Views/Setting/GeneralCommon.cshtml:line 76
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync()
   at AspNetCore._Areas_Admin_Views_Setting_GeneralCommon.<>c__DisplayClass44_0.<<ExecuteAsync>b__0>d.MoveNext() in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Presentation/Nop.Web/Areas/Admin/Views/Setting/GeneralCommon.cshtml:line 73
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.GetChildContentAsync(Boolean useCachedResult, HtmlEncoder encoder)
   at Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)
   at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count)
   at AspNetCore._Areas_Admin_Views_Setting_GeneralCommon.ExecuteAsync() in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Presentation/Nop.Web/Areas/Admin/Views/Setting/GeneralCommon.cshtml:line 51
   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.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.<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()
--- End of stack trace from previous location ---
   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 StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 103
   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 /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Libraries/Nop.Services/Installation/InstallUrlMiddleware.cs:line 52
   at Nop.Services.Common.KeepAliveMiddleware.InvokeAsync(HttpContext context, IWebHelper webHelper) in /Users/sindremarkussen/Downloads/nopCommerce_4.50.0_beta_Source/src/Libraries/Nop.Services/Common/KeepAliveMiddleware.cs:line 49
   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)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
2 anni tempo fa
When i try to add below link. Im getting error.
<link asp-exclude-from-bundle rel="preconnect" href="https://fonts.googleapis.com" />


I have added something like below in ProcessAsync method of NopLinkTagHelper for a workaround.


            if (context.AllAttributes["rel"]?.Value?.ToString() == "preconnect")
            {
                return base.ProcessAsync(context, output);
            }


Full error discription is below.

System.IO.FileNotFoundException: No files found matching exist in an asset
   at WebOptimizer.Asset.ExpandGlobs(IAsset asset, IWebHostEnvironment env)
   at WebOptimizer.Asset.GenerateCacheKey(HttpContext context)
   at Nop.Web.Framework.TagHelpers.Shared.NopLinkTagHelper.ProcessSrcAttribute(TagHelperContext context, TagHelperOutput output) in C:\xxx\Presentation\Nop.Web.Framework\TagHelpers\Shared\NopLinkTagHelper.cs:line 90
   at Nop.Web.Framework.TagHelpers.Shared.NopLinkTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output) in C:\xxx\Presentation\Nop.Web.Framework\TagHelpers\Shared\NopLinkTagHelper.cs:line 146
   at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.RunAsync(TagHelperExecutionContext executionContext)
   at AspNetCore._Themes_CustomTheme_Views_Shared__Root_Head.<>c__DisplayClass28_0.<<ExecuteAsync>b__0>d.MoveNext() in C:\xxx\Presentation\Nop.Web\Themes\CustomTheme\Views\Shared\_Root.Head.cshtml:line 30
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync()
   at AspNetCore._Themes_CustomTheme_Views_Shared__Root_Head.ExecuteAsync() in C:\xxx\Presentation\Nop.Web\Themes\CustomTheme\Views\Shared\_Root.Head.cshtml:line 25
   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.<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.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatcher|8_0(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task`1 matcherTask)
   at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 103
   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:\xxx\Libraries\Nop.Services\Installation\InstallUrlMiddleware.cs:line 52
   at Nop.Services.Common.KeepAliveMiddleware.InvokeAsync(HttpContext context, IWebHelper webHelper) in C:\xxx\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)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.HandleException(HttpContext context, ExceptionDispatchInfo edi)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
2 anni tempo fa
matac wrote:
When i try to add below link. Im getting error.
<link asp-exclude-from-bundle rel="preconnect" href="https://fonts.googleapis.com" />



Hi!
You can disable a Tag Helper at the element level with the Tag Helper opt-out character ("!").

<!link rel="preconnect" href="https://fonts.googleapis.com" />
2 anni tempo fa
[email protected] wrote:
Hello, I find a bug in nopCommerce 4.50.0 BETA.
In this address: /Admin/Product/ProductAttributeMappingEdit/{id}
I tried to edit color attribute's price value.
I using Persian (فارسی) language. When you click on Edit button <Price adjustment> doesn't set on the box when it has negative value. Then I switched to the English and recognized it working correctly and it's for language issue.


Thank you! Done
2 anni tempo fa
Hi
i try to write a module to create a database table and i got this error ,please help me for resolved that error

TypeLoadException: Could not load type 'Nop.Data.Migrations.SkipMigrationOnUpdateAttribute' from assembly 'Nop.Data, Version=4.5.0.0, Culture=neutral, PublicKeyToken=null

my source code is:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentMigrator;
using Nop.Data.Migrations;

namespace Nop.Plugin.Widgets.SamplePlugin
{
    [SkipMigrationOnUpdate]
    [NopMigration("2021/11/23 19:30:17:6455422", "SamplePluginDB")]

    public class TableSchema : AutoReversingMigration
    {
        private readonly IMigrationManager _migrationManager;

        public TableSchema(IMigrationManager migrationManager)
        {
            _migrationManager = migrationManager;
        }

        public override void Up()
        {
            _migrationManager.BuildTable<UserTable>(Create);
        }
    }
}
2 anni tempo fa
n_aboutalebi wrote:
[SkipMigrationOnUpdate]

Is not used in v4.5
Have a look at 4.50.1_Source\Plugins\Nop.Plugin.Shipping.FixedByWeightByTotal\Migrations\SchemaMigration.cs
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.