Copied to clipboard

Flag this post as spam?

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


  • Veronica Burd 76 posts 201 karma points
    Sep 28, 2016 @ 07:12
    Veronica Burd
    0

    Bazaar - Cash Payment - GetPaymentMethodUi error

    Hi,

    A friend asked me to help him create a POC using Merchello Bazaar. I'm completely new to Merchello but have used Umbraco before.

    I installed Umbraco 7.5.3 for him using a MS SQL CE database and then installed Merchello and Bazaar through packages (not nuget). All the Gateway providers have been set up - only used the Cash Payment provider, all others are disabled for this POC.

    He then populated the store with a few products.

    During the checkout process the Confirm Sale button appears as the screen is loading but then disappears. The log file does not show any errors but my browser console shows an internal server error when calling GetPaymentMethodUi:

    /umbraco/Bazaar/BazaarSiteApi/GetPaymentMethodUi?paymentMethodKey=63f358b7-3c85-481b-a3bf-e5ab4da69ab4

    Here are the details of the error:

    <Error>
    <Message>An error has occurred.</Message>
    <ExceptionMessage>
    An error occurred when trying to create a controller of type 'BazaarSiteApiController'. Make sure that the controller has a parameterless public constructor.
    </ExceptionMessage>
    <ExceptionType>System.InvalidOperationException</ExceptionType>
    <StackTrace>
    at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType) at System.Web.Http.Controllers.HttpControllerDescriptor.CreateController(HttpRequestMessage request) at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
    </StackTrace>
    <InnerException>
    <Message>An error has occurred.</Message>
    <ExceptionMessage>
    Method not found: 'Void Merchello.Web.MerchelloHelper..ctor(Merchello.Core.Services.IServiceContext)'.
    </ExceptionMessage>
    <ExceptionType>System.MissingMethodException</ExceptionType>
    <StackTrace>
    at Merchello.Bazaar.Controllers.Api.BazaarSiteApiController..ctor(IMerchelloContext merchelloContext) at Merchello.Bazaar.Controllers.Api.BazaarSiteApiController..ctor() at lambda_method(Closure ) at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType)
    </StackTrace>
    </InnerException>
    </Error>
    

    Anyone have an idea as to what might be the issue?

    TIA

    Ver

  • Jan Sevilla 2 posts 93 karma points
    Sep 30, 2016 @ 19:30
    Jan Sevilla
    0

    I just installed Merchello and Bazaar and experiencing the same issue. Have you found a solution to this?

  • Veronica Burd 76 posts 201 karma points
    Oct 01, 2016 @ 09:35
    Veronica Burd
    0

    Unfortunately, no. Since my friend had a deadline to meet I wiped the installation and started again with Merchello and Fast Track starter kit instead.

    Ver

  • Steve 140 posts 321 karma points
    Oct 02, 2016 @ 02:32
    Steve
    0

    Experiencing the same issue with fresh install of Merchello and Bazaar. I can't uninstall Bazaar either - getting error: 'The DELETE statement conflicted with the REFERENCE constraint "FKumbracoAccessumbracoNode_id1".'
    Search doesn't find 'BazaarSiteApiController' (other than the PlugIn Cache) or 'GetPaymentMethodUi' (other than in the js, which I'm assuming calls the Api).
    Any suggestion of how to proceed?
    Thanks, Steve

  • Steve 140 posts 321 karma points
    Oct 02, 2016 @ 02:38
    Steve
    0

    I made what appears to be a big mistake, uninstalling Merchello after the failed Bazaar uninstall. Now the complete site, including the backoffice, is throwing a completely full screen of 'Could not load all types from "Merchello.Bazaar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping: . System.IO.FileNotFoundException: Could not load file or assembly 'Merchello.Web, Version=2.0.5981.16970, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.' Errors.
    Ooops!

  • Steve 140 posts 321 karma points
    Oct 02, 2016 @ 05:22
    Steve
    0

    Needed to update to Umbraco 7.5 but still getting the 500 error on the Api call:

       <Error>
    <Message>An error has occurred.</Message>
    <ExceptionMessage>
    An error occurred when trying to create a controller of type 'BazaarSiteApiController'. Make sure that the controller has a parameterless public constructor.
    </ExceptionMessage>
    <ExceptionType>System.InvalidOperationException</ExceptionType>
    <StackTrace>
    at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType) at System.Web.Http.Controllers.HttpControllerDescriptor.CreateController(HttpRequestMessage request) at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
    </StackTrace>
    <InnerException>
    <Message>An error has occurred.</Message>
    <ExceptionMessage>
    Method not found: 'Void Merchello.Web.MerchelloHelper..ctor(Merchello.Core.Services.IServiceContext)'.
    </ExceptionMessage>
    <ExceptionType>System.MissingMethodException</ExceptionType>
    <StackTrace>
    at Merchello.Bazaar.Controllers.Api.BazaarSiteApiController..ctor(IMerchelloContext merchelloContext) at lambda_method(Closure ) at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType)
    </StackTrace>
    </InnerException>
    </Error>
    
  • Veronica Burd 76 posts 201 karma points
    Oct 03, 2016 @ 05:56
    Veronica Burd
    0

    Sorry, it's a bit late now but when I removed bazaar/merchello I first deleted all the documents in the site so that the document types were not in use. That solved the foreign key errors.

    As for the second error, make sure you delete all Bazaar dlls in the bin folder. If you've also removed Merchello you'll need to clean up those dlls too. You'll also want to remove Braintree.dll which is a payment processor.

    HTH

    Ver

  • Steve 140 posts 321 karma points
    Oct 03, 2016 @ 13:50
    Steve
    0

    Hi Veronica,
    Thanks for the helpful tips. Sounds like that would have been the way to go but we did finally get back up and running by restoring from a back up.
    However, on a fresh install (with updated Umbraco), we STILL can't get past the 500 errors on the payment gateway api calls. Did you ever resolve this?
    Thanks, Steve

  • Veronica Burd 76 posts 201 karma points
    Oct 03, 2016 @ 13:55
    Veronica Burd
    0

    Think I mentioned that I gave up with Bazaar and implemented Fast Track instead as my friend was on a tight deadline. Fast Track has its own issues but with a bit of searching in this forum was able to find work arounds for them (errors regarding to shipping addresses without regions).

    Sorry I can't be of more help.

    Regards

    Ver

  • Steve 140 posts 321 karma points
    Oct 03, 2016 @ 14:56
    Steve
    0

    You did mention that (sorry). Will have a look. Thanks for you help!
    Best, Steve

  • Jan Sevilla 2 posts 93 karma points
    Oct 03, 2016 @ 19:05
    Jan Sevilla
    100

    Hi everyone. First of all thank you to Veronica for mentioning uninstalling Merchello Bazaar and Merchello and starting again. It helped me with figuring this out.

    I think I may have resolved the initial issue of the "GetPaymentMethodUI" error (and others I encountered involving BazaarSiteApi).

    So I have Umbraco 7.4.3 installed. I installed Merchello and Bazaar from Umbraco backoffice using the Umbraco package Repository. This installs, by default, the latest version of both:
    Merchello 2.2.1
    Merchello Bazaar 2.0.0

    These versions do not work together. I uninstalled both my Bazaar and Merchello packages (using Veronica's suggestion) and downloaded the following files from https://our.umbraco.org/projects/collaboration/merchello/ :

    Merchello_2.0.0.zip
    Merchello.v2.upgrade.zip
    Merchello.2.0.1.patch.zip

    I also downloaded all the zip files listed for Bazaar here: https://our.umbraco.org/projects/starter-kits/merchello-bazaar/

    Merchello.Bazaar.StoreOnly_2.0.0.zip
    Merchello.Bazaar.v2.upgrade.zip
    Merchello.Bazaar.2.0.1.patch.zip

    I installed Merchello_2.0.0.zip first using "Install local package". Copied the files from Merchello.v2.upgrade.zip to replace the existing files and then did the same for the patch.

    I continued to do the same with Merchello Bazaar.

    I then added this to my web.config:

    <add key="Bazaar:ResolvePaymentForms" value="true" />
    

    Everything now works (provinces/states also now show up in the Shipping/Billing drop down). PayPal Express works as well.

    Hopefully this helps everyone out.

  • Steve 140 posts 321 karma points
    Oct 03, 2016 @ 23:37
    Steve
    0

    Hi Jan,
    Good to hear you found a way to get it working.
    We updated our Umbraco installation to 7.5.x in order to use Merchello 2.2.1, and are now stuck as it seems like we can't make a clean uninstall of Merchello (have to manually remove items from examinesettings.config, M logo tag remains in side bar menu...it's not fully removed) and yet can't re-install then install Fast Start (YSOD - Merchello customer datatype already exists).
    Lesson learned to pay attention to version numbers/compatibility but this has been a tough one.
    Best, Steve

  • Veronica Burd 76 posts 201 karma points
    Oct 05, 2016 @ 13:16
    Veronica Burd
    1

    Thanks Jan,

    I revisited my previous installation and got it to work following your guide.

    Regards

Please Sign in or register to post replies

Write your reply to:

Draft