Copied to clipboard

Flag this post as spam?

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


  • Paul Blair 466 posts 731 karma points
    Feb 14, 2012 @ 01:04
    Paul Blair
    0

    Possible bug with multiple domains

    Hi,

    I have found the following bug when doing some testing (against a PayPal sandbox account):

    User makes purchase though http://www.testsiteö.com

    Logon to backend URL using http://www.testsiteo.com/umbraco/umbraco.aspx#teacommerce (i.e. using "o" instead of "ö")

    Try and view an order:

    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.]
       TeaCommerce.WebShop.Integration.LicenseExtension.OrderController_OrderChanged(Order order) +204
       TeaCommerce.Data.Order.Save() +9577
       TeaCommerce.Admin.Umbraco.plugins.TeaCommerce.Orders.EditOrder.DoPaymentProviderAction(Func`3 callback) +467
       TeaCommerce.Admin.Umbraco.plugins.TeaCommerce.Orders.EditOrder.OnLoad(EventArgs e) +147
       System.Web.UI.Control.LoadRecursive() +70
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3047
    

    If I view the order using the same URL as was used for purchasing then there is no problem.

    teaCommerce: v1.4.1.2 / Umbraco 4.7

    Cheers

    Paul


  • Anders Burla 2560 posts 8256 karma points
    Feb 14, 2012 @ 09:27
    Anders Burla
    0

    Hi Paul

    Did you use the Tea Commerce starter kit or have you built the site from scratch? The TeaCommerce.WebShop.Integration.LicenseExtension reminds me about or own license shop - but we dont ship that code with the starter kit. So maybe you copied some code where there is a bug somewhere in the License Extension method.

    Kind regards
    Anders

  • Paul Blair 466 posts 731 karma points
    Feb 14, 2012 @ 11:04
    Paul Blair
    0

    Hi,

    I installed the package Tea-Commerce-1.4.1.2-for-.NET-4

    I have copied some fo the code from the starter kit to this solution but have not actually installed the package there. I do trap the order changed event in my own code but don't expect this to be hit when viewing the order in the backend...?

    Thanks

    Paul

  • Anders Burla 2560 posts 8256 karma points
    Feb 14, 2012 @ 13:09
    Anders Burla
    0

    Hi Paul

    The reason why your order changed event is hit is because Tea Commerce automatically has the payment provider for the order do a GetStatus call. This might have changed since the order was process at the callback. So your order might change and thats why the event is raised. But it looks like its something in your code that is making an exception.

    Kind regards
    Anders

  • Paul Blair 466 posts 731 karma points
    Feb 14, 2012 @ 21:04
    Paul Blair
    0

    Thanks Anders,

    The fact that it was working in 1 domain was throwing me off. I was doing a call to getCurrentMember which would only return an object for the domain that was logged onto. I had also done a quick copy-and-paste from the demo site which didn't help with my debugging - I will update my namespaces now!

    Cheers
    Paul

Please Sign in or register to post replies

Write your reply to:

Draft