Server error - url without www prefix
Posted: Fri Dec 02, 2016 6:53 am
We are getting a server error (see below) on our store now and then causing us to lose sales. It can also happen when accessing admin. It tends to happen most often when we access the site without the www prefix.
In our developer's opinion the exception stack track indicates that the AbleCommerce back-end code fails to properly check a null object in certain situations. Most likely when a user basket is transferred or when a user gets redirected from the domain with the www prefix to a domain without the prefix.
According to our developer this problem needs to be fixed at AbleCommerce's end. These needs to be a simple check that would make sure that when 'userName' parameter to LoadForUserName function is null, it does not try to access the null string. Our developer is Abdullah from Plugables (http://www.plugables.com).
Here are the exception details we keep getting time and again...
==========================
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.]
CommerceBuilder.Users.UserRepository.LoadForUserName(String userName,
Boolean createMissing) +38
CommerceBuilder.Users.UserDataSource.LoadForUserName(String userName,
Boolean createMissing) +35
CommerceBuilder.Services.Membership.WebUserLocator.Locate() +898
CommerceBuilder.Common.AbleContext.get_User() +50
CommerceBuilder.Services.PageTracker.Track(HttpApplication application,
HttpContext context) +1244
CommerceBuilder.Services.HttpModule.a(Object A_0, EventArgs A_1) +1110
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+141
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +69
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.6.1590.0
==========================
In our developer's opinion the exception stack track indicates that the AbleCommerce back-end code fails to properly check a null object in certain situations. Most likely when a user basket is transferred or when a user gets redirected from the domain with the www prefix to a domain without the prefix.
According to our developer this problem needs to be fixed at AbleCommerce's end. These needs to be a simple check that would make sure that when 'userName' parameter to LoadForUserName function is null, it does not try to access the null string. Our developer is Abdullah from Plugables (http://www.plugables.com).
Here are the exception details we keep getting time and again...
==========================
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.]
CommerceBuilder.Users.UserRepository.LoadForUserName(String userName,
Boolean createMissing) +38
CommerceBuilder.Users.UserDataSource.LoadForUserName(String userName,
Boolean createMissing) +35
CommerceBuilder.Services.Membership.WebUserLocator.Locate() +898
CommerceBuilder.Common.AbleContext.get_User() +50
CommerceBuilder.Services.PageTracker.Track(HttpApplication application,
HttpContext context) +1244
CommerceBuilder.Services.HttpModule.a(Object A_0, EventArgs A_1) +1110
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+141
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +69
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.6.1590.0
==========================