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

Drupal CiviCRM Integration Module Throws "Missing Argument for civicrm_help" on All CiviCRM Pages

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0, 3.0.1, 3.0.2
    • Fix Version/s: Unscheduled
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      In the Drupal version of CiviCRM 3.0+, on all the CiviCRM pages (pages with paths beginning "civicrm/"), PHP throws a "missing argument 1 for civicrm_help" error.

      When I looked at the code of civicrm/drupal/civicrm.module, I saw that civicrm_help had the old function signature from 5.x - civicrm_help($section). I updated that to the 6.x syntax - civicrm_help($path, $arg). However, it still doesn't work. For now, I have had to comment out the civicrm_help function entirely to prevent this error from occurring.

      I am not sure why hook_help() is not receiving the page arguments properly, unless somehow they are being "eaten" by civicrm_initialize().

        Attachments

          Activity

            People

            • Assignee:
              deepak Deepak Srivastava
              Reporter:
              evandonovan Evan Donovan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: