Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tobbe 81 posts 387 karma points c-trib
    Dec 18, 2013 @ 17:51
    Tobbe
    0

    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!

    enter image description here

    enter image description here

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 08:08
    Anders Burla
    0

    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

  • Tobbe 81 posts 387 karma points c-trib
    Dec 19, 2013 @ 08:56
    Tobbe
    0

    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?

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 09:05
    Anders Burla
    0

    Does uComponents use Autofac or something like that. Or does your doc type have a uComponents auto complete property?

  • Tobbe 81 posts 387 karma points c-trib
    Dec 19, 2013 @ 10:24
    Tobbe
    0

    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

    enter image description here

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 10:29
    Anders Burla
    0

    Looks like a payment provider was deleted that was selected for one of the payment methods.

  • Tobbe 81 posts 387 karma points c-trib
    Dec 19, 2013 @ 10:37
    Tobbe
    0

    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!

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 10:50
    Anders Burla
    0

    Only if you have a custom payment provider. If you have that you need to update your dll references and recompile

  • Tobbe 81 posts 387 karma points c-trib
    Dec 19, 2013 @ 11:04
    Tobbe
    0

    no custom ones.

    Now I tried to remove all paymentMethods, and then tried to add a new one. New error! :D

    enter image description here

    I also noticed that orderinformation doesnt display in view-customer-information.cshtml. It worked on 2.0.0 I dont know if it helps..

    enter image description here

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 11:07
    Anders Burla
    0

    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.

  • Tobbe 81 posts 387 karma points c-trib
    Dec 19, 2013 @ 13:05
    Tobbe
    0

    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?

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 13:08
    Anders Burla
    0

    But as stated it was fixed in 2.0.1

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Dec 19, 2013 @ 15:38
    Kalle Ekstrand
    0

    Hello Anders,

    We still have a problem though.
    We really need to get this going, and the client is waiting...

    Any more ideas?

    //Kalle 

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 15:55
    Anders Burla
    0

    You also have this problem Kalle?

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Dec 19, 2013 @ 16:11
    Kalle Ekstrand
    0

    Tobias And I both belong to Toxic.

  • Tobbe 81 posts 387 karma points c-trib
    Dec 19, 2013 @ 16:14
    Tobbe
    0

    This is the error I get when clicking on a payment provider in tea commerce backend

    enter image description here

  • Tobbe 81 posts 387 karma points c-trib
    Dec 19, 2013 @ 16:34
    Tobbe
    0

    this is the error we see now, when clicking a payment method in tea commerce backend

     

  • Tobbe 81 posts 387 karma points c-trib
    Dec 19, 2013 @ 17:19
    Tobbe
    0

    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

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Dec 19, 2013 @ 17:25
    Kalle Ekstrand
    0

    We get this when creating new payment providers

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Dec 19, 2013 @ 17:28
    Kalle Ekstrand
    0

    And we get this when editing the one we already had.

  • Tobbe 81 posts 387 karma points c-trib
    Dec 19, 2013 @ 17:34
    Tobbe
    0

    Could it have anything to do with permissions?

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 19:39
    Anders Burla
    0

    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

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Dec 19, 2013 @ 19:45
    Kalle Ekstrand
    0

    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?

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 19:48
    Anders Burla
    0

    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.

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Dec 19, 2013 @ 19:56
    Kalle Ekstrand
    0

    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)

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 20:06
    Anders Burla
    0

    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

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Dec 19, 2013 @ 20:20
    Kalle Ekstrand
    0

    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.

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 20:27
    Anders Burla
    0

    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

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Dec 19, 2013 @ 20:27
    Kalle Ekstrand
    0

    So, what to do?

  • Anders Burla 2560 posts 8256 karma points
    Dec 19, 2013 @ 20:29
    Anders Burla
    0

    Update uComponents to latest version - that is my best guess

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Dec 19, 2013 @ 20:31
    Kalle Ekstrand
    0

    It is the latest version...

  • Tobbe 81 posts 387 karma points c-trib
    Dec 20, 2013 @ 15:07
    Tobbe
    0

    Anders do you have any more ideas how to solve this? we're not able to solve it :/

  • Tobbe 81 posts 387 karma points c-trib
    Dec 20, 2013 @ 15:09
    Tobbe
    0

    Anders do you have any more ideas how to solve this? we're not able to solve it :/

  • Tobbe 81 posts 387 karma points c-trib
    Dec 20, 2013 @ 15:09
    Tobbe
    0

    Anders do you have any more ideas how to solve this? we're not able to solve it :/

  • Tobbe 81 posts 387 karma points c-trib
    Dec 20, 2013 @ 15:10
    Tobbe
    0

    Anders do you have any more ideas how to solve this? we're not able to solve it :/

  • Anders Burla 2560 posts 8256 karma points
    Dec 20, 2013 @ 15:49
    Anders Burla
    0

    @Tobbe - I get your forum post emails but I dont see your posts?

Please Sign in or register to post replies

Write your reply to:

Draft