Domains and languages are missing in culture and hostnames on copied website after changing confgs
I think I have messed up my site a little bit...
I have just migrated our website to another domain/host.
For that I've changed some configs a little bit.
Now I want to change the domains in Umbraco as well.
I used to have a couple of domains and languages defined in the "culture and hostnames". On the new website all the defined hostnames are gone! I cannot add new domains either, as the dropdown list with languages are empty. It used to be two languages set.
Does anybody know how the list with languages are defined in Umbraco, especially in which config file? Maybe something like web.config or umbracosettings.config?
Thanks for asking.
I've just opened the SQL tables umbracoLanguage and umbracoDomains as you mentioned, and I can see the four existing domain records and two culture records.
The good thing is I am now able to change the domain records in the database, and I see the "link to documents" URLs changing.
The bad thing is I still don't see the domain and culture name records from the database in my Umbraco CMS under "Culture and Hostnames".
No particular things found in UmbracoTraceLogs when searching for "domain" or "language". I've only found "2015-12-04 19:32:32,788 [7] ERROR umbraco.DataLayer.SqlHelper`1[[System.Data.SqlClient.SqlParameter, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - [Thread 27] Error executing query select domainDefaultLanguage, domainRootStructureID, domainName from umbracoDomains where id = @ID" but that's from a while ago, so I doubt whether I must relate the error to this. We migrated only 3 days ago...
The only thing which is strange to me is "Could not load file contents from {0}. Domain is not white-listed."
I think Umbraco got the Config version change at 2016-02-01 09:47:18,451
2016-02-01 09:46:59,873 [22] INFO Umbraco.Web.Search.ExamineEvents - [Thread 21] Initializing Examine and binding to business logic events
2016-02-01 09:47:00,134 [22] INFO Umbraco.Web.Search.ExamineEvents - [Thread 21] Adding examine event handlers for index providers: 3
2016-02-01 09:47:01,168 [22] INFO Umbraco.Web.UmbracoModule - [Thread 18] Setting OriginalRequestUrl: www.dummy.com:80/umbraco
2016-02-01 09:47:01,259 [22] INFO umbraco.content - [Thread 18] Loading content from disk cache...
2016-02-01 09:47:01,902 [22] INFO Umbraco.Core.PluginManager - [Thread 6] Starting resolution types of Umbraco.Core.Persistence.Mappers.BaseMapper
2016-02-01 09:47:01,902 [22] INFO Umbraco.Core.PluginManager - [Thread 6] Completed resolution of types of Umbraco.Core.Persistence.Mappers.BaseMapper, found 23 (took 8ms)
2016-02-01 09:47:03,259 [22] INFO Umbraco.Core.PluginManager - [Thread 18] Starting resolution types of Umbraco.Core.PropertyEditors.IParameterEditor
2016-02-01 09:47:03,259 [22] INFO Umbraco.Core.PluginManager - [Thread 18] Completed resolution of types of Umbraco.Core.PropertyEditors.IParameterEditor, found 44 (took 1ms)
2016-02-01 09:47:08,309 [22] INFO Umbraco.Core.PluginManager - [Thread 18] Starting resolution types of Umbraco.Core.PropertyEditors.IParameterEditor
2016-02-01 09:47:08,309 [22] INFO Umbraco.Core.PluginManager - [Thread 18] Completed resolution of types of Umbraco.Core.PropertyEditors.IParameterEditor, found 44 (took 0ms)
2016-02-01 09:47:08,358 [22] INFO Umbraco.Core.PluginManager - [Thread 18] Starting resolution types of umbraco.cms.businesslogic.macro.IMacroEngine
2016-02-01 09:47:08,358 [22] INFO Umbraco.Core.PluginManager - [Thread 18] Completed resolution of types of umbraco.cms.businesslogic.macro.IMacroEngine, found 2 (took 8ms)
2016-02-01 09:47:18,451 [13] INFO Umbraco.Core.UmbracoApplicationBase - [Thread 5] Application shutdown. Reason: ConfigurationChange
2016-02-01 09:47:55,180 [22] INFO Umbraco.Web.Security.WebSecurity - [Thread 18] User Id: 1 logged in
2016-02-01 09:47:55,509 [22] INFO Umbraco.Core.PluginManager - [Thread 19] Starting resolution types of Umbraco.Web.Trees.TreeController
2016-02-01 09:47:55,528 [22] INFO Umbraco.Core.PluginManager - [Thread 19] Completed resolution of types of Umbraco.Web.Trees.TreeController, found 7 (took 8ms)
2016-02-01 09:47:56,061 [22] INFO Umbraco.Core.PluginManager - [Thread 8] Starting resolution types of umbraco.interfaces.ITree
2016-02-01 09:47:56,061 [22] INFO Umbraco.Core.PluginManager - [Thread 8] Completed resolution of types of umbraco.interfaces.ITree, found 35 (took 1ms)
2016-02-01 09:47:56,174 [22] INFO Umbraco.Core.PluginManager - [Thread 8] Starting resolution types of Umbraco.Web.Trees.TreeController
2016-02-01 09:47:56,174 [22] INFO Umbraco.Core.PluginManager - [Thread 8] Completed resolution of types of Umbraco.Web.Trees.TreeController, found 7 (took 0ms)
2016-02-01 09:47:56,174 [22] INFO Umbraco.Core.PluginManager - [Thread 8] Starting resolution types of umbraco.interfaces.ITree
2016-02-01 09:47:56,174 [22] INFO Umbraco.Core.PluginManager - [Thread 8] Completed resolution of types of umbraco.interfaces.ITree, found 19 (took 4ms)
2016-02-01 09:47:56,190 [22] INFO Umbraco.Core.PluginManager - [Thread 18] Starting resolution types of umbraco.interfaces.IApplication
2016-02-01 09:47:56,190 [22] INFO Umbraco.Core.PluginManager - [Thread 18] Completed resolution of types of umbraco.interfaces.IApplication, found 7 (took 0ms)
2016-02-01 09:48:04,114 [22] INFO umbraco.BusinessLogic.Log - [Thread 10] Log scrubbed. Removed all items older than 2015-12-03 09:48:02
2016-02-01 09:48:13,224 [22] ERROR Umbraco.Web.UI.CdfLogger - [Thread 16] Could not load file contents from /umbraco_client/UI/knockout.js. Domain is not white-listed.
2016-02-01 09:48:13,901 [22] ERROR Umbraco.Web.UI.CdfLogger - [Thread 19] Could not load file contents from /umbraco_client/ui/jqueryui.js. Domain is not white-listed.
Sorry if I'm suggesting something that has already been suggested - Have only skimmed the above discussion - But have you tried copying over everything again? Except the stuff from the /App_Data/TEMP folder and probably also the cache and logs? Sometimes missed files can happen for some reason if things are out of sync for some reason.
One of my colleagues had an issue the other day that was a bit similar where he could not use the image picker after doing a deploy all of the sudden. He had an bundling error with client dependency for some reason...deploying from local to staging once more somehow fixed the issue....Perhaps something had gone wrong when another colleague did some deployment a couple of months ago for instance in his case.
Domains and languages are missing in culture and hostnames on copied website after changing confgs
I think I have messed up my site a little bit... I have just migrated our website to another domain/host. For that I've changed some configs a little bit. Now I want to change the domains in Umbraco as well.
I used to have a couple of domains and languages defined in the "culture and hostnames". On the new website all the defined hostnames are gone! I cannot add new domains either, as the dropdown list with languages are empty. It used to be two languages set.
Does anybody know how the list with languages are defined in Umbraco, especially in which config file? Maybe something like web.config or umbracosettings.config?
Hi Geert,
The domain and language information is stored in the database.
Can you have a look at the tables umbracoLanguage and umbracoDomains to see if the information is still there ?
If it's there you should have a look at the log files for any errors.
Dave
Hi dave,
Thanks for asking. I've just opened the SQL tables umbracoLanguage and umbracoDomains as you mentioned, and I can see the four existing domain records and two culture records.
The good thing is I am now able to change the domain records in the database, and I see the "link to documents" URLs changing.
The bad thing is I still don't see the domain and culture name records from the database in my Umbraco CMS under "Culture and Hostnames".
No particular things found in UmbracoTraceLogs when searching for "domain" or "language". I've only found "2015-12-04 19:32:32,788 [7] ERROR umbraco.DataLayer.SqlHelper`1[[System.Data.SqlClient.SqlParameter, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] - [Thread 27] Error executing query select domainDefaultLanguage, domainRootStructureID, domainName from umbracoDomains where id = @ID" but that's from a while ago, so I doubt whether I must relate the error to this. We migrated only 3 days ago...
Any ideas?
Hi Geert,
If you try to set the domain and cultures from the backend, do you seen any errors in console of the developer tools of your browser.
Could be a security issue or client dependency cache issue. Have you tried clearing that.
Go to your /App_Data/TEMP/ClientDependency folder and clear the contents.
And in the /Config/ClientDependency.config increment the version attribute.
Dave
Hi Dave,
Thank you for the update. I did delete all the files in the /App_Data/TEMP/ClientDependency folder And I Incremented /Config/ClientDependency.config
After changing this the website automatically rebuilt itself. But still no Language and Domain settings in CMS.
Any errors in the console log of your browser ?
Dave
The only thing which is strange to me is "Could not load file contents from {0}. Domain is not white-listed." I think Umbraco got the Config version change at 2016-02-01 09:47:18,451
Hi Geert,
I think I know what the issue is.
Go to your clientdenpency config file and go to the tag /compositeFiles/fileProcessingProviders and the find the line with name CompositeFileProcessor
There is a attribute called bundleDomains. Maybe you need to add your domain there.
Dave
Thanks, no white-list error anymore, but still no languages and domains...
Do you see errors in the console of your browser (push F12 and go to the console tab). After that try to set the culture and hostname ?
Dave
Hi Dave,
Yeah, got some errors!
Something about the
DependencyHandler.axd
Hi Geert
Sorry if I'm suggesting something that has already been suggested - Have only skimmed the above discussion - But have you tried copying over everything again? Except the stuff from the /App_Data/TEMP folder and probably also the cache and logs? Sometimes missed files can happen for some reason if things are out of sync for some reason.
One of my colleagues had an issue the other day that was a bit similar where he could not use the image picker after doing a deploy all of the sudden. He had an bundling error with client dependency for some reason...deploying from local to staging once more somehow fixed the issue....Perhaps something had gone wrong when another colleague did some deployment a couple of months ago for instance in his case.
Just my 2 cents.
/Jan
is working on a reply...