When running drush en domain, I am now getting:

Module domain doesn't meet the requirements to be enabled. [error]
(Currently using Domain Access The domain string is invalid for default:At least one dot (.) is required, except for localhost. [error]
If you are using drush, please ensure to provide the --uri option.)

I tried providing a uri option, but I am not sure if I did that right:

drush en --uri http://domain.com, still the same error.

Comments

agentrickard’s picture

Try:

drush en domain -l http://example.com

Or:

drush en domain --uri='http://example.com'
agentrickard’s picture

We also need to fix that help text.

'If you are using drush, please provide the --uri option. (e.g. drush en domain --uri='http://example.com')'
pfrenssen’s picture

Title: Clean Install of Domain access 7.x.3.0 rc5 "Currently using Domain Access The domain string is invalid for default:At least ..." » Improve error message "The domain string is invalid for ..." when enabling module with drush
Version: 7.x-3.0-rc5 » 7.x-3.x-dev
Category: support » task
Status: Active » Needs review
StatusFileSize
new1.44 KB

Yes the suggestion in #2 would have saved me a few minutes of head scratching today. This is clearly explained in the INSTALL.txt but I was following the quickstart guide. I don't think this should be mentioned in the quickstart, but a more helpful error message would be nice.

Made a patch with the suggestion in #2. I also changed the following text in INSTALL.txt:

When installing from drush, it is proper to pass the URI value for your
site.

to:

When installing from drush, it is required to pass the URI value for your
site.

agentrickard’s picture

We can also try to error gracefully from drush

agentrickard’s picture

Status: Needs review » Fixed
StatusFileSize
new1.37 KB

Updated the patch just a bit and committed 5574d0f..cb10773 .

Does not apply to lower versions.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.