Copied to clipboard

Flag this post as spam?

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


  • Bartlomiej Barc 7 posts 106 karma points
    Jun 19, 2017 @ 17:46
    Bartlomiej Barc
    0

    Customized versions of BraintreePayPal and BraintreeStandardCc Controllers

    I have decorated my Customized versions of BraintreePayPal and BraintreeStandardCc Controllers with:

    [PluginController("MySite")]
    

    attribute. I store them in the /Controllers folder. And I try use them in my website.

    However, when the second attribute is added to my custom controllers, i.e.:

      [GatewayMethodUi("BrainTree.StandardTransaction")]
    

    and/or

    [GatewayMethodUi("BrainTree.PayPal.OneTime")]
    

    I start to have difficulties and run my Merchello Web Pages without an error. I have noticed the following exception in line 54:

    Line 52:                 @*@Html.Raw(Model.Brief)*@
    Line 53:             </div>
    Line 54:             @if (Model.FeaturedProducts.Any())
    Line 55:             {
    Line 56:                 <section id="categories">
    

    Current has not been initialized on Merchello.Core.EntityCollections.EntityCollectionProviderResolver. You must initialize Current before trying to read it.

    as well as here: \App_Data\Models\all.generated.cs in line 1810:

    Line 1808:      public Merchello.Web.Models.Ui.Rendering.ProductContentListView FeaturedProducts
    Line 1809:      {
    Line 1810:          get { return this.GetPropertyValue<Merchello.Web.Models.Ui.Rendering.ProductContentListView>("featuredProducts"); }
    Line 1811:      }
    Line 1812:
    

    Current has not been initialized on Merchello.Core.EntityCollections.EntityCollectionProviderResolver. You must initialize Current before trying to read it.

    Thanks, Bartek

  • Timothy Lee Russell 20 posts 43 karma points c-trib
    May 03, 2018 @ 09:20
    Timothy Lee Russell
    0

    Look for the Merchello initialization in the Umbraco logs. This symptom is likely the result of a failure earlier in the lifecycle. The logs are your best option for peeling the glass onion back to the root of the problem.

    Good luck, maybe my experience with this issue could give you some starting points because it took me quite a while to unravel.

Please Sign in or register to post replies

Write your reply to:

Draft