Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.I recently imported two different drupal platforms that contained sites. They came from different aegir instances previously.
In both cases the Profile was never set for either site, and now I cannot migrate these sites to another platform. Is there a way that I can fix this as these platforms were Standard normal Drupal instances (nothing fancy).
Even if someone could give me advice on how to change this in the DB that would be amazing.










Comments
Comment #2
Jon PughThe fact that there is no UI to change the profile for a site has always been a big problem.
We also should not store the profile as the package ID, but just as the profile string.
The fix is to look for the "Package" node for the standard profile and use that NID to insert into the hosting_site.profile DB column.
I actually can't remember if it's the package NID or the package instance ID, you'll have to look into other sites in the hosting_site table.
Comment #3
ShaneOnABike CreditAttribution: ShaneOnABike at Bees on a Bike commentedAgreed that perhaps the UI could allow a user to edit this field. It's really not that clear.
To be clearer for other folks trying the same thing:
You will see a listing of all your sites and the nodes that have no platform will contain a 0 entry
Replace NID with teh platform NID, and xyz with the sites NID
Comment #4
colan+1 for being able to set this in the Aegir UI. Patches would definitely be welcome.
Should we move to Hosting?
Comment #5
Jon PughHang on there, it's still a bug if the import is breaking.
Let's create another issue for the new feature of editing install profile, that needs a lot of work.
Comment #6
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI had something similar happen when importing a platform which in turn imported a site.
The site has no install profile.
But if I create a new site from the same profile, the install profile is there.
here is the issue I closed as a dupe which has a little more detail:
https://www.drupal.org/project/hostmaster/issues/3121402#comment-13520365
Comment #7
colanDone!
Comment #8
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedWORKAROUND IN #3 WORKS with slight modification:
Find another site and either click on the Profile link and/or hover to determine the NID
and if you wanted to do it per platform you could use:
UPDATE hosting_site set profile = NID where platform = xyz;
(thanks to #3)
Comment #9
colanLet's keep workaround discussions in the related issue, not here, as in this issue we're now simply talking about how to fix the initial problem.
I posted a single SQL command over there so the multiple steps posted in #3 and #8 here are no longer necessary.