Ive just upgraded teacommerce from 2.0.0 to 2.2.2. Ive solved most thing so far but I cant fix this: When trying to confirm my order and go to the payment I get an error. I think it has something to do with payment provider.
I also get an error when I click on a payment provider in teacomemrce umbraco backend (see pic below).
Looks like something with uComponents. Did you update it or maybe that version you installed doesn't work with your Umbraco verion or something like that.
Thanks for the reply Anders! Hmm, I didnt upgrade uComponents, but tried to do that now - unfortunately I still get the error. But why does uComponents affect this step in teacommerce checkout?
Try and install TC again. Might be because some files hasent been updated correctly. Try and take one thing at a time. If it worked in 2.0 it should also work in 2.2 if you correct so your site doesnt have the breaking changes implemented.
Just tried the starter kit with a TC 2.2.2 and it works perfectly. Do you have a custom provider buildt using another version of Tea Commerce or other custom code that you need to rebuild? Try and look at the App_Data/Logs and see if you can see an error when Umbraco starts about some "Autofac" - that might also be a problem with registering the services that Tea Commerce use and some service is a null reference.
When open \umbraco\plugins\tea-commerce\Views\PaymentMethods\EditPaymentMethod.aspx and search for "lvSettings" (as the top row in the stacktrace) I dont find anything. Is something missing in a .dll?
That is added from the server side code that is why you cant find it. But I think the null reference has something to do with Autofac. Try and look in the Logs folder and look for an autofac error.
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor()' on type 'PaymentProviderService'. ---> Method 'get_DataEditor' in type 'uComponents.DataTypes.CheckBoxTree.CheckBoxTreeDataType' from assembly 'uComponents.DataTypes, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. (See inner exception for details.) ---> System.TypeLoadException: Method 'get_DataEditor' in type 'uComponents.DataTypes.CheckBoxTree.CheckBoxTreeDataType' from assembly 'uComponents.DataTypes, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at TeaCommerce.Api.Common.AssemblyExtensions.GetTypesWithAttribute[T](Assembly assembly)
at TeaCommerce.Api.Web.PaymentProviders.PaymentProviderService..ctor()
at lambda_method(Closure , Object[] )
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
--- End of inner exception stack trace ---
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at TeaCommerce.Umbraco.Application.Views.PaymentMethods.EditPaymentMethod.LoadPaymentProviders()
at TeaCommerce.Umbraco.Application.Views.PaymentMethods.EditPaymentMethod.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Ahh - When Tea Commerce starts it will loop all assemblies and try and see if something should be wired up automatic. This triggers a dll from uComponents which looks like it has en error. Because of that the registration of Tea Commerce stops and this is why you get the error in the payment method view because no services is setup for Tea Commerce. So try and update uComponents to get a dll that works.
Maybe we should make a try/catch for this in a later version of Tea Commerce - BUT the reason not to do this is, if an error occure with a real registration of Tea Commerce - that error would be hidden away and things would fail silently
Method 'get_DataEditor' in type 'uComponents.DataTypes.CheckBoxTree.CheckBoxTreeDataType' from assembly 'uComponents.DataTypes, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
That is something in uComponents that isnt finished but still released which throws an exception - properly when Tea Commerce loop all the assemblies for auto hooking stuff
Error when confiming order (step-accept.cshtml)
Ive just upgraded teacommerce from 2.0.0 to 2.2.2. Ive solved most thing so far but I cant fix this: When trying to confirm my order and go to the payment I get an error. I think it has something to do with payment provider. I also get an error when I click on a payment provider in teacomemrce umbraco backend (see pic below).
Any ideas what could be wrong?
Thank you!
Hi Tobbe
Looks like something with uComponents. Did you update it or maybe that version you installed doesn't work with your Umbraco verion or something like that.
Kind regards
Anders
Thanks for the reply Anders! Hmm, I didnt upgrade uComponents, but tried to do that now - unfortunately I still get the error. But why does uComponents affect this step in teacommerce checkout?
Does uComponents use Autofac or something like that. Or does your doc type have a uComponents auto complete property?
nope, no doctypes was using ucomponents auto complete prop. Now Ive removed uComponents. But I now I get another error instead :(
This time I dont get any errors on the checkout page(last step before you go to payement provider), BUT the "go to payment"-button doesnt show at all
Looks like a payment provider was deleted that was selected for one of the payment methods.
Could it has to do with "BREAKING: Hashing methods renamed for payment providers."? if yes, how can I fix that?
thank you so much for your help!
Only if you have a custom payment provider. If you have that you need to update your dll references and recompile
no custom ones.
Now I tried to remove all paymentMethods, and then tried to add a new one. New error! :D
I also noticed that orderinformation doesnt display in view-customer-information.cshtml. It worked on 2.0.0 I dont know if it helps..
Try and install TC again. Might be because some files hasent been updated correctly. Try and take one thing at a time. If it worked in 2.0 it should also work in 2.2 if you correct so your site doesnt have the breaking changes implemented.
Thanks again, but it didnt work :( Its the same error as this post: http://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/39777-Starter-Kit-2-bug-Adding-settings-to-Payment-Provider
Maybe you remember if/how you solved it then?
But as stated it was fixed in 2.0.1
Hello Anders,
We still have a problem though.
We really need to get this going, and the client is waiting...
Any more ideas?
//Kalle
You also have this problem Kalle?
Tobias And I both belong to Toxic.
This is the error I get when clicking on a payment provider in tea commerce backend
this is the error we see now, when clicking a payment method in tea commerce backend
Still having this error, do you have any more ideas Andreas?
http://our.umbraco.org/media/upload/4408c700-b857-45eb-a878-cd5e0f527093/Sk%C3%A4rmk222lipp.JPG
We get this when creating new payment providers
And we get this when editing the one we already had.
Could it have anything to do with permissions?
Just tried the starter kit with a TC 2.2.2 and it works perfectly. Do you have a custom provider buildt using another version of Tea Commerce or other custom code that you need to rebuild? Try and look at the App_Data/Logs and see if you can see an error when Umbraco starts about some "Autofac" - that might also be a problem with registering the services that Tea Commerce use and some service is a null reference.
Kind regards
Anders
No, we do not have any custom providers.
We upgraded it from 2.0.0 to 2.2.2.
When open \umbraco\plugins\tea-commerce\Views\PaymentMethods\EditPaymentMethod.aspx and search for "lvSettings" (as the top row in the stacktrace) I dont find anything. Is something missing in a .dll?
That is added from the server side code that is why you cant find it. But I think the null reference has something to do with Autofac. Try and look in the Logs folder and look for an autofac error.
This is the only thing I could find containing Autofac
------------------------------------------------------------------------------------
2013-12-19 17:15:58,954 [11] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 35] An unhandled exception occurred
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor()' on type 'PaymentProviderService'. ---> Method 'get_DataEditor' in type 'uComponents.DataTypes.CheckBoxTree.CheckBoxTreeDataType' from assembly 'uComponents.DataTypes, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. (See inner exception for details.) ---> System.TypeLoadException: Method 'get_DataEditor' in type 'uComponents.DataTypes.CheckBoxTree.CheckBoxTreeDataType' from assembly 'uComponents.DataTypes, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at TeaCommerce.Api.Common.AssemblyExtensions.GetTypesWithAttribute[T](Assembly assembly)
at TeaCommerce.Api.Web.PaymentProviders.PaymentProviderService..ctor()
at lambda_method(Closure , Object[] )
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
--- End of inner exception stack trace ---
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at TeaCommerce.Umbraco.Application.Views.PaymentMethods.EditPaymentMethod.LoadPaymentProviders()
at TeaCommerce.Umbraco.Application.Views.PaymentMethods.EditPaymentMethod.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Ahh - When Tea Commerce starts it will loop all assemblies and try and see if something should be wired up automatic. This triggers a dll from uComponents which looks like it has en error. Because of that the registration of Tea Commerce stops and this is why you get the error in the payment method view because no services is setup for Tea Commerce. So try and update uComponents to get a dll that works.
Maybe we should make a try/catch for this in a later version of Tea Commerce - BUT the reason not to do this is, if an error occure with a real registration of Tea Commerce - that error would be hidden away and things would fail silently
Now I get
Method 'get_DataEditor' in type 'uComponents.DataTypes.CheckBoxTree.CheckBoxTreeDataType' from assembly 'uComponents.DataTypes, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
That is something in uComponents that isnt finished but still released which throws an exception - properly when Tea Commerce loop all the assemblies for auto hooking stuff
So, what to do?
Update uComponents to latest version - that is my best guess
It is the latest version...
Anders do you have any more ideas how to solve this? we're not able to solve it :/
Anders do you have any more ideas how to solve this? we're not able to solve it :/
Anders do you have any more ideas how to solve this? we're not able to solve it :/
Anders do you have any more ideas how to solve this? we're not able to solve it :/
@Tobbe - I get your forum post emails but I dont see your posts?
is working on a reply...