Hi,

This took me some time to figure out. Maybe it will help the next person.

I created a D7 feature and strong-armed site_name and site_email

During installation using Drush, it caused the error below, because Drupal checks to see if it's already installed by checking for values in these variables.

I deleted the lines for these two variables from the blah.strongarm.inc file, and the install worked.

Starting Drupal installation. This takes a few seconds ... [ok]
WD php: Exception: To start over, you must empty your existing database.To install to a different database, edit the appropriate settings.php file in the sites folder.To upgrade an existing installation, proceed to the update [error]
script.View your existing site. in install_configure_form() (line 1415 of /home/quickstart/websites/iht.dev/http/includes/install.core.inc).
Exception:

  • To start over, you must empty your existing database.
  • To install to a different database, edit the appropriate settings.php file in the sites folder.
  • To upgrade an existing installation, proceed to the update script.
  • View your existing site.

in install_configure_form() (line 1415 of /home/quickstart/websites/iht.dev/http/includes/install.core.inc).

Comments

wiifm’s picture

We literally encountered this exact same issue a few days ago.

Our solution:

Do not place site_name or site_email in strongarm, instead place them in variable_set()'s that occur as a post installation task

Hope this helps

Bußmeyer’s picture

Hi there.
Same issue. Same solution. Remove site_mail and site_name in strongarm and everthing works.

nymo’s picture

+1

I didn't run into the issue until i reordered the dependencies list for a feature. Fix worked though.

smk-ka’s picture

Status: Active » Closed (won't fix)

As the other commenters already stated, you cannot export site_name and site_mail using strongarm, but need to let drush set them instead during installation:
drush si --site-name="My site" --site-mail="foo@example.com"