Find bugs in nopCommerce 4.10 BETA and earn $10

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
I am getting following error while editing and trying to create a new product.

It was the error because I left empty "Ignored product type IDs (advanced)" while adding new product template.

An unhandled exception occurred while processing the request.
NotSupportedException: GenericListTypeConverter`1 cannot convert from (null).

Nop.Web.Framework.Infrastructure.Extensions.ApplicationBuilderExtensions+<>c.<UseNopExceptionHandler>b__1_1(HttpContext context) in ApplicationBuilderExtensions.cs, line 83

    Stack Query Cookies Headers

    NotSupportedException: GenericListTypeConverter`1 cannot convert from (null).
        Nop.Web.Framework.Infrastructure.Extensions.ApplicationBuilderExtensions+<>c.<UseNopExceptionHandler>b__1_1(HttpContext context) in ApplicationBuilderExtensions.cs

                                throw exception;
    Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
    Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)


System.NotSupportedException: GenericListTypeConverter`1 cannot convert from (null).

   at Nop.Web.Framework.Infrastructure.Extensions.ApplicationBuilderExtensions.<>c.<UseNopExceptionHandler>b__1_1(HttpContext context) in Presentation\Nop.Web.Framework\Infrastructure\Extensions\ApplicationBuilderExtensions.cs:line 83

   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
5 years ago
Steps to Reproduce:
1. Create a new blog with only title and body
2. Save and continue edit / create another new blog


Exceptions:
NullReferenceException: Object reference not set to an instance of an object.
Nop.Services.Blogs.BlogService.ParseTags(BlogPost blogPost) in BlogService.cs
+
            var tags = blogPost.Tags.Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries)
Nop.Services.Blogs.BlogService.GetAllBlogPostTags(int storeId, int languageId, bool showHidden) in BlogService.cs
+
                var tags = this.ParseTags(blogPost);
AspNetCore.Areas_Admin_Views_Blog__CreateOrUpdate_Info.ExecuteAsync() in _CreateOrUpdate.Info.cshtml
+
        var blogTags = blogService.GetAllBlogPostTags(0, 0, true);
5 years ago
mysoftus22 wrote:
I am getting following error while editing and trying to create a new product

Thanks! We'll check it - https://github.com/nopSolutions/nopCommerce/issues/3190
5 years ago
DennisC wrote:
Steps to Reproduce:
1. Create a new blog with only title and body
2. Save and continue edit / create another new blog

You're absolutely right. We'll fix it soon - https://github.com/nopSolutions/nopCommerce/issues/3191
5 years ago
Fixed. Please see this commit for more details

mysoftus22 wrote:
I am getting following error while editing and trying to create a new product.

It was the error because I left empty "Ignored product type IDs (advanced)" while adding new product template.

An unhandled exception occurred while processing the request.
NotSupportedException: GenericListTypeConverter`1 cannot convert from (null).

Nop.Web.Framework.Infrastructure.Extensions.ApplicationBuilderExtensions+<>c.<UseNopExceptionHandler>b__1_1(HttpContext context) in ApplicationBuilderExtensions.cs, line 83

    Stack Query Cookies Headers

    NotSupportedException: GenericListTypeConverter`1 cannot convert from (null).
        Nop.Web.Framework.Infrastructure.Extensions.ApplicationBuilderExtensions+<>c.<UseNopExceptionHandler>b__1_1(HttpContext context) in ApplicationBuilderExtensions.cs

                                throw exception;
    Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
    Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
    Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)


System.NotSupportedException: GenericListTypeConverter`1 cannot convert from (null).

   at Nop.Web.Framework.Infrastructure.Extensions.ApplicationBuilderExtensions.<>c.<UseNopExceptionHandler>b__1_1(HttpContext context) in Presentation\Nop.Web.Framework\Infrastructure\Extensions\ApplicationBuilderExtensions.cs:line 83

   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
5 years ago
a.m. wrote:
web -> catalog -> serach.cshtml -> widgetZone = "productsearch_page_basic"
                            widgetZone = "productsearch_page_advanced"
Both of them exist at \Nop.Web\Views\Catalog\Search.cshtml

admin -> VendorAttribute all createandupdate pages
What exactly widget zones are missing? For example, check \Nop.Web\Areas\Admin\Views\Vendor\Edit.cshtml


sorry for the late reply
missing from the PublicWidgetZones class
5 years ago
Done. Please see this commit https://github.com/nopSolutions/nopCommerce/commit/b67e511eb814a72bd82db5dbcf77a82864403d26

hezyz wrote:
web -> catalog -> serach.cshtml -> widgetZone = "productsearch_page_basic"
                            widgetZone = "productsearch_page_advanced"
Both of them exist at \Nop.Web\Views\Catalog\Search.cshtml

admin -> VendorAttribute all createandupdate pages
What exactly widget zones are missing? For example, check \Nop.Web\Areas\Admin\Views\Vendor\Edit.cshtml

sorry for the late reply
missing from the PublicWidgetZones class
5 years ago
atluz wrote:
Hi,

Found another bug. Plugin list lands in exception if no internet access.

Steps to Reproduce:
1. Switch off internet access.
2. Go to Plugin list in admin area.

Actual Result:
Unhandled exception and plugin list is not displayed

Reason:
Exception not handled in 'All plugin and themes'

Solution:
Add exception handling in '.\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs'

Hope this helps.

Best Regards,
Atluz Nop Team



Done. Please see this commit for more details.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.