Installing currently seems to fail.
The drush make resulted in commons_nightly_dev_7.x-3.x_1359849888.tar.gz which is all fine and dandy, but the install then bails out with:
The command is:
drush site-install --db-url=mysql://commons:commons@localhost/commons --site-name=QASite --account-name=admin --account-pass=commons --account-mail=admin@example.com --site-mail=site@example.com -v -y commons commons_anonymous_welcome_text_form.commons_anonymous_welcome_title="Oh hai" commons_anonymous_welcome_text_form.commons_anonymous_welcome_body="No shirts, no shoes, no service." commons_create_first_group.commons_first_group_title="Internet People" commons_create_first_group.commons_first_group_body="This is the first group on the page." commons_anonymous_welcome_text_form.commons_install_example_content
The error message is:
PHP Fatal error: Call to a member function flag() on a non-object in /vagrant/commons_files/profiles/commons/modules/contrib/commons_follow/commons_follow_group/commons_follow_group.module on line 105
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to a member function flag() on a non-object in
/vagrant/commons_files/profiles/commons/modules/contrib/commons_follow/commons_follow_group/commons_follow_group.module,
line 105
Comments
Comment #0.0
rb2k commentedclarified which part fails
Comment #1
ezra-g commentedThanks - Bumping to Critical.
Comment #2
ezra-g commentedI'm not able to reproduce this with the currently nightly development snapshot. Can you post or IM with some steps to reproduce?
Comment #3
rb2k commentedI can reproduce it by doing a drush make and then executing the commandline mentioned above.
Adjust the DB parameters to your liking and you should be good to go.
Here is the full installation log:
Comment #4
matt v. commentedI did some quick testing and the issue appears to be triggered by some of the specific options in rb2k's call to
drush site-install. I ran the same command (changing only the database name and credentials) and received the same "Call to a member function flag() on a non-object" fatal error.However, the site-install command I've been using recently continues to work fine (though it doesn't set the admin account email or acquia _connector settings as I'm trying to specify them, but that's something I've been meaning to figure out):
sudo -u www-data drush site-install commons -y --db-url=mysql://commons_dev:commons_dev@localhost/commons_dev --account-name=foo --account-pass=bar install_configure_form.site_name="Commons Testing" install_configure_form.site_mail="noreply@example.com" install_configure_form.account_name=foo install_configure_form.account_mail="noreply@example.com" install_configure_form.account_pass_pass1=baz install_configure_form.account_pass_pass2=baz install_configure_form.acquia_connector=0 install_configure_form.site_default_country=USComment #5
matt v. commentedJust removing the last option of rb2k's command (
commons_anonymous_welcome_text_form.commons_install_example_content) allowed the site-install command to complete successfully on my test machine.Comment #6
ezra-g commentedThanks for the debugging, Matt V.! Looks like we can reproduce, so setting back to "active." Moving down to "major" since folks can still install Commons via the browser.
Comment #6.0
ezra-g commentedbetter formating
Comment #7
decipheredComment #9
japerryWe needed to wrap some of the flag callbacks, they were causing issues with blank installs. Should work now.
Fixed in 7.x-3.x!