Skip to content

Problems with helm site installation #74

@osopolar

Description

@osopolar

Hi, I wanted to test the helm distribution. And tried to install like:

git clone https://github.com/albatrossdigital/helm-drops-7.git helm.dev
cd helm.dev
drush site-install -y helm

But I can't run drush in helm.dev, because I get the error:

Drush command terminated abnormally due to an unrecoverable error.

Calling http://helm.dev/install.php gives me the error:

( ! ) Fatal error: Call to undefined function db_query() in /home/dev/websites/helm.dev/sites/all/modules/evaluate/domain/domain.bootstrap.inc on line 112

Seems to be related to the issue Fatal error: Call to undefined function db_query() in /sites/all/modules/domain/domain.bootstrap.inc.

Commenting out the last line in settings.php: #include DRUPAL_ROOT . '/sites/all/modules/evaluate/domain/settings.inc'; helps.

Now drush site-install helm complains about:

Could not determine database connection parameters. Pass --db-url option.

Finally it works with: drush site-install helm --db-url=mysql://helm_dev:helm_dev@localhost/helm_dev

Now I got a bunch of these warnings:

WD php: Warning: in_array() expects parameter 2 to be array, null given in field_create_field() (line 92 of /home/dev/websites/helm.dev/modules/field/field.crud.inc).

and:

WD php: Warning: class_implements(): object or string expected in entity_type_supports() (line 84 of
/home/dev/websites/helm.dev/profiles/helm/modules/contrib/entity/entity.module).
WD php: Warning: in_array() expects parameter 2 to be array, boolean given in entity_type_supports() (line 84 of /home/dev/websites/helm.dev/profiles/helm/modules/contrib/entity/entity.module).

Finally it seems to work anyway, but:

The install script copies the default.settings.php over the settings.php, so the "domain access Pantheon stuff" and include DRUPAL_ROOT . '/sites/all/modules/evaluate/domain/settings.inc'; gets overwritten too.

I am not sure if I need these lines, but I added them back as in the original settings.php and now it works. IMHO settings.php should not be added to the git repository and I guess if you add the changes to default.settings.php they will be copied on install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions