just copied a merchello powered umbraco site from the production server to localhost and i am getting several errors in the logs. the backend doesn't work too ("Error: Failed to get all settings"):
This would indicate that the CoreBootManager is failing to instantiate the MerchelloContext singleton. It could be as simple as not having your connection strings correct for you local connection?
I'm pretty sure this is not an issue with the Merchello code base as Merchello will simply not function without the MerchelloContext.
Hmm - Merchello uses Umbraco's string extensions to encrypt/decrypt the certain things (including gateway provider settings).
If you've encrypted these values your production environment and then ported the database back to your local without decrypting them you might see something like this. IF I'm right, you'll need to decrypt them in the back office and then transfer your database again.
The encryption works off the Machine.key so something you could do in the future is generate your machine key and put that in the web.config so that it is consistent between the two environments.
This one just got me going from dev to staging environment. Had to do exactly as Rusty suggested. Decrypt Gateway Provider settings in my dev site and copy DB back over.
After you install Umbraco 7.3.4, you can install Merchello.Bazaar.CombinedInstall (without installing Merchello - it'll install both Merchello and the Bazaar).
The Bazaar.StoreOnly package requires that Merchello is installed separately before installing the front end store (Bazzar). This is beneficial for some people that want to be able to uninstall the front end but leave Merchello installed.
Error merchelloContext NULL
Hi,
just copied a merchello powered umbraco site from the production server to localhost and i am getting several errors in the logs. the backend doesn't work too ("Error: Failed to get all settings"):
Production Server: Win2008 R2, IIS7, SQL2012 Localhost: IISEXPRESS, SQL2012
The site was working on localhost, which was the development "server", before.
thx in advance, andreas
Umbraco 7.2.6, Merchello 1.8.3
PS: tried to run the copy on our staging server (win2012 r2, sql 2012) and getting the same errors
Hi Andreas,
This would indicate that the CoreBootManager is failing to instantiate the MerchelloContext singleton. It could be as simple as not having your connection strings correct for you local connection?
I'm pretty sure this is not an issue with the Merchello code base as Merchello will simply not function without the MerchelloContext.
Hi Rusty,
Database connectionstring is ok as i can access all backend areas without any problems (except merchello). already checked this "several" times.
Any other ideas?
thx, Andreas
In the Umbraco log, search for a message that says:
Can you post the lines after that message?
2015-07-22 10:30:27,113 [11] INFO Merchello.Web.UmbracoApplicationEventHandler - Attempting to initialize Merchello 2015-07-22 10:30:27,127 [11] INFO Umbraco.Core.PluginManager - [T1/D2] Starting resolution types of Merchello.Core.Gateways.GatewayProviderBase 2015-07-22 10:30:27,137 [11] INFO Umbraco.Core.PluginManager - [T1/D2] Completed resolution of types of Merchello.Core.Gateways.GatewayProviderBase, found 6 (took 9ms) 2015-07-22 10:30:27,251 [11] ERROR Merchello.Web.UmbracoApplicationEventHandler - Initialization of Merchello failed System.Security.Cryptography.CryptographicException: Fehler während eines kryptographischen Vorgangs. bei System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func
2 func, Byte[] input) bei System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.Unprotect(Byte[] protectedData) bei System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) bei Umbraco.Core.StringExtensions.DecryptWithMachineKey(String value) bei Merchello.Core.Persistence.Factories.GatewayProviderSettingsFactory.BuildEntity(GatewayProviderSettingsDto dto) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Persistence\Factories\GatewayProviderSettingsFactory.cs:Zeile 26. bei Merchello.Core.Persistence.Repositories.GatewayProviderRepository.<PerformGetAll>d__0.MoveNext() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Persistence\Repositories\GatewayProviderRepository.cs:Zeile 56. bei System.Linq.Buffer
1..ctor(IEnumerable1 source) bei System.Linq.Enumerable.ToArray[TSource](IEnumerable
1 source) bei Merchello.Core.Persistence.Repositories.MerchelloRepositoryBase1.GetAll(Guid[] keys) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Persistence\Repositories\MerchelloRepositoryBase.cs:Zeile 233. bei Merchello.Core.Services.GatewayProviderService.GetAllGatewayProviders() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Services\GatewayProviderService.cs:Zeile 288. bei Merchello.Core.Gateways.GatewayProviderResolver.BuildActivatedGatewayProviderCache() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Gateways\GatewayProviderResolver.cs:Zeile 218. bei Merchello.Core.Gateways.GatewayProviderResolver..ctor(IEnumerable
1 values, IGatewayProviderService gatewayProviderService, IRuntimeCacheProvider runtimeCache) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\Gateways\GatewayProviderResolver.cs:Zeile 67. bei Merchello.Core.CoreBootManager.InitializeGatewayResolver(IServiceContext serviceContext, CacheHelper cache) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\CoreBootManager.cs:Zeile 226. bei Merchello.Core.CoreBootManager.Initialize() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\CoreBootManager.cs:Zeile 105. bei Merchello.Web.WebBootManager.Initialize() in c:\Working Repositories\GitHub\Merchello\src\Merchello.Web\WebBootManager.cs:Zeile 49. bei Merchello.Core.MerchelloBootstrapper.Init(BootManagerBase bootManager) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Core\MerchelloBootstrapper.cs:Zeile 18. bei Merchello.Web.UmbracoApplicationEventHandler.ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) in c:\Working Repositories\GitHub\Merchello\src\Merchello.Web\UmbracoApplicationEventHandler.cs:Zeile 59. 2015-07-22 10:30:27,311 [11] INFO Merchello.Web.Search.ExamineEvents - [T1/D2] Initializing Merchello ProductIndex binding events 2015-07-22 10:30:27,455 [11] INFO Merchello.Web.Trees.ServerVariablesParsingEvents - [T1/D2] Initializing Merchello ServerVariablesParsingEvents 2015-07-22 10:30:27,455 [11] INFO Merchello.Web.UmbracoApplicationEventHandler - [T1/D2] Initializing Customer related events 2015-07-22 10:30:27,676 [11] INFO Umbraco.Web.Search.ExamineEvents - [T1/D2] Initializing Examine and binding to business logic events 2015-07-22 10:30:27,676 [11] INFO Umbraco.Web.Search.ExamineEvents - [T1/D2] Adding examine event handlers for index providers: 3 2015-07-22 10:30:27,678 [11] INFO Merchello.Plugin.Payments.Braintree.UmbracoApplicationEvents - [T1/D2] Initializing BrainTree Payment provider events 2015-07-22 10:30:27,683 [11] INFO Merchello.Core.Gateways.GatewayEvents - [T1/D2] Initializing Merchello Warehouse Catalog binding events 2015-07-22 10:30:27,684 [11] INFO Merchello.Core.Gateways.Notification.Monitors.NotificationMonitorEvents - [T1/D2] Initializing Merchello NotificationMonitor binding events 2015-07-22 10:30:27,684 [11] INFO Merchello.Core.Gateways.Notification.Monitors.NotificationMonitorEvents - [T1/D2] Completed Merchello NotificationMonitor binding events 2015-07-22 10:30:27,684 [11] INFO Merchello.Core.Gateways.Notification.Smtp.SmtpProviderEvents - [T1/D2] Initializing SMTP notification gateway provider registration binding events 2015-07-22 10:30:27,685 [11] INFO Merchello.Plugin.Payments.PayPal.PayPalEvents - [T1/D2] Initializing PayPal provider registration binding eventsHmm - Merchello uses Umbraco's string extensions to encrypt/decrypt the certain things (including gateway provider settings).
If you've encrypted these values your production environment and then ported the database back to your local without decrypting them you might see something like this. IF I'm right, you'll need to decrypt them in the back office and then transfer your database again.
The encryption works off the Machine.key so something you could do in the future is generate your machine key and put that in the web.config so that it is consistent between the two environments.
This one just got me going from dev to staging environment. Had to do exactly as Rusty suggested. Decrypt Gateway Provider settings in my dev site and copy DB back over.
Hi Liam,
Little late, but I think we're experiencing this as well between all our team members, only 1 person actually has a working merchelloContext.
Any chance you have steps on how to set the machine key for an umbraco site?
Cheers!
EDIT - Okay generated a machine key per https://our.umbraco.org/documentation/getting-started/setup/server-setup/load-balancing/.. Now nobody has a merchello context.. Wildly frustrating. I deleted my custom provider from the backend still no dice
Does anyone know exactly which version of Umbraco and Merchello work perfectly from installing to running example store ? Thanks
@Son,
Use the latest version of the Merchello.Bazaar (1.13.3) in Umbraco 7.3.x
Hi Rusty,
I installed Umbraco 7.3.4 and then install Merchello 1.13.3 and then install Merchello.Bazaar.CombinedInstall_1.13.3 and also Bazaar.StoreOnly.1.13.3
I got this message "Object reference not set to an instance of an object. " and I can not access my Umbraco any more. Do you know the issue ?
Thanks
Hey Son,
After you install Umbraco 7.3.4, you can install Merchello.Bazaar.CombinedInstall (without installing Merchello - it'll install both Merchello and the Bazaar).
The Bazaar.StoreOnly package requires that Merchello is installed separately before installing the front end store (Bazzar). This is beneficial for some people that want to be able to uninstall the front end but leave Merchello installed.
Hi Rusty,
I just start from beginning the steps are:
Umbraco 7.3.4
Merchello.Bazaar.CombinedInstall 1.13.3
Everything is installed successfully but when I select Store in Content tab I got this
Received an error from the server Failed to get colleciton entities
The 'ObjectContent' type failed to serialize the response body for content type 'application/json; charset=utf-8'.
EXCEPTION DETAILS:
System.InvalidOperationException: The 'ObjectContent' type failed to serialize the response body for content type 'application/json; charset=utf-8'.
If I run app from Visual studio. I got this :
An exception of type 'System.ArgumentException' occurred in Newtonsoft.Json.dll but was not handled in user code
Additional information: Can not convert Null to Int32.
@foreach (var product in Model.GetPropertyValue<>
Thanks
I saw that happen once as well - looks like I need to do some troubleshooting in the installer =)
To fix, got to the developer section -> Examine Indexes and rebuild the MerchelloProductIndex.
Thank you Rusty. Rebuild Merchello Index has fixed the problem.
is working on a reply...