Closed (fixed)
Project:
Provision CiviCRM
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2012 at 23:44 UTC
Updated:
11 May 2012 at 06:40 UTC
While provisioning the site with the latest CiviCRM 4.1.1 version on D7 works fine, it crashes after running Verify with error in the failed task log:
CiviCRM: Generated config civicrm.settings.php file
CiviCRM: about to run _provision_civicrm_do_site_move()
Drush command terminated abnormally due to an unrecoverable error. Error: Call to undefined method CRM_Core_BAO_Setting::getConfigSettings() in /data/disk/o1/.drush/provision_civicrm/verify.provision.inc, line 222
Output from failed command : Generating civicrm settings file ..
When you run a diff between working and broken site civicrm.settings.php file, it reveals an empty CIVICRM_SITE_KEY:
-define( 'CIVICRM_SITE_KEY', 'add14229f7dc5aad05d3cfd33df4068a' );
+define( 'CIVICRM_SITE_KEY', '' );
FYI: this has been tested on the latest Aegir 2.x used in the BOA head.
Comments
Comment #1
omega8cc commentedI just tried it again with this patch reverted: http://drupalcode.org/project/provision_civicrm.git/commit/0b6e600 and now it fails, as expected, with previously known error:
Comment #2
winston commentedJust a note that I believe I'm getting the same issue in Civicrm 3.4.7. Will try to investigate further.
Comment #3
winston commentedApologies, didn't read this too carefully. I must have "previously known error".
Comment #4
pauleb commentedI'm getting the same error message using provision 1.6, provision_civicrm 1.0-beta2 and drush 4.5 with civicrm >= 4.1.1.
I'm sorry, but I don't know what you mean with #1. "Fails as expected" sounds like a strange concept to me. Is there an error somewhere in my config or db, so that the verifying process is supposed to fail?
Forgive me my naivity, but I did some grepping in the civicrm directory for CRM_Core_BAO_Setting and for getConfigSettings().
I don't know about the coding conventions of civicrm, but for the case that CRM_Core_BAO_Setting should be the path from the civicrm root directory to the file and getConfigSettings() is the function, there is no function by this name in the file CRM/Core/BAO/Setting.php. But there is a function with this name in CRM/Core/BAO/ConfigSetting.php.
After changing CRM_Core_BAO_Setting::getConfigSettings() and CRM_Core_BAO_Setting::getBestGuessSettings to CRM_Core_BAO_ConfigSetting::* I got a bit further, but there seems to be another error.
You can find the whole drush provision-verify -vv output at http://pastebin.com/we3cArTT
Comment #5
pauleb commentedI think I didn't get it.
It all works fine with the cloned git repository.
thx
Comment #6
bgm commentedWhile debugging #1545902: Provisioning the site doesn't enable CiviCRM with any version - tested with Aegir 2.x based on 1.8 with omega88cc yesterday, we fixed the issues with the CRM_Core_BAO_Setting::getConfigSettings() and other stuff which will change in CiviCRM 4.2.
(some of those things changed in civi 4.1, others in 4.2, and I had done some changes a bit too quickly in the code, but now it should work fine with civi 3.x to 4.2-trunk)
I'm not sure about the Smarty warning, but it seems to be fixed?
Comment #7
pauleb commentedI think I got this smarty error before but hadn't had the time for recherching. Maybe when I updated from civicrm 4.1.0 to 4.1.1 . I'm not sure about this, but the error felt quite familiar.
Version 57d3d790 from git fixed it, now it's possible again to restore, migrate and verify the site.
Thanks for the fixes.
Comment #8.0
(not verified) commentedDebug log update