Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-3454

civicrm_admin_menu called from uninitialized path

    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( ) )

      { + return; + }

      +
      + $config =& CRM_Core_Config::singleton();

      $weight = 10;

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              dharmatech Dharmatech
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: