Closed (fixed)
Project:
Provision CiviCRM
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2012 at 14:34 UTC
Updated:
19 Sep 2012 at 14:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
omega8cc commentedAttached patch fixes the problem.
Comment #2
bgm commentedThanks for the patch.
Any ideas how we could fix this for sites with CiviCRM?
Comment #3
omega8cc commentedNot sure what problem related to CiviCRM sites you mean? This patch should not affect any CiviCRM enabled site, it only hides entire
function drush_civicrm_post_provision_deploy()from non-CiviCRM sites to avoid breaking their tasks, since Drush happily loads and tries to run all code existing in its directory, no matter if it can be used or not.Comment #4
bgm commentedFor me it fails on a CiviCRM site. As far as I can tell, when drush_civicrm_post_provision_deploy() is called, it tries to bootstrap Drupal, but the Drupal DB has not yet been upgraded, so tables such as "blocked_ips" are not yet created.
Comment #5
bgm commentedI pushed a commit to 6.x-1.x to remove the use of hook_provision_post_deploy(), since it's been causing too many headaches. Tested an upgrade from D6 civi 3.4 to D7 civi 4.2.0.
Also started working on unit testing, based on Steven's scripts: http://drupal.org/project/vagrant_scripts_aegir_civicrm It's a bit time consuming to kickstart though, but it's awsome :)