The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

Plugin uninstall then install problem in nopCommerce 4.20

Posted: July 05, 2019 at 12:28 AM Quote #242170
I tried to install motion theme and other plugins related to that theme. But after installing those plugins nopCommerce asked to reboot the application .. so I did that.. During rebooting after few minutes it shows error... unable to start application. This problem I am getting in both local machine and hosted server. I noticed in my plugins.json file it is adding some extra data like: pluginToUninstall[....]... pluginToDelete[....] (Approximately). nopCommerce team help me out with this problem....
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 05, 2019 at 12:57 AM Quote #242176
can you please share your error log so we know where is the problem?
or please share some detail about this error
This post/answer is useful
2
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Pls up-vote the answer, if it helps you!

Thank's,
Sangeet Shah
====================================================
NopAdvance - nopCommerce Solution Partner
Website: https://nopadvance.com
Posted: July 05, 2019 at 1:39 AM Quote #242177
Again I tried to uninstall one plugin. Then I restarted the application. During reboot visual studio stopped. Now my plugins.json looks like this :
{
  "InstalledPluginNames": [
    "DiscountRequirement.MustBeAssignedToCustomerRole",
    "CurrencyExchange.ECB",
    "Misc.SendinBlue",
    "Payments.CheckMoneyOrder",
    "Payments.Manual",
    "Payments.PayPalStandard",
    "Payments.Qualpay",
    "Payments.Square",
    "Pickup.PickupInStore",
    "Shipping.FixedByWeightByTotal",
    "Shipping.UPS",
    "Tax.Avalara",
    "Tax.FixedOrByCountryStateZip",
    "Widgets.GoogleAnalytics",
    "Widgets.NivoSlider",
    "ExternalAuth.Facebook",
    "Misc.SolrOverride",
    "SevenSpikes.Core",
    "SevenSpikes.Nop.Plugins.AjaxFilters",
    "SevenSpikes.Nop.Plugins.AnywhereSliders",
    "SevenSpikes.Nop.Plugins.CloudZoom",
    "SevenSpikes.Nop.Plugins.FacebookShop",
    "SevenSpikes.Nop.Plugins.InstantSearch",
    "SevenSpikes.Nop.Plugins.JCarousel",
    "SevenSpikes.Nop.Plugins.MegaMenu",
    "SevenSpikes.Nop.Plugins.NopQuickTabs",
    "SevenSpikes.Nop.Plugins.ProductRibbons",
    "SevenSpikes.Nop.Plugins.QuickView",
    "SevenSpikes.Theme.Motion"
  ],
  "PluginNamesToUninstall": [
    "SevenSpikes.Nop.Plugins.CloudZoom"
  ],
  "PluginNamesToDelete": [],
  "PluginNamesToInstall": []
}



These lines added : ,
  "PluginNamesToUninstall": [
    "SevenSpikes.Nop.Plugins.CloudZoom"
  ],
  "PluginNamesToDelete": [],
  "PluginNamesToInstall": []


Now in Admin --> Local plugins... It looks like that plugin did not uninstall.
Again it is showing uninstall option for that plugin
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 05, 2019 at 2:02 AM Quote #242181
Now I tried to install that plugin. And I got this Error in



An error occurred while starting the application.
NullReferenceException: Object reference not set to an instance of an object.

Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions.AuthenticateAsync(HttpContext context, string scheme)

    NullReferenceException: Object reference not set to an instance of an object.
        Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions.AuthenticateAsync(HttpContext context, string scheme)
        Nop.Services.Authentication.CookieAuthenticationService.GetAuthenticatedCustomer() in CookieAuthenticationService.cs

                var authenticateResult = _httpContextAccessor.HttpContext.AuthenticateAsync(NopAuthenticationDefaults.AuthenticationScheme).Result;

Nop.Web.Framework.WebWorkContext.get_CurrentCustomer() in WebWorkContext.cs

                        customer = _authenticationService.GetAuthenticatedCustomer();

Nop.Web.Framework.WebWorkContext.get_WorkingLanguage() in WebWorkContext.cs

                    var customerLanguageId = _genericAttributeService.GetAttribute<int>(CurrentCustomer,

Nop.Services.Localization.LocalizationService.GetResource(string resourceKey) in LocalizationService.cs

                if (_workContext.WorkingLanguage != null)

Nop.Services.Plugins.PluginService.InstallPlugins() in PluginService.cs

                        var message = string.Format(localizationService.GetResource("Admin.Plugins.Errors.NotInstalled"), descriptor.SystemName);

Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfiguration configuration, IHostingEnvironment hostingEnvironment) in ServiceCollectionExtensions.cs

                engine.Resolve<IPluginService>().InstallPlugins();

Nop.Web.Startup.ConfigureServices(IServiceCollection services) in Startup.cs

                    return services.ConfigureApplicationServices(_configuration, _hostingEnvironment);
    Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
    Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
    Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
    Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()


.NET Core 4.6.27110.04 X64 v4.0.0.0    |   Microsoft.AspNetCore.Hosting version 2.2.0-rtm-35687    |    Microsoft Windows 10.0.17134    |   Need help?



And my plugins.json looks like this :

{
  "InstalledPluginNames": [
    "DiscountRequirement.MustBeAssignedToCustomerRole",
    "CurrencyExchange.ECB",
    "Misc.SendinBlue",
    "Payments.CheckMoneyOrder",
    "Payments.Manual",
    "Payments.PayPalStandard",
    "Payments.Qualpay",
    "Payments.Square",
    "Pickup.PickupInStore",
    "Shipping.FixedByWeightByTotal",
    "Shipping.UPS",
    "Tax.Avalara",
    "Tax.FixedOrByCountryStateZip",
    "Widgets.GoogleAnalytics",
    "Widgets.NivoSlider",
    "ExternalAuth.Facebook",
    "Misc.SolrOverride",
    "SevenSpikes.Core",
    "SevenSpikes.Nop.Plugins.AjaxFilters",
    "SevenSpikes.Nop.Plugins.AnywhereSliders",
    "SevenSpikes.Nop.Plugins.FacebookShop",
    "SevenSpikes.Nop.Plugins.InstantSearch",
    "SevenSpikes.Nop.Plugins.JCarousel",
    "SevenSpikes.Nop.Plugins.MegaMenu",
    "SevenSpikes.Nop.Plugins.NopQuickTabs",
    "SevenSpikes.Nop.Plugins.ProductRibbons",
    "SevenSpikes.Nop.Plugins.QuickView",
    "SevenSpikes.Theme.Motion"
  ],
  "PluginNamesToUninstall": [],
  "PluginNamesToDelete": [],
  "PluginNamesToInstall": [
    {
      "Item1": "SevenSpikes.Nop.Plugins.CloudZoom",
      "Item2": "ced45d4c-72cb-4c4f-9d3d-80081d404d60"
    }
  ]
}
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 11, 2019 at 4:10 PM Quote #242439
Did you manage to resolve this issue? I am getting the same issue in production
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 11, 2019 at 9:49 PM Quote #242449
You need to remove the plugin by removing the Error Plugin in the file: ,
  "PluginNamesToUninstall": [
  ],
  "PluginNamesToDelete": [],
  "PluginNamesToInstall": []

Then you need to restart the application for the removal to complete. I also met the same problem as you.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Plugin Dynamic Form for nopCommerce (Plugin Contact Form Nopcommerce): http://nopplugin.com/dynamic-form-nopcommerce

Nopcommerce Amp Plugin: http://nopplugin.com/google-accelerated-mobile-for-nopcommerce

Nopcommerce Multi Tenant: http://nopplugin.com/nopcommerce-multi-tenant-download
Posted: 18 hours ago Quote #247699
Any solution? I have the same problem.. the solution is not the removal of plugin: plugin is mandatory for our site.

Thanks
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Massimo (Italy)

Nop Commerce 2.0 --> 3.90
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2019
Learn more