Have copied my uCommerce installation to a staging site (same server) to do some work on it, but uCommerce no longer works (Xslt errors for every xslt that uses uCommerce)
this is the error in the logs
Object reference not set to an instance of an object. Int32 CurrentMemberId() at umbraco.cms.businesslogic.member.Member.CurrentMemberId() at UCommerce.Marketing.TargetingContextAggregators.MemberPopulator.Populate(TargetingContext targetingContext) at UCommerce.Marketing.TargetingContextAggregators.TargetingContextAggregator.Populate() at UCommerce.Marketing.MarketingService.GetTargetedCampaignItems() at UCommerce.Xslt.MarketingLibrary.GetTargetedCampaignItems() at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
any idea what I need to do to get uCommerce back in action? have checked all the usual hostname gotchas.
@Jivan Yep copied that database as well. So turning basic authentication off and re-enabling annonymous authentication in IIS fixed the problem. Thanks @Nikolaj! I never would have thought to check that this could be the source of the problem.
If your site doesn't use the member target for it's marketing campaigns you can disable it ( can't remember what config) and keep the basic authentication running:)
uCommerce Staging site error
Have copied my uCommerce installation to a staging site (same server) to do some work on it, but uCommerce no longer works (Xslt errors for every xslt that uses uCommerce)
this is the error in the logs
Object reference not set to an instance of an object. Int32 CurrentMemberId() at umbraco.cms.businesslogic.member.Member.CurrentMemberId() at UCommerce.Marketing.TargetingContextAggregators.MemberPopulator.Populate(TargetingContext targetingContext) at UCommerce.Marketing.TargetingContextAggregators.TargetingContextAggregator.Populate() at UCommerce.Marketing.MarketingService.GetTargetedCampaignItems() at UCommerce.Xslt.MarketingLibrary.GetTargetedCampaignItems() at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
any idea what I need to do to get uCommerce back in action?
have checked all the usual hostname gotchas.
- Tim
Do the staging site have some kind of login that the live site doesn't?
did you copy the database as well?
@Jivan Yep copied that database as well.
So turning basic authentication off and re-enabling annonymous authentication in IIS fixed the problem. Thanks @Nikolaj! I never would have thought to check that this could be the source of the problem.
- Tim
If your site doesn't use the member target for it's marketing campaigns you can disable it ( can't remember what config) and keep the basic authentication running:)
is working on a reply...