Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 2.1
-
Fix Version/s: None
-
Component/s: Core CiviCRM
-
Labels:None
Description
In CiviCRM 2.1-alpha-4 with Drupal 6.4 and admin_menu.module 6.x-1.0, the civicrm_admin_menu() hook function is called from a path that has not previously called civicrm_initialize(), causing severe lossage. The fix is to add the lines indicated below to drupal/civicrm.module:
function civicrm_admin_menu( ) {
+ // make sure the system is initialized
+ if ( ! civicrm_initialize( ) )
+
+ $config =& CRM_Core_Config::singleton();
$weight = 10;