Error on opening product page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 年 前
v2.3 without modifications, hosted on Arvixe

Hi,

After upgrading to 2.3 I have error on opening product page:

Object reference not set to an instance of an object.  

System.NullReferenceException: Object reference not set to an instance of an object. at Nop.Services.Tax.TaxService.GetTaxRate(ProductVariant productVariant, Int32 taxCategoryId, Customer customer) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Services\Tax\TaxService.cs:line 243 at Nop.Services.Tax.TaxService.GetProductPrice(ProductVariant productVariant, Int32 taxCategoryId, Decimal price, Boolean includingTax, Customer customer, Boolean priceIncludesTax, Decimal& taxRate) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Services\Tax\TaxService.cs:line 323 at Nop.Services.Tax.TaxService.GetProductPrice(ProductVariant productVariant, Decimal price, Boolean includingTax, Customer customer, Decimal& taxRate) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Services\Tax\TaxService.cs:line 304 at Nop.Services.Tax.TaxService.GetProductPrice(ProductVariant productVariant, Decimal price, Customer customer, Decimal& taxRate) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Services\Tax\TaxService.cs:line 287 at Nop.Services.Tax.TaxService.GetProductPrice(ProductVariant productVariant, Decimal price, Decimal& taxRate) in f:\Own\NopCommerce\Sources\src\Libraries\Nop.Services\Tax\TaxService.cs:line 263 at Nop.Web.Controllers.CatalogController.PrepareProductVariantModel(ProductVariantModel model, ProductVariant productVariant) in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web\Controllers\CatalogController.cs:line 546 at Nop.Web.Controllers.CatalogController.PrepareProductDetailsPageModel(Product product) in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web\Controllers\CatalogController.cs:line 442 at Nop.Web.Controllers.CatalogController.Product(Int32 productId) in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web\Controllers\CatalogController.cs:line 1172 at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at ....

Please help!
12 年 前
https://www.nopcommerce.com/boards/t/10664/nop-2-fresh-install-object-reference-not-set-to-an-instance-of-an-object.aspx
12 年 前
a.m. wrote:

Hi Andrei,

I rod this topic already and these recommendations are exectuted.
All plugins in Admin area have status Installed = false. I install plugin as I need but when I try install "ShippingByWeight" plagin then it report me "There is already an object named  "ShippingByWeight" in database.
12 年 前
According to our upgrade instructions you should copy previous InstalledPlugins.txt file (created by the previous version) into App_Data directory. Seems that you forgot to do it. This action also doesn't require you to re-install plugins.

P.S. Just delete [ShippingByWeight] from the database
12 年 前
a.m. wrote:
According to our upgrade instructions you should copy previous InstalledPlugins.txt file (created by the previous version) into App_Data directory. Seems that you forgot to do it. This action also doesn't require you to re-install plugins.

P.S. Just delete [ShippingByWeight] from the database


Yes, I copied it all during upgrading as instructed and compare file lists - it's equal. But all plugins in admin plugin list had status "uninstalled". I'm install it one by one but installation of plugins which installed in previous version cause error as above. Upgrade script against database during upgrading executed without any error.
I suppose records about installed plugins from DB2.2 not been correctly "reinserted"?
12 年 前
maxkomarov wrote:
I suppose records about installed plugins from DB2.2 not been correctly "reinserted"?

They are stored into InstalledPlugins.txt file. That's why this file should be copied from the previous version
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.