Closed (fixed)
Project:
Hosting
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2014 at 20:43 UTC
Updated:
27 Jun 2014 at 12:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lavamind commentedThis can especially be a problem when running migrate and clone tasks. If these tasks are failing for no obvious reason, and the following error appears in the task log, then
hosting_default_db_servermight contain an invalid value.Drush was not able to start (bootstrap) the Drupal databaseComment #2
ergonlogicWe already set the hosting_default_db_server with the appropriate NID in hostmaster.install. So this is only for older installs, where this might not be set, or if the variable gets deleted. I think we should update this default value to 4.
In terms of the feature request, i.e. being able to configure this from the front-end, it should be pretty simple. Just build a radio form element from hosting_get_servers('db'), and set the variable accordingly.
Comment #3
ergonlogicThis patch does both the suggestions above.
Comment #4
helmo commentedThe patch from #3 was committed in #2280081: Allow setting default database server