Copied to clipboard

Flag this post as spam?

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


  • Simon 79 posts 182 karma points
    Nov 17, 2016 @ 16:10
    Simon
    0

    Merchello deployment issue

    Hi all,

    So I've just taken a perfectly good working dev site, in VS published it to the local file system, copied it to our staging software and set it up under IIS - all stock, and common activities.

    However, now when I go to the homepage I get

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

    There's also issues with the Merchello tree - if I go via the back office to the Merchello section, I get a failed to retrieve data for application tree merchello

    It's a combination of Merchello/FastTrack and Umbraco 7.5.4.

    Rusty - any ideas that may help?

  • Rusty Swayne 1655 posts 4970 karma points c-trib
    Nov 17, 2016 @ 16:15
    Rusty Swayne
    0

    I've used that method quite a few times - so the good news is I know it will ultimately work.

    Are you certain you've included all of the relevant config files and supporting dlls in your project?

  • Simon 79 posts 182 karma points
    Nov 17, 2016 @ 16:49
    Simon
    0

    Hi Rusty,

    Yes, been through all the DLLs and can't see anything missing - also, suspect you were replying as I was editing my post - did you see my comment about the merchello tree in the back office?

    There's some providers with encrypted settings - could that be causing a problem?

    Thanks Simon

  • Rusty Swayne 1655 posts 4970 karma points c-trib
    Nov 17, 2016 @ 17:47
    Rusty Swayne
    0

    Yep - provider settings are encrypted using the machine key. So decrypt them when you publish and then encrypt them again in the back office of the published instance.

  • Simon 79 posts 182 karma points
    Nov 17, 2016 @ 17:51
    Simon
    0

    Thought so - however, having removed the settings from merchGatewayProviderSettings table it still can't load the merchello tree - any other places where the encryption might be causing problems?

  • Rusty Swayne 1655 posts 4970 karma points c-trib
    Nov 17, 2016 @ 18:00
    Rusty Swayne
    0

    When you say "having removed the settings from merchGatewayProviderSettings table" - did you accomplish this by going through each of the dialogs?

    This will actually decrypt the values. Changing the value directly in the table would not accomplish the decryption - it's mearly a flag indicating the stored value is encrypted.

  • Simon 79 posts 182 karma points
    Nov 17, 2016 @ 18:03
    Simon
    0

    No, in the database set the encryptExtendedData flag to 0 and set extendedData column to <extendedData />

  • Rusty Swayne 1655 posts 4970 karma points c-trib
    Nov 17, 2016 @ 18:10
    Rusty Swayne
    0

    Ah - many of the providers use events to setup at least scaffold settings when activated - so that may be the new issue.

    Inactive providers will not have a record at all in that table.

  • Simon 79 posts 182 karma points
    Nov 17, 2016 @ 18:27
    Simon
    1

    OK, so added in the decrypted settings - and didn't work. I had to touch the web.config and it all worked fine.

    The other issue about Current has not been initialized was obviously tied in as well because that's all working now too.

    Thanks for the help Simon

  • Dfuzz 2 posts 72 karma points
    Sep 13, 2017 @ 08:58
    Dfuzz
    0

    Hello Simon,

    I've exactly the same problem like you !

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

    and failed to retrieve data for application tree merchello in the Umbraco's backoffice.

    Which 'web.config' file have you touched and which are the modifications ? I tested to touch 'web.config' file on root directory but it doesn't work... :-(

    My Config : Merchello/FastTrack 2.5.0 and Umbraco 7.5.11

Please Sign in or register to post replies

Write your reply to:

Draft